#782877#782877
#782877 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.8% C 0.148 H 328.3°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).
Color values
| HEX | #782877 |
|---|---|
| RGB | rgb(120, 40, 119) |
| HSL | hsl(301, 50%, 31%) |
| HSV | hsv(301, 67%, 47%) |
| CMYK | cmyk(0%, 66.7%, 0.8%, 52.9%) |
| CIE-LAB | lab(31.45, 45.16, -28.26) |
| CIE-LCH | lch(31.45, 53.27, 327.96°) |
| OKLab | oklab(42.83% 0.1263 -0.078) |
| OKLCH | oklch(42.83% 0.148 328.3) |
| XYZ | xyz(11.8341, 6.8434, 18.1468) |
| Luminance | 0.0684 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 2.53
Purple
#800080
ΔE00 4.46
Darkmagenta
#8B008B
ΔE00 5.35
Warm Purple
#952E8F
ΔE00 6.37
Grape
#6C3461
ΔE00 6.54
Bruise
#7E4071
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#782877 #287829
analogous
#512878 #782877 #78284F
triadic
#782877 #777828 #287778
tetradic
#782877 #785128 #287829 #284F78
square
#782877 #785128 #287829 #284F78
split-complementary
#782877 #4F7828 #287851
monochromatic
#1C091C #4A1949 #782877 #A637A5 #C654C5
Accessibility & contrast
On white
8.87
#782877 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#782877 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #782877
8.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##782877 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##782877 | 1.00 | 8.87 | 2.37 | 8.87 |
| #FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E4379
Deuteranopia (green-blind)
#3C4E75
Tritanopia (blue-blind)
#7C324C
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #782877; /* rgb */ color: rgb(120, 40, 119); /* oklch */ color: oklch(42.8% 0.148 328.3);
Tailwind
colors: {
custom: {
50: '#a2699e',
500: '#782877',
950: '#000000',
},
}SCSS
$custom: #782877; $custom-light: #a2699e; $custom-dark: #000000;
JSON
{
"hex": "#782877",
"rgb": {
"r": 120,
"g": 40,
"b": 119
},
"hsl": {
"h": 300.75,
"s": 50,
"l": 31.373
},
"oklch": {
"l": 0.42829,
"c": 0.14843,
"h": 328.3
},
"luminance": 0.06843
}Semantic roles & 50–950 ramp
primary
#782877
secondary
#52AA53
accent
#DA504E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E