#862F98#862F98
#862F98 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.7% C 0.176 H 320.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).
Color values
| HEX | #862F98 |
|---|---|
| RGB | rgb(134, 47, 152) |
| HSL | hsl(290, 53%, 39%) |
| HSV | hsv(290, 69%, 60%) |
| CMYK | cmyk(11.8%, 69.1%, 0%, 40.4%) |
| CIE-LAB | lab(36.69, 51.91, -40.22) |
| CIE-LCH | lch(36.69, 65.67, 322.23°) |
| OKLab | oklab(47.68% 0.1354 -0.1125) |
| OKLCH | oklch(47.68% 0.176 320.3) |
| XYZ | xyz(16.5148, 9.3692, 30.6382) |
| Luminance | 0.0937 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.65
Warm Purple
#952E8F
ΔE00 4.23
Darkmagenta
#8B008B
ΔE00 5.05
Barney Purple
#A00498
ΔE00 5.30
Purply
#983FB2
ΔE00 6.14
Purple
#800080
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#862F98 #41982F
analogous
#522F98 #862F98 #982F76
triadic
#862F98 #98862F #2F9886
tetradic
#862F98 #98522F #41982F #2F7698
square
#862F98 #98522F #41982F #2F7698
split-complementary
#862F98 #76982F #2F9852
monochromatic
#34123B #5D2169 #862F98 #AD40C4 #C16FD2
Accessibility & contrast
On white
7.31
#862F98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#862F98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #862F98
7.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##862F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##862F98 | 1.00 | 7.31 | 2.87 | 7.31 |
| #FFFFFF | 7.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#06509B
Deuteranopia (green-blind)
#395995
Tritanopia (blue-blind)
#874260
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #862f98; /* rgb */ color: rgb(134, 47, 152); /* oklch */ color: oklch(47.7% 0.176 320.3);
Tailwind
colors: {
custom: {
50: '#ac6fb7',
500: '#862f98',
950: '#000000',
},
}SCSS
$custom: #862f98; $custom-light: #ac6fb7; $custom-dark: #000000;
JSON
{
"hex": "#862f98",
"rgb": {
"r": 134,
"g": 47,
"b": 152
},
"hsl": {
"h": 289.714,
"s": 52.764,
"l": 39.02
},
"oklch": {
"l": 0.47676,
"c": 0.17603,
"h": 320.3
},
"luminance": 0.09368
}Semantic roles & 50–950 ramp
primary
#862F98
secondary
#77BA69
accent
#DC4C64
background
#FAF7FB
surface
#F5EDF6
border
#CFC8D0
text
#110811
muted
#807B80