#862BAB#862BAB
#862BAB is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.6% C 0.198 H 314.0°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).
Color values
| HEX | #862BAB |
|---|---|
| RGB | rgb(134, 43, 171) |
| HSL | hsl(283, 60%, 42%) |
| HSV | hsv(283, 75%, 67%) |
| CMYK | cmyk(21.6%, 74.9%, 0%, 32.9%) |
| CIE-LAB | lab(37.37, 57.34, -50.57) |
| CIE-LCH | lch(37.37, 76.46, 318.59°) |
| OKLab | oklab(48.56% 0.1378 -0.1428) |
| OKLCH | oklch(48.56% 0.198 314) |
| XYZ | xyz(18.0448, 9.7370, 39.4491) |
| Luminance | 0.0974 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.38
Purply
#983FB2
ΔE00 5.67
Darkviolet
#9400D3
ΔE00 5.85
Darkorchid
#9932CC
ΔE00 5.99
Rebeccapurple
#663399
ΔE00 6.11
Barney
#AC1DB8
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#862BAB #50AB2B
analogous
#462BAB #862BAB #AB2B90
triadic
#862BAB #AB862B #2BAB86
tetradic
#862BAB #AB462B #50AB2B #2B90AB
square
#862BAB #AB462B #50AB2B #2B90AB
split-complementary
#862BAB #90AB2B #2BAB46
monochromatic
#391249 #601F7A #862BAB #A743D0 #BE74DC
Accessibility & contrast
On white
7.13
#862BAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.95
#862BAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #862BAB
7.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##862BAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##862BAB | 1.00 | 7.13 | 2.95 | 7.13 |
| #FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#215AA8
Tritanopia (blue-blind)
#824769
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #862bab; /* rgb */ color: rgb(134, 43, 171); /* oklch */ color: oklch(48.6% 0.198 314.0);
Tailwind
colors: {
custom: {
50: '#ad6ec5',
500: '#862bab',
950: '#000000',
},
}SCSS
$custom: #862bab; $custom-light: #ad6ec5; $custom-dark: #000000;
JSON
{
"hex": "#862bab",
"rgb": {
"r": 134,
"g": 43,
"b": 171
},
"hsl": {
"h": 282.656,
"s": 59.813,
"l": 41.961
},
"oklch": {
"l": 0.48558,
"c": 0.19842,
"h": 314
},
"luminance": 0.09736
}Semantic roles & 50–950 ramp
primary
#862BAB
secondary
#87C46E
accent
#E34573
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82