#781F74#781F74
#781F74 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.158 H 329.9°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).
Color values
| HEX | #781F74 |
|---|---|
| RGB | rgb(120, 31, 116) |
| HSL | hsl(303, 59%, 30%) |
| HSV | hsv(303, 74%, 47%) |
| CMYK | cmyk(0%, 74.2%, 3.3%, 52.9%) |
| CIE-LAB | lab(30.00, 48.23, -28.65) |
| CIE-LCH | lch(30.00, 56.10, 329.29°) |
| OKLab | oklab(41.73% 0.1364 -0.0791) |
| OKLCH | oklch(41.73% 0.158 329.9) |
| XYZ | xyz(11.3880, 6.2349, 17.1233) |
| Luminance | 0.0623 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 1.17
Purple
#800080
ΔE00 3.51
Darkmagenta
#8B008B
ΔE00 4.94
Rich Purple
#720058
ΔE00 6.12
Warm Purple
#952E8F
ΔE00 7.11
Grape
#6C3461
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#781F74 #1F7823
analogous
#501F78 #781F74 #781F47
triadic
#781F74 #74781F #1F7478
tetradic
#781F74 #78501F #1F7823 #1F4778
square
#781F74 #78501F #1F7823 #1F4778
split-complementary
#781F74 #47781F #1F7850
monochromatic
#180618 #471245 #781F74 #A92CA3 #CE43C8
Accessibility & contrast
On white
9.35
#781F74 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#781F74 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #781F74
9.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##781F74 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##781F74 | 1.00 | 9.35 | 2.25 | 9.35 |
| #FFFFFF | 9.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#153F76
Deuteranopia (green-blind)
#394B72
Tritanopia (blue-blind)
#7D2B47
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #781f74; /* rgb */ color: rgb(120, 31, 116); /* oklch */ color: oklch(41.7% 0.158 329.9);
Tailwind
colors: {
custom: {
50: '#a2649c',
500: '#781f74',
950: '#000000',
},
}SCSS
$custom: #781f74; $custom-light: #a2649c; $custom-dark: #000000;
JSON
{
"hex": "#781f74",
"rgb": {
"r": 120,
"g": 31,
"b": 116
},
"hsl": {
"h": 302.697,
"s": 58.94,
"l": 29.608
},
"oklch": {
"l": 0.41728,
"c": 0.15768,
"h": 329.9
},
"luminance": 0.06234
}Semantic roles & 50–950 ramp
primary
#781F74
secondary
#47AB4C
accent
#E24D46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E