#862B97#862B97
#862B97 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.2% C 0.180 H 320.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).
Color values
| HEX | #862B97 |
|---|---|
| RGB | rgb(134, 43, 151) |
| HSL | hsl(291, 56%, 38%) |
| HSV | hsv(291, 72%, 59%) |
| CMYK | cmyk(11.3%, 71.5%, 0%, 40.8%) |
| CIE-LAB | lab(36.04, 53.35, -40.64) |
| CIE-LCH | lch(36.04, 67.07, 322.70°) |
| OKLab | oklab(47.2% 0.1398 -0.1137) |
| OKLCH | oklch(47.2% 0.18 320.9) |
| XYZ | xyz(16.2807, 9.0313, 30.1578) |
| Luminance | 0.0903 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.18
Warm Purple
#952E8F
ΔE00 4.31
Darkmagenta
#8B008B
ΔE00 4.41
Barney Purple
#A00498
ΔE00 5.02
Purple
#800080
ΔE00 5.87
Purply
#983FB2
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#862B97 #3C972B
analogous
#502B97 #862B97 #972B72
triadic
#862B97 #97862B #2B9786
tetradic
#862B97 #97502B #3C972B #2B7297
square
#862B97 #97502B #3C972B #2B7297
split-complementary
#862B97 #72972B #2B9750
monochromatic
#311038 #5C1D67 #862B97 #B039C7 #C368D4
Accessibility & contrast
On white
7.48
#862B97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.81
#862B97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #862B97
7.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##862B97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##862B97 | 1.00 | 7.48 | 2.81 | 7.48 |
| #FFFFFF | 7.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#375894
Tritanopia (blue-blind)
#873F5E
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #862b97; /* rgb */ color: rgb(134, 43, 151); /* oklch */ color: oklch(47.2% 0.180 320.9);
Tailwind
colors: {
custom: {
50: '#ad6db6',
500: '#862b97',
950: '#000000',
},
}SCSS
$custom: #862b97; $custom-light: #ad6db6; $custom-dark: #000000;
JSON
{
"hex": "#862b97",
"rgb": {
"r": 134,
"g": 43,
"b": 151
},
"hsl": {
"h": 290.556,
"s": 55.67,
"l": 38.039
},
"oklch": {
"l": 0.47197,
"c": 0.18018,
"h": 320.9
},
"luminance": 0.0903
}Semantic roles & 50–950 ramp
primary
#862B97
secondary
#71BB63
accent
#DF4960
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80