#7F1874#7F1874
#7F1874 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.169 H 333.1°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).
Color values
| HEX | #7F1874 |
|---|---|
| RGB | rgb(127, 24, 116) |
| HSL | hsl(306, 68%, 30%) |
| HSV | hsv(306, 81%, 50%) |
| CMYK | cmyk(0%, 81.1%, 8.7%, 50.2%) |
| CIE-LAB | lab(30.47, 52.15, -27.83) |
| CIE-LCH | lch(30.47, 59.11, 331.92°) |
| OKLab | oklab(42.31% 0.1507 -0.0765) |
| OKLCH | oklch(42.31% 0.169 333.1) |
| XYZ | xyz(12.2315, 6.4273, 17.1160) |
| Luminance | 0.0643 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 2.12
Purple
#800080
ΔE00 3.26
Darkmagenta
#8B008B
ΔE00 4.43
Rich Purple
#720058
ΔE00 5.75
Warm Purple
#952E8F
ΔE00 6.68
Velvet
#750851
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F1874 #187F23
analogous
#57187F #7F1874 #7F1840
triadic
#7F1874 #747F18 #18747F
tetradic
#7F1874 #7F5718 #187F23 #18407F
square
#7F1874 #7F5718 #187F23 #18407F
split-complementary
#7F1874 #407F18 #187F57
monochromatic
#1A0518 #4C0E45 #7F1874 #B222A3 #D938C8
Accessibility & contrast
On white
9.19
#7F1874 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.29
#7F1874 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F1874
9.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F1874 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F1874 | 1.00 | 9.19 | 2.29 | 9.19 |
| #FFFFFF | 9.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#123E76
Deuteranopia (green-blind)
#3D4D72
Tritanopia (blue-blind)
#852446
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #7f1874; /* rgb */ color: rgb(127, 24, 116); /* oklch */ color: oklch(42.3% 0.169 333.1);
Tailwind
colors: {
custom: {
50: '#a8639c',
500: '#7f1874',
950: '#000000',
},
}SCSS
$custom: #7f1874; $custom-light: #a8639c; $custom-dark: #000000;
JSON
{
"hex": "#7f1874",
"rgb": {
"r": 127,
"g": 24,
"b": 116
},
"hsl": {
"h": 306.408,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.42305,
"c": 0.16897,
"h": 333.1
},
"luminance": 0.06426
}Semantic roles & 50–950 ramp
primary
#7F1874
secondary
#3FB34C
accent
#EB4F3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E