#7B2871#7B2871
#7B2871 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.0% C 0.145 H 332.9°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).
Color values
| HEX | #7B2871 |
|---|---|
| RGB | rgb(123, 40, 113) |
| HSL | hsl(307, 51%, 32%) |
| HSV | hsv(307, 67%, 48%) |
| CMYK | cmyk(0%, 67.5%, 8.1%, 51.8%) |
| CIE-LAB | lab(31.63, 44.90, -24.14) |
| CIE-LCH | lch(31.63, 50.97, 331.73°) |
| OKLab | oklab(42.95% 0.1292 -0.0661) |
| OKLCH | oklch(42.95% 0.145 332.9) |
| XYZ | xyz(11.9078, 6.9217, 16.3284) |
| Luminance | 0.0692 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 3.37
Purple
#800080
ΔE00 5.44
Grape
#6C3461
ΔE00 5.50
Bruise
#7E4071
ΔE00 6.06
Darkmagenta
#8B008B
ΔE00 6.25
Rich Purple
#720058
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B2871 #287B32
analogous
#5C287B #7B2871 #7B2848
triadic
#7B2871 #717B28 #28717B
tetradic
#7B2871 #7B5C28 #287B32 #28487B
square
#7B2871 #7B5C28 #287B32 #28487B
split-complementary
#7B2871 #487B28 #287B5C
monochromatic
#1F0A1C #4D1947 #7B2871 #A9379B #C856BA
Accessibility & contrast
On white
8.81
#7B2871 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#7B2871 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7B2871
8.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B2871 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B2871 | 1.00 | 8.81 | 2.38 | 8.81 |
| #FFFFFF | 8.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#254373
Deuteranopia (green-blind)
#414F6F
Tritanopia (blue-blind)
#802F49
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #7b2871; /* rgb */ color: rgb(123, 40, 113); /* oklch */ color: oklch(43.0% 0.145 332.9);
Tailwind
colors: {
custom: {
50: '#a4699a',
500: '#7b2871',
950: '#000000',
},
}SCSS
$custom: #7b2871; $custom-light: #a4699a; $custom-dark: #000000;
JSON
{
"hex": "#7b2871",
"rgb": {
"r": 123,
"g": 40,
"b": 113
},
"hsl": {
"h": 307.229,
"s": 50.92,
"l": 31.961
},
"oklch": {
"l": 0.42954,
"c": 0.14515,
"h": 332.9
},
"luminance": 0.06921
}Semantic roles & 50–950 ramp
primary
#7B2871
secondary
#52AD5D
accent
#DA5E4D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E