#8A1F9D#8A1F9D
#8A1F9D is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.2% C 0.200 H 320.9°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).
Color values
| HEX | #8A1F9D |
|---|---|
| RGB | rgb(138, 31, 157) |
| HSL | hsl(291, 67%, 37%) |
| HSV | hsv(291, 80%, 62%) |
| CMYK | cmyk(12.1%, 80.3%, 0%, 38.4%) |
| CIE-LAB | lab(35.63, 59.47, -44.91) |
| CIE-LCH | lch(35.63, 74.52, 322.94°) |
| OKLab | oklab(47.16% 0.1552 -0.1259) |
| OKLCH | oklch(47.16% 0.2 320.9) |
| XYZ | xyz(17.0563, 8.8185, 32.6955) |
| Luminance | 0.0882 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.43
Darkmagenta
#8B008B
ΔE00 3.88
Barney Purple
#A00498
ΔE00 4.50
Warm Purple
#952E8F
ΔE00 5.18
Purple
#800080
ΔE00 5.67
Barney
#AC1DB8
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A1F9D #329D1F
analogous
#4B1F9D #8A1F9D #9D1F71
triadic
#8A1F9D #9D8A1F #1F9D8A
tetradic
#8A1F9D #9D4B1F #329D1F #1F719D
square
#8A1F9D #9D4B1F #329D1F #1F719D
split-complementary
#8A1F9D #719D1F #1F9D4B
monochromatic
#300B37 #5D156A #8A1F9D #B729D0 #CA58DE
Accessibility & contrast
On white
7.60
#8A1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.76
#8A1F9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A1F9D
7.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A1F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A1F9D | 1.00 | 7.60 | 2.76 | 7.60 |
| #FFFFFF | 7.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#2F579A
Tritanopia (blue-blind)
#8B3A5E
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #8a1f9d; /* rgb */ color: rgb(138, 31, 157); /* oklch */ color: oklch(47.2% 0.200 320.9);
Tailwind
colors: {
custom: {
50: '#b069bb',
500: '#8a1f9d',
950: '#000000',
},
}SCSS
$custom: #8a1f9d; $custom-light: #b069bb; $custom-dark: #000000;
JSON
{
"hex": "#8a1f9d",
"rgb": {
"r": 138,
"g": 31,
"b": 157
},
"hsl": {
"h": 290.952,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.47156,
"c": 0.19986,
"h": 320.9
},
"luminance": 0.08818
}Semantic roles & 50–950 ramp
primary
#8A1F9D
secondary
#66C256
accent
#EA3E58
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81