#792871#792871
#792871 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.6% C 0.144 H 331.9°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).
Color values
| HEX | #792871 |
|---|---|
| RGB | rgb(121, 40, 113) |
| HSL | hsl(306, 50%, 32%) |
| HSV | hsv(306, 67%, 47%) |
| CMYK | cmyk(0%, 66.9%, 6.6%, 52.5%) |
| CIE-LAB | lab(31.29, 44.35, -24.69) |
| CIE-LCH | lch(31.29, 50.76, 330.89°) |
| OKLab | oklab(42.64% 0.1269 -0.0677) |
| OKLCH | oklch(42.64% 0.144 331.9) |
| XYZ | xyz(11.6246, 6.7757, 16.3152) |
| Luminance | 0.0678 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 3.08
Purple
#800080
ΔE00 5.32
Grape
#6C3461
ΔE00 5.47
Darkmagenta
#8B008B
ΔE00 6.24
Bruise
#7E4071
ΔE00 6.26
Rich Purple
#720058
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#792871 #287930
analogous
#592879 #792871 #792849
triadic
#792871 #717928 #287179
tetradic
#792871 #795928 #287930 #284979
square
#792871 #795928 #287930 #284979
split-complementary
#792871 #497928 #287959
monochromatic
#1D0A1B #4B1946 #792871 #A7379C #C755BB
Accessibility & contrast
On white
8.92
#792871 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#792871 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #792871
8.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##792871 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##792871 | 1.00 | 8.92 | 2.36 | 8.92 |
| #FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#244273
Deuteranopia (green-blind)
#404E6F
Tritanopia (blue-blind)
#7E3049
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #792871; /* rgb */ color: rgb(121, 40, 113); /* oklch */ color: oklch(42.6% 0.144 331.9);
Tailwind
colors: {
custom: {
50: '#a2699a',
500: '#792871',
950: '#000000',
},
}SCSS
$custom: #792871; $custom-light: #a2699a; $custom-dark: #000000;
JSON
{
"hex": "#792871",
"rgb": {
"r": 121,
"g": 40,
"b": 113
},
"hsl": {
"h": 305.926,
"s": 50.311,
"l": 31.569
},
"oklch": {
"l": 0.42643,
"c": 0.14387,
"h": 331.9
},
"luminance": 0.06775
}Semantic roles & 50–950 ramp
primary
#792871
secondary
#52AB5B
accent
#DA5C4E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E