#8D1F98#8D1F98
#8D1F98 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.3% C 0.197 H 323.9°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).
Color values
| HEX | #8D1F98 |
|---|---|
| RGB | rgb(141, 31, 152) |
| HSL | hsl(295, 66%, 36%) |
| HSV | hsv(295, 80%, 60%) |
| CMYK | cmyk(7.2%, 79.6%, 0%, 40.4%) |
| CIE-LAB | lab(35.81, 59.16, -41.55) |
| CIE-LCH | lch(35.81, 72.30, 324.92°) |
| OKLab | oklab(47.28% 0.1592 -0.116) |
| OKLCH | oklch(47.28% 0.197 323.9) |
| XYZ | xyz(17.1415, 8.9108, 30.5168) |
| Luminance | 0.0891 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkmagenta
#8B008B
ΔE00 3.21
Purple (survey)
#7E1E9C
ΔE00 3.45
Barney Purple
#A00498
ΔE00 3.54
Warm Purple
#952E8F
ΔE00 4.07
Purple
#800080
ΔE00 5.21
Barney
#AC1DB8
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D1F98 #2A981F
analogous
#501F98 #8D1F98 #981F66
triadic
#8D1F98 #988D1F #1F988D
tetradic
#8D1F98 #98501F #2A981F #1F6698
square
#8D1F98 #98501F #2A981F #1F6698
split-complementary
#8D1F98 #66981F #1F9850
monochromatic
#2F0A32 #5E1565 #8D1F98 #BC29CB #D055DC
Accessibility & contrast
On white
7.55
#8D1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.78
#8D1F98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8D1F98
7.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D1F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8D1F98 | 1.00 | 7.55 | 2.78 | 7.55 |
| #FFFFFF | 7.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#375895
Tritanopia (blue-blind)
#90375C
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #8d1f98; /* rgb */ color: rgb(141, 31, 152); /* oklch */ color: oklch(47.3% 0.197 323.9);
Tailwind
colors: {
custom: {
50: '#b269b7',
500: '#8d1f98',
950: '#000000',
},
}SCSS
$custom: #8d1f98; $custom-light: #b269b7; $custom-dark: #000000;
JSON
{
"hex": "#8d1f98",
"rgb": {
"r": 141,
"g": 31,
"b": 152
},
"hsl": {
"h": 294.545,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.47277,
"c": 0.19702,
"h": 323.9
},
"luminance": 0.0891
}Semantic roles & 50–950 ramp
primary
#8D1F98
secondary
#5DC053
accent
#E93F4E
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80