#8A1F8C#8A1F8C
#8A1F8C is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.186 H 327.3°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).
Color values
| HEX | #8A1F8C |
|---|---|
| RGB | rgb(138, 31, 140) |
| HSL | hsl(299, 64%, 34%) |
| HSV | hsv(299, 78%, 55%) |
| CMYK | cmyk(1.4%, 77.9%, 0%, 45.1%) |
| CIE-LAB | lab(34.55, 56.46, -36.24) |
| CIE-LCH | lch(34.55, 67.09, 327.31°) |
| OKLab | oklab(46.05% 0.1566 -0.1006) |
| OKLCH | oklch(46.05% 0.186 327.3) |
| XYZ | xyz(15.7046, 8.2778, 25.5765) |
| Luminance | 0.0828 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkmagenta
#8B008B
ΔE00 2.27
Warm Purple
#952E8F
ΔE00 3.62
Purple
#800080
ΔE00 3.86
Barney Purple
#A00498
ΔE00 3.89
Purple (survey)
#7E1E9C
ΔE00 4.57
Darkish Purple
#751973
ΔE00 5.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A1F8C #218C1F
analogous
#531F8C #8A1F8C #8C1F57
triadic
#8A1F8C #8C8A1F #1F8C8A
tetradic
#8A1F8C #8C531F #218C1F #1F578C
square
#8A1F8C #8C531F #218C1F #1F578C
split-complementary
#8A1F8C #578C1F #1F8C53
monochromatic
#270928 #59145A #8A1F8C #BB2ABE #D54ED8
Accessibility & contrast
On white
7.91
#8A1F8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.66
#8A1F8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A1F8C
7.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A1F8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A1F8C | 1.00 | 7.91 | 2.66 | 7.91 |
| #FFFFFF | 7.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00498F
Deuteranopia (green-blind)
#3C5689
Tritanopia (blue-blind)
#8E3255
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #8a1f8c; /* rgb */ color: rgb(138, 31, 140); /* oklch */ color: oklch(46.0% 0.186 327.3);
Tailwind
colors: {
custom: {
50: '#b068ae',
500: '#8a1f8c',
950: '#000000',
},
}SCSS
$custom: #8a1f8c; $custom-light: #b068ae; $custom-dark: #000000;
JSON
{
"hex": "#8a1f8c",
"rgb": {
"r": 138,
"g": 31,
"b": 140
},
"hsl": {
"h": 298.899,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.46047,
"c": 0.18611,
"h": 327.3
},
"luminance": 0.08277
}Semantic roles & 50–950 ramp
primary
#8A1F8C
secondary
#4EBB4C
accent
#E74144
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F