#8C2CA6#8C2CA6
#8C2CA6 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.1% C 0.195 H 318.1°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).
Color values
| HEX | #8C2CA6 |
|---|---|
| RGB | rgb(140, 44, 166) |
| HSL | hsl(287, 58%, 41%) |
| HSV | hsv(287, 73%, 65%) |
| CMYK | cmyk(15.7%, 73.5%, 0%, 34.9%) |
| CIE-LAB | lab(38.08, 57.19, -46.39) |
| CIE-LCH | lch(38.08, 73.64, 320.95°) |
| OKLab | oklab(49.14% 0.145 -0.1303) |
| OKLCH | oklch(49.14% 0.195 318.1) |
| XYZ | xyz(18.5979, 10.1308, 37.0448) |
| Luminance | 0.1013 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.85
Purply
#983FB2
ΔE00 4.82
Barney Purple
#A00498
ΔE00 5.41
Warm Purple
#952E8F
ΔE00 5.45
Barney
#AC1DB8
ΔE00 5.72
Darkmagenta
#8B008B
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C2CA6 #46A62C
analogous
#4F2CA6 #8C2CA6 #A62C83
triadic
#8C2CA6 #A68C2C #2CA68C
tetradic
#8C2CA6 #A64F2C #46A62C #2C83A6
square
#8C2CA6 #A64F2C #46A62C #2C83A6
split-complementary
#8C2CA6 #83A62C #2CA64F
monochromatic
#3A1245 #631F76 #8C2CA6 #AF42CD #C473DA
Accessibility & contrast
On white
6.94
#8C2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.03
#8C2CA6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8C2CA6
6.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C2CA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8C2CA6 | 1.00 | 6.94 | 3.03 | 6.94 |
| #FFFFFF | 6.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#315DA3
Tritanopia (blue-blind)
#8B4567
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #8c2ca6; /* rgb */ color: rgb(140, 44, 166); /* oklch */ color: oklch(49.1% 0.195 318.1);
Tailwind
colors: {
custom: {
50: '#b16fc1',
500: '#8c2ca6',
950: '#000000',
},
}SCSS
$custom: #8c2ca6; $custom-light: #b16fc1; $custom-dark: #000000;
JSON
{
"hex": "#8c2ca6",
"rgb": {
"r": 140,
"g": 44,
"b": 166
},
"hsl": {
"h": 287.213,
"s": 58.095,
"l": 41.176
},
"oklch": {
"l": 0.4914,
"c": 0.19498,
"h": 318.1
},
"luminance": 0.1013
}Semantic roles & 50–950 ramp
primary
#8C2CA6
secondary
#7FC16D
accent
#E14667
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81