#8C1F9C#8C1F9C
#8C1F9C is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.200 H 322.1°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).
Color values
| HEX | #8C1F9C |
|---|---|
| RGB | rgb(140, 31, 156) |
| HSL | hsl(292, 67%, 37%) |
| HSV | hsv(292, 80%, 61%) |
| CMYK | cmyk(10.3%, 80.1%, 0%, 38.8%) |
| CIE-LAB | lab(35.90, 59.68, -43.85) |
| CIE-LCH | lch(35.90, 74.06, 323.69°) |
| OKLab | oklab(47.39% 0.1577 -0.1228) |
| OKLCH | oklch(47.39% 0.2 322.1) |
| XYZ | xyz(17.3053, 8.9567, 32.2634) |
| Luminance | 0.0896 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.91
Darkmagenta
#8B008B
ΔE00 3.71
Barney Purple
#A00498
ΔE00 4.03
Warm Purple
#952E8F
ΔE00 4.73
Purple
#800080
ΔE00 5.63
Barney
#AC1DB8
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C1F9C #2F9C1F
analogous
#4E1F9C #8C1F9C #9C1F6E
triadic
#8C1F9C #9C8C1F #1F9C8C
tetradic
#8C1F9C #9C4E1F #2F9C1F #1F6E9C
square
#8C1F9C #9C4E1F #2F9C1F #1F6E9C
split-complementary
#8C1F9C #6E9C1F #1F9C4E
monochromatic
#300B36 #5E1569 #8C1F9C #BA29CF #CD58DE
Accessibility & contrast
On white
7.52
#8C1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#8C1F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8C1F9C
7.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C1F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8C1F9C | 1.00 | 7.52 | 2.79 | 7.52 |
| #FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#325899
Tritanopia (blue-blind)
#8E395E
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #8c1f9c; /* rgb */ color: rgb(140, 31, 156); /* oklch */ color: oklch(47.4% 0.200 322.1);
Tailwind
colors: {
custom: {
50: '#b269ba',
500: '#8c1f9c',
950: '#000000',
},
}SCSS
$custom: #8c1f9c; $custom-light: #b269ba; $custom-dark: #000000;
JSON
{
"hex": "#8c1f9c",
"rgb": {
"r": 140,
"g": 31,
"b": 156
},
"hsl": {
"h": 292.32,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.47389,
"c": 0.19984,
"h": 322.1
},
"luminance": 0.08956
}Semantic roles & 50–950 ramp
primary
#8C1F9C
secondary
#63C155
accent
#EA3E54
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81