#78156F#78156F
#78156F is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.6% C 0.164 H 332.4°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).
Color values
| HEX | #78156F |
|---|---|
| RGB | rgb(120, 21, 111) |
| HSL | hsl(305, 70%, 28%) |
| HSV | hsv(305, 83%, 47%) |
| CMYK | cmyk(0%, 82.5%, 7.5%, 52.9%) |
| CIE-LAB | lab(28.59, 50.62, -27.69) |
| CIE-LCH | lch(28.59, 57.70, 331.32°) |
| OKLab | oklab(40.62% 0.1456 -0.0762) |
| OKLCH | oklch(40.62% 0.164 332.4) |
| XYZ | xyz(10.8832, 5.6780, 15.5586) |
| Luminance | 0.0568 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 1.30
Purple
#800080
ΔE00 3.52
Rich Purple
#720058
ΔE00 4.81
Darkmagenta
#8B008B
ΔE00 5.33
Grape Purple
#5D1451
ΔE00 6.69
Velvet
#750851
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#78156F #15781E
analogous
#501578 #78156F #78153D
triadic
#78156F #6F7815 #156F78
tetradic
#78156F #785015 #15781E #153D78
square
#78156F #785015 #15781E #153D78
split-complementary
#78156F #3D7815 #157850
monochromatic
#1A0518 #440C3F #78156F #AC1E9F #DA2DCB
Accessibility & contrast
On white
9.83
#78156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#78156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #78156F
9.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##78156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##78156F | 1.00 | 9.83 | 2.14 | 9.83 |
| #FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D3B71
Deuteranopia (green-blind)
#38486D
Tritanopia (blue-blind)
#7D2242
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #78156f; /* rgb */ color: rgb(120, 21, 111); /* oklch */ color: oklch(40.6% 0.164 332.4);
Tailwind
colors: {
custom: {
50: '#a26098',
500: '#78156f',
950: '#000000',
},
}SCSS
$custom: #78156f; $custom-light: #a26098; $custom-dark: #000000;
JSON
{
"hex": "#78156f",
"rgb": {
"r": 120,
"g": 21,
"b": 111
},
"hsl": {
"h": 305.455,
"s": 70.213,
"l": 27.647
},
"oklch": {
"l": 0.40624,
"c": 0.16437,
"h": 332.4
},
"luminance": 0.05677
}Semantic roles & 50–950 ramp
primary
#78156F
secondary
#3BAE46
accent
#ED4B3B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050E
muted
#7F7A7E