#781F6C#781F6C
#781F6C is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.3% C 0.151 H 334.0°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).
Color values
| HEX | #781F6C |
|---|---|
| RGB | rgb(120, 31, 108) |
| HSL | hsl(308, 59%, 30%) |
| HSV | hsv(308, 74%, 47%) |
| CMYK | cmyk(0%, 74.2%, 10%, 52.9%) |
| CIE-LAB | lab(29.56, 46.88, -24.24) |
| CIE-LCH | lch(29.56, 52.77, 332.66°) |
| OKLab | oklab(41.27% 0.1359 -0.0663) |
| OKLCH | oklch(41.27% 0.151 334) |
| XYZ | xyz(10.9426, 6.0567, 14.7772) |
| Luminance | 0.0606 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 2.48
Rich Purple
#720058
ΔE00 4.75
Purple
#800080
ΔE00 4.93
Grape
#6C3461
ΔE00 6.00
Velvet
#750851
ΔE00 6.18
Darkmagenta
#8B008B
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#781F6C #1F782B
analogous
#581F78 #781F6C #781F40
triadic
#781F6C #6C781F #1F6C78
tetradic
#781F6C #78581F #1F782B #1F4078
square
#781F6C #78581F #1F782B #1F4078
split-complementary
#781F6C #40781F #1F7858
monochromatic
#180616 #471240 #781F6C #A92C98 #CE43BC
Accessibility & contrast
On white
9.50
#781F6C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#781F6C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #781F6C
9.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##781F6C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##781F6C | 1.00 | 9.50 | 2.21 | 9.50 |
| #FFFFFF | 9.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D3D6E
Deuteranopia (green-blind)
#3D4A6A
Tritanopia (blue-blind)
#7E2743
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #781f6c; /* rgb */ color: rgb(120, 31, 108); /* oklch */ color: oklch(41.3% 0.151 334.0);
Tailwind
colors: {
custom: {
50: '#a26496',
500: '#781f6c',
950: '#000000',
},
}SCSS
$custom: #781f6c; $custom-light: #a26496; $custom-dark: #000000;
JSON
{
"hex": "#781f6c",
"rgb": {
"r": 120,
"g": 31,
"b": 108
},
"hsl": {
"h": 308.09,
"s": 58.94,
"l": 29.608
},
"oklch": {
"l": 0.41267,
"c": 0.15127,
"h": 334
},
"luminance": 0.06056
}Semantic roles & 50–950 ramp
primary
#781F6C
secondary
#47AB55
accent
#E25B46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E