#800040 color codes
- HEX
- #800040
- HEX8
- #800040FF
- HEX8 (Android)
- #FF800040
- RGB
- rgb(128, 0, 64)
- RGB (%)
- 50%, 0%, 25%
- HSL
- hsl(330, 100%, 25%)
- HSV / HSB
- hsv(330, 100%, 50%)
- CMYK
- cmyk(0%, 100%, 50%, 50%)
- OKLCH
- oklch(0.3881 0.1571 0.67)
- OKLCH (%)
- oklch(38.81% 0.1571 0.67)
- Decimal
- 8388672
What color is #800040?
#800040 sits at 39% lightness and 0.1571 chroma in OKLCH, hue 0.67°. Its nearest named color is Purple.
Shades and tints of #800040
Tints
Shades
Tones
#800040 color harmonies
Complementary
Analogous
Triadic
Split-complementary
Tetradic
Square
Monochromatic
Using #800040 in CSS
.text { color: #800040; }
.background { background-color: #800040; }
.border { border: 2px solid #800040; }
/* Modern, perceptually uniform */
.text { color: oklch(0.3881 0.1571 0.67); }
/* #800040 at 50% transparency */
.overlay { background-color: #80004080; }Is #800040 accessible?
#800040 on white text scores 10.54:1; on black text it scores 1.99:1. White text passes WCAG AAA on #800040. Recommended text color on a #800040 background: white.
A 1.99:1 vs black
A 10.54:1 vs white
- AA normal ≥ 4.5 Pass
- AA large ≥ 3 Pass
- AAA normal ≥ 7 Pass
- AAA large ≥ 4.5 Pass
Recommended text color: white
CSS
contrast-color() contrast-color(#800040) → white APCA Lc experimental 96.5 Lc · body text — preferred (white text)
WCAG 2.1 AA/AAA is the compliance floor; APCA is an optional readability metric.
Related colors
Nearest featured color: Purple #800080. See more in the purple family on the colors hub.
Frequently asked questions
- What color is #800040?
- #800040 is closest to Purple. In RGB it is rgb(128, 0, 64), and in HSL hsl(330, 100%, 25%).
- What is #800040 in RGB?
- #800040 converts to rgb(128, 0, 64) — red 128, green 0, blue 64.
- What text color is readable on #800040?
- White text — it has the higher contrast ratio (10.54:1) against #800040. White text passes WCAG AAA on #800040.