#8A2EC2#8A2EC2
#8A2EC2 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.1% C 0.218 H 308.7°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2EC2 |
|---|---|
| RGB | rgb(138, 46, 194) |
| HSL | hsl(277, 62%, 47%) |
| HSV | hsv(277, 76%, 76%) |
| CMYK | cmyk(28.9%, 76.3%, 0%, 23.9%) |
| CIE-LAB | lab(40.00, 61.81, -59.86) |
| CIE-LCH | lch(40.00, 86.04, 315.92°) |
| OKLab | oklab(51.06% 0.1363 -0.1699) |
| OKLCH | oklch(51.06% 0.218 308.7) |
| XYZ | xyz(21.1938, 11.2527, 52.0840) |
| Luminance | 0.1125 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.23
Darkviolet
#9400D3
ΔE00 3.48
Blueviolet
#8A2BE2
ΔE00 4.39
Violet (survey)
#9A0EEA
ΔE00 5.41
Purply
#983FB2
ΔE00 5.57
Vibrant Purple
#AD03DE
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2EC2 #66C22E
analogous
#402EC2 #8A2EC2 #C22EB0
triadic
#8A2EC2 #C28A2E #2EC28A
tetradic
#8A2EC2 #C2402E #66C22E #2EB0C2
square
#8A2EC2 #C2402E #66C22E #2EB0C2
split-complementary
#8A2EC2 #B0C22E #2EC240
monochromatic
#44175F #672291 #8A2EC2 #A656D7 #C088E3
Accessibility & contrast
On white
6.46
#8A2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.25
#8A2EC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2EC2
6.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2EC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2EC2 | 1.00 | 6.46 | 3.25 | 6.46 |
| #FFFFFF | 6.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#005FBF
Tritanopia (blue-blind)
#815277
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #8a2ec2; /* rgb */ color: rgb(138, 46, 194); /* oklch */ color: oklch(51.1% 0.218 308.7);
Tailwind
colors: {
custom: {
50: '#b171d5',
500: '#8a2ec2',
950: '#000000',
},
}SCSS
$custom: #8a2ec2; $custom-light: #b171d5; $custom-dark: #000000;
JSON
{
"hex": "#8a2ec2",
"rgb": {
"r": 138,
"g": 46,
"b": 194
},
"hsl": {
"h": 277.297,
"s": 61.667,
"l": 47.059
},
"oklch": {
"l": 0.51062,
"c": 0.21785,
"h": 308.7
},
"luminance": 0.11252
}Semantic roles & 50–950 ramp
primary
#8A2EC2
secondary
#9DCC7F
accent
#E54380
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83