#802F7D#802F7D
#802F7D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.2% C 0.148 H 329.2°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).
Color values
| HEX | #802F7D |
|---|---|
| RGB | rgb(128, 47, 125) |
| HSL | hsl(302, 46%, 34%) |
| HSV | hsv(302, 63%, 50%) |
| CMYK | cmyk(0%, 63.3%, 2.3%, 49.8%) |
| CIE-LAB | lab(34.20, 45.28, -27.60) |
| CIE-LCH | lch(34.20, 53.03, 328.63°) |
| OKLab | oklab(45.19% 0.1274 -0.076) |
| OKLCH | oklch(45.19% 0.148 329.2) |
| XYZ | xyz(13.6201, 8.1038, 20.2449) |
| Luminance | 0.0810 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 4.50
Darkish Purple
#751973
ΔE00 4.56
Darkmagenta
#8B008B
ΔE00 5.50
Light Eggplant
#894585
ΔE00 5.54
Purple
#800080
ΔE00 5.58
Bruise
#7E4071
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#802F7D #2F8032
analogous
#5B2F80 #802F7D #802F55
triadic
#802F7D #7D802F #2F7D80
tetradic
#802F7D #805B2F #2F8032 #2F5580
square
#802F7D #805B2F #2F8032 #2F5580
split-complementary
#802F7D #55802F #2F805B
monochromatic
#260E26 #531F51 #802F7D #AD3FA9 #C663C2
Accessibility & contrast
On white
8.01
#802F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.62
#802F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #802F7D
8.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##802F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##802F7D | 1.00 | 8.01 | 2.62 | 8.01 |
| #FFFFFF | 8.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#28497F
Deuteranopia (green-blind)
#44547B
Tritanopia (blue-blind)
#843851
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #802f7d; /* rgb */ color: rgb(128, 47, 125); /* oklch */ color: oklch(45.2% 0.148 329.2);
Tailwind
colors: {
custom: {
50: '#a76da3',
500: '#802f7d',
950: '#000000',
},
}SCSS
$custom: #802f7d; $custom-light: #a76da3; $custom-dark: #000000;
JSON
{
"hex": "#802f7d",
"rgb": {
"r": 128,
"g": 47,
"b": 125
},
"hsl": {
"h": 302.222,
"s": 46.286,
"l": 34.314
},
"oklch": {
"l": 0.4519,
"c": 0.14831,
"h": 329.2
},
"luminance": 0.08103
}Semantic roles & 50–950 ramp
primary
#802F7D
secondary
#5EAD61
accent
#D65752
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F