#8A2EE1#8A2EE1
#8A2EE1 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.5% C 0.247 H 301.4°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2EE1 |
|---|---|
| RGB | rgb(138, 46, 225) |
| HSL | hsl(271, 75%, 53%) |
| HSV | hsv(271, 80%, 88%) |
| CMYK | cmyk(38.7%, 79.6%, 0%, 11.8%) |
| CIE-LAB | lab(42.45, 68.61, -73.76) |
| CIE-LCH | lch(42.45, 100.74, 312.93°) |
| OKLab | oklab(53.53% 0.1286 -0.2108) |
| OKLCH | oklch(53.53% 0.247 301.4) |
| XYZ | xyz(25.0455, 12.7933, 72.3694) |
| Luminance | 0.1279 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 0.37
Violet (survey)
#9A0EEA
ΔE00 2.82
Vivid Purple
#9900FA
ΔE00 3.61
Violet
#8F00FF
ΔE00 3.75
Darkorchid
#9932CC
ΔE00 4.24
Bluish Purple
#703BE7
ΔE00 4.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2EE1 #85E12E
analogous
#302EE1 #8A2EE1 #E12EDE
triadic
#8A2EE1 #E18A2E #2EE18A
tetradic
#8A2EE1 #E1302E #85E12E #2EDEE1
square
#8A2EE1 #E1302E #85E12E #2EDEE1
split-complementary
#8A2EE1 #DEE12E #2EE130
monochromatic
#4C1382 #6B1AB7 #8A2EE1 #A864E9 #C699F0
Accessibility & contrast
On white
5.90
#8A2EE1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#8A2EE1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2EE1
5.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2EE1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2EE1 | 1.00 | 5.90 | 3.56 | 5.90 |
| #FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063E6
Deuteranopia (green-blind)
#0063DE
Tritanopia (blue-blind)
#766089
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8a2ee1; /* rgb */ color: rgb(138, 46, 225); /* oklch */ color: oklch(53.5% 0.247 301.4);
Tailwind
colors: {
custom: {
50: '#b472ec',
500: '#8a2ee1',
950: '#000000',
},
}SCSS
$custom: #8a2ee1; $custom-light: #b472ec; $custom-dark: #000000;
JSON
{
"hex": "#8a2ee1",
"rgb": {
"r": 138,
"g": 46,
"b": 225
},
"hsl": {
"h": 270.838,
"s": 74.895,
"l": 53.137
},
"oklch": {
"l": 0.53533,
"c": 0.2469,
"h": 301.4
},
"luminance": 0.12794
}Semantic roles & 50–950 ramp
primary
#8A2EE1
secondary
#B4DC8F
accent
#F23691
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#120916
muted
#817B84