#8A2CBD#8A2CBD
#8A2CBD is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.5% C 0.215 H 310.2°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2CBD |
|---|---|
| RGB | rgb(138, 44, 189) |
| HSL | hsl(279, 62%, 46%) |
| HSV | hsv(279, 77%, 74%) |
| CMYK | cmyk(27%, 76.7%, 0%, 25.9%) |
| CIE-LAB | lab(39.38, 61.48, -57.95) |
| CIE-LCH | lch(39.38, 84.48, 316.70°) |
| OKLab | oklab(50.51% 0.139 -0.1643) |
| OKLCH | oklch(50.51% 0.215 310.2) |
| XYZ | xyz(20.5654, 10.8792, 49.1508) |
| Luminance | 0.1088 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 3.69
Darkorchid
#9932CC
ΔE00 3.71
Blueviolet
#8A2BE2
ΔE00 5.18
Purply
#983FB2
ΔE00 5.43
Purple (survey)
#7E1E9C
ΔE00 5.87
Violet (survey)
#9A0EEA
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2CBD #5FBD2C
analogous
#422CBD #8A2CBD #BD2CA7
triadic
#8A2CBD #BD8A2C #2CBD8A
tetradic
#8A2CBD #BD422C #5FBD2C #2CA7BD
square
#8A2CBD #BD422C #5FBD2C #2CA7BD
split-complementary
#8A2CBD #A7BD2C #2CBD42
monochromatic
#42155A #66208B #8A2CBD #A750D6 #C082E2
Accessibility & contrast
On white
6.61
#8A2CBD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.18
#8A2CBD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2CBD
6.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2CBD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2CBD | 1.00 | 6.61 | 3.18 | 6.61 |
| #FFFFFF | 6.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#834F74
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #8a2cbd; /* rgb */ color: rgb(138, 44, 189); /* oklch */ color: oklch(50.5% 0.215 310.2);
Tailwind
colors: {
custom: {
50: '#b170d2',
500: '#8a2cbd',
950: '#000000',
},
}SCSS
$custom: #8a2cbd; $custom-light: #b170d2; $custom-dark: #000000;
JSON
{
"hex": "#8a2cbd",
"rgb": {
"r": 138,
"g": 44,
"b": 189
},
"hsl": {
"h": 278.897,
"s": 62.232,
"l": 45.686
},
"oklch": {
"l": 0.50505,
"c": 0.21524,
"h": 310.2
},
"luminance": 0.10879
}Semantic roles & 50–950 ramp
primary
#8A2CBD
secondary
#96CB7A
accent
#E5427C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83