#781F6F#781F6F
#781F6F is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.4% C 0.154 H 332.4°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).
Color values
| HEX | #781F6F |
|---|---|
| RGB | rgb(120, 31, 111) |
| HSL | hsl(306, 59%, 30%) |
| HSV | hsv(306, 74%, 47%) |
| CMYK | cmyk(0%, 74.2%, 7.5%, 52.9%) |
| CIE-LAB | lab(29.72, 47.38, -25.90) |
| CIE-LCH | lch(29.72, 54.00, 331.33°) |
| OKLab | oklab(41.44% 0.1362 -0.0711) |
| OKLCH | oklch(41.44% 0.154 332.4) |
| XYZ | xyz(11.1050, 6.1216, 15.6326) |
| Luminance | 0.0612 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 1.87
Purple
#800080
ΔE00 4.35
Rich Purple
#720058
ΔE00 5.24
Darkmagenta
#8B008B
ΔE00 5.76
Grape
#6C3461
ΔE00 6.39
Grape Purple
#5D1451
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#781F6F #1F7828
analogous
#541F78 #781F6F #781F43
triadic
#781F6F #6F781F #1F6F78
tetradic
#781F6F #78541F #1F7828 #1F4378
square
#781F6F #78541F #1F7828 #1F4378
split-complementary
#781F6F #43781F #1F7854
monochromatic
#180616 #471242 #781F6F #A92C9C #CE43C0
Accessibility & contrast
On white
9.44
#781F6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#781F6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #781F6F
9.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##781F6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##781F6F | 1.00 | 9.44 | 2.22 | 9.44 |
| #FFFFFF | 9.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A3E71
Deuteranopia (green-blind)
#3C4A6D
Tritanopia (blue-blind)
#7D2845
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #781f6f; /* rgb */ color: rgb(120, 31, 111); /* oklch */ color: oklch(41.4% 0.154 332.4);
Tailwind
colors: {
custom: {
50: '#a26498',
500: '#781f6f',
950: '#000000',
},
}SCSS
$custom: #781f6f; $custom-light: #a26498; $custom-dark: #000000;
JSON
{
"hex": "#781f6f",
"rgb": {
"r": 120,
"g": 31,
"b": 111
},
"hsl": {
"h": 306.067,
"s": 58.94,
"l": 29.608
},
"oklch": {
"l": 0.41436,
"c": 0.15364,
"h": 332.4
},
"luminance": 0.06121
}Semantic roles & 50–950 ramp
primary
#781F6F
secondary
#47AB51
accent
#E25546
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E