#78186F#78186F
#78186F is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.8% C 0.161 H 332.4°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #78186F |
|---|---|
| RGB | rgb(120, 24, 111) |
| HSL | hsl(306, 67%, 28%) |
| HSV | hsv(306, 80%, 47%) |
| CMYK | cmyk(0%, 80%, 7.5%, 52.9%) |
| CIE-LAB | lab(28.89, 49.74, -27.21) |
| CIE-LCH | lch(28.89, 56.70, 331.32°) |
| OKLab | oklab(40.84% 0.1431 -0.0748) |
| OKLCH | oklch(40.84% 0.161 332.4) |
| XYZ | xyz(10.9416, 5.7950, 15.5781) |
| Luminance | 0.0579 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 1.34
Purple
#800080
ΔE00 3.71
Rich Purple
#720058
ΔE00 4.89
Darkmagenta
#8B008B
ΔE00 5.42
Grape Purple
#5D1451
ΔE00 6.70
Velvet
#750851
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#78186F #187821
analogous
#511878 #78186F #78183F
triadic
#78186F #6F7818 #186F78
tetradic
#78186F #785118 #187821 #183F78
square
#78186F #785118 #187821 #183F78
split-complementary
#78186F #3F7818 #187851
monochromatic
#1A0518 #450E40 #78186F #AB229E #D634C7
Accessibility & contrast
On white
9.73
#78186F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#78186F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #78186F
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##78186F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##78186F | 1.00 | 9.73 | 2.16 | 9.73 |
| #FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#113C71
Deuteranopia (green-blind)
#39496D
Tritanopia (blue-blind)
#7D2443
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #78186f; /* rgb */ color: rgb(120, 24, 111); /* oklch */ color: oklch(40.8% 0.161 332.4);
Tailwind
colors: {
custom: {
50: '#a26198',
500: '#78186f',
950: '#000000',
},
}SCSS
$custom: #78186f; $custom-light: #a26198; $custom-dark: #000000;
JSON
{
"hex": "#78186f",
"rgb": {
"r": 120,
"g": 24,
"b": 111
},
"hsl": {
"h": 305.625,
"s": 66.667,
"l": 28.235
},
"oklch": {
"l": 0.40842,
"c": 0.16147,
"h": 332.4
},
"luminance": 0.05794
}Semantic roles & 50–950 ramp
primary
#78186F
secondary
#3FAD49
accent
#EA4E3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E