#8C2CAA#8C2CAA
#8C2CAA is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.199 H 316.7°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).
Color values
| HEX | #8C2CAA |
|---|---|
| RGB | rgb(140, 44, 170) |
| HSL | hsl(286, 59%, 42%) |
| HSV | hsv(286, 74%, 67%) |
| CMYK | cmyk(17.6%, 74.1%, 0%, 33.3%) |
| CIE-LAB | lab(38.34, 57.98, -48.35) |
| CIE-LCH | lch(38.34, 75.50, 320.17°) |
| OKLab | oklab(49.41% 0.1446 -0.1361) |
| OKLCH | oklch(49.41% 0.199 316.7) |
| XYZ | xyz(18.9705, 10.2799, 39.0074) |
| Luminance | 0.1028 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.04
Purply
#983FB2
ΔE00 4.69
Barney
#AC1DB8
ΔE00 5.63
Darkorchid
#9932CC
ΔE00 5.66
Barney Purple
#A00498
ΔE00 5.88
Warm Purple
#952E8F
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C2CAA #4AAA2C
analogous
#4D2CAA #8C2CAA #AA2C89
triadic
#8C2CAA #AA8C2C #2CAA8C
tetradic
#8C2CAA #AA4D2C #4AAA2C #2C89AA
square
#8C2CAA #AA4D2C #4AAA2C #2C89AA
split-complementary
#8C2CAA #89AA2C #2CAA4D
monochromatic
#3C1349 #641F79 #8C2CAA #AE44CF #C375DB
Accessibility & contrast
On white
6.87
#8C2CAA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#8C2CAA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8C2CAA
6.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C2CAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8C2CAA | 1.00 | 6.87 | 3.06 | 6.87 |
| #FFFFFF | 6.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#2D5DA7
Tritanopia (blue-blind)
#8A4769
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #8c2caa; /* rgb */ color: rgb(140, 44, 170); /* oklch */ color: oklch(49.4% 0.199 316.7);
Tailwind
colors: {
custom: {
50: '#b26fc4',
500: '#8c2caa',
950: '#000000',
},
}SCSS
$custom: #8c2caa; $custom-light: #b26fc4; $custom-dark: #000000;
JSON
{
"hex": "#8c2caa",
"rgb": {
"r": 140,
"g": 44,
"b": 170
},
"hsl": {
"h": 285.714,
"s": 58.879,
"l": 41.961
},
"oklch": {
"l": 0.49412,
"c": 0.19858,
"h": 316.7
},
"luminance": 0.10279
}Semantic roles & 50–950 ramp
primary
#8C2CAA
secondary
#83C36F
accent
#E2466B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82