#8D31CE#8D31CE
#8D31CE is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.6% C 0.227 H 306.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).
Color values
| HEX | #8D31CE |
|---|---|
| RGB | rgb(141, 49, 206) |
| HSL | hsl(275, 62%, 50%) |
| HSV | hsv(275, 76%, 81%) |
| CMYK | cmyk(31.6%, 76.2%, 0%, 19.2%) |
| CIE-LAB | lab(41.71, 63.81, -64.04) |
| CIE-LCH | lch(41.71, 90.40, 314.90°) |
| OKLab | oklab(52.64% 0.1352 -0.1821) |
| OKLCH | oklch(52.64% 0.227 306.6) |
| XYZ | xyz(23.2210, 12.3158, 59.5344) |
| Luminance | 0.1232 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.35
Blueviolet
#8A2BE2
ΔE00 2.79
Darkviolet
#9400D3
ΔE00 3.53
Violet (survey)
#9A0EEA
ΔE00 3.99
Vibrant Purple
#AD03DE
ΔE00 5.19
Vivid Purple
#9900FA
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D31CE #72CE31
analogous
#3E31CE #8D31CE #CE31C1
triadic
#8D31CE #CE8D31 #31CE8D
tetradic
#8D31CE #CE3E31 #72CE31 #31C1CE
square
#8D31CE #CE3E31 #72CE31 #31C1CE
split-complementary
#8D31CE #C1CE31 #31CE3E
monochromatic
#49196B #6B259D #8D31CE #A862DA #C494E6
Accessibility & contrast
On white
6.06
#8D31CE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#8D31CE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8D31CE
6.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D31CE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8D31CE | 1.00 | 6.06 | 3.46 | 6.06 |
| #FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#0063CB
Tritanopia (blue-blind)
#82597E
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #8d31ce; /* rgb */ color: rgb(141, 49, 206); /* oklch */ color: oklch(52.6% 0.227 306.6);
Tailwind
colors: {
custom: {
50: '#b473de',
500: '#8d31ce',
950: '#000000',
},
}SCSS
$custom: #8d31ce; $custom-light: #b473de; $custom-dark: #000000;
JSON
{
"hex": "#8d31ce",
"rgb": {
"r": 141,
"g": 49,
"b": 206
},
"hsl": {
"h": 275.159,
"s": 61.569,
"l": 50
},
"oklch": {
"l": 0.52635,
"c": 0.22685,
"h": 306.6
},
"luminance": 0.12316
}Semantic roles & 50–950 ramp
primary
#8D31CE
secondary
#A7D18A
accent
#E54386
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83