#8A2FE2#8A2FE2
#8A2FE2 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.7% C 0.247 H 301.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2FE2 |
|---|---|
| RGB | rgb(138, 47, 226) |
| HSL | hsl(271, 76%, 54%) |
| HSV | hsv(271, 79%, 89%) |
| CMYK | cmyk(38.9%, 79.2%, 0%, 11.4%) |
| CIE-LAB | lab(42.65, 68.49, -74.00) |
| CIE-LCH | lch(42.65, 100.83, 312.78°) |
| OKLab | oklab(53.7% 0.1276 -0.2115) |
| OKLCH | oklch(53.7% 0.247 301.1) |
| XYZ | xyz(25.2218, 12.9271, 73.1031) |
| Luminance | 0.1293 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 0.53
Violet (survey)
#9A0EEA
ΔE00 2.87
Vivid Purple
#9900FA
ΔE00 3.57
Violet
#8F00FF
ΔE00 3.71
Bluish Purple
#703BE7
ΔE00 4.17
Darkorchid
#9932CC
ΔE00 4.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2FE2 #87E22F
analogous
#302FE2 #8A2FE2 #E22FE0
triadic
#8A2FE2 #E28A2F #2FE28A
tetradic
#8A2FE2 #E2302F #87E22F #2FE0E2
square
#8A2FE2 #E2302F #87E22F #2FE0E2
split-complementary
#8A2FE2 #E0E22F #2FE230
monochromatic
#4C1284 #6B1ABA #8A2FE2 #A865E9 #C69AF1
Accessibility & contrast
On white
5.86
#8A2FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.59
#8A2FE2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2FE2
5.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2FE2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2FE2 | 1.00 | 5.86 | 3.59 | 5.86 |
| #FFFFFF | 5.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064E7
Deuteranopia (green-blind)
#0064DF
Tritanopia (blue-blind)
#766189
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8a2fe2; /* rgb */ color: rgb(138, 47, 226); /* oklch */ color: oklch(53.7% 0.247 301.1);
Tailwind
colors: {
custom: {
50: '#b473ec',
500: '#8a2fe2',
950: '#000000',
},
}SCSS
$custom: #8a2fe2; $custom-light: #b473ec; $custom-dark: #000000;
JSON
{
"hex": "#8a2fe2",
"rgb": {
"r": 138,
"g": 47,
"b": 226
},
"hsl": {
"h": 270.503,
"s": 75.527,
"l": 53.529
},
"oklch": {
"l": 0.53699,
"c": 0.24699,
"h": 301.1
},
"luminance": 0.12927
}Semantic roles & 50–950 ramp
primary
#8A2FE2
secondary
#B6DD90
accent
#F23692
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#120916
muted
#817B84