#8A2CBB#8A2CBB
#8A2CBB is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.4% C 0.213 H 310.8°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2CBB |
|---|---|
| RGB | rgb(138, 44, 187) |
| HSL | hsl(279, 62%, 45%) |
| HSV | hsv(279, 76%, 73%) |
| CMYK | cmyk(26.2%, 76.5%, 0%, 26.7%) |
| CIE-LAB | lab(39.23, 61.06, -57.01) |
| CIE-LCH | lch(39.23, 83.54, 316.97°) |
| OKLab | oklab(50.36% 0.1394 -0.1615) |
| OKLCH | oklch(50.36% 0.213 310.8) |
| XYZ | xyz(20.3498, 10.7930, 48.0153) |
| Luminance | 0.1079 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.87
Darkviolet
#9400D3
ΔE00 3.89
Purply
#983FB2
ΔE00 5.32
Blueviolet
#8A2BE2
ΔE00 5.49
Purple (survey)
#7E1E9C
ΔE00 5.61
Violet (survey)
#9A0EEA
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2CBB #5DBB2C
analogous
#432CBB #8A2CBB #BB2CA4
triadic
#8A2CBB #BB8A2C #2CBB8A
tetradic
#8A2CBB #BB432C #5DBB2C #2CA4BB
square
#8A2CBB #BB432C #5DBB2C #2CA4BB
split-complementary
#8A2CBB #A4BB2C #2CBB43
monochromatic
#411558 #652089 #8A2CBB #A74FD6 #C080E1
Accessibility & contrast
On white
6.65
#8A2CBB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.16
#8A2CBB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2CBB
6.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2CBB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2CBB | 1.00 | 6.65 | 3.16 | 6.65 |
| #FFFFFF | 6.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#065EB8
Tritanopia (blue-blind)
#834E72
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #8a2cbb; /* rgb */ color: rgb(138, 44, 187); /* oklch */ color: oklch(50.4% 0.213 310.8);
Tailwind
colors: {
custom: {
50: '#b170d0',
500: '#8a2cbb',
950: '#000000',
},
}SCSS
$custom: #8a2cbb; $custom-light: #b170d0; $custom-dark: #000000;
JSON
{
"hex": "#8a2cbb",
"rgb": {
"r": 138,
"g": 44,
"b": 187
},
"hsl": {
"h": 279.441,
"s": 61.905,
"l": 45.294
},
"oklch": {
"l": 0.50356,
"c": 0.21339,
"h": 310.8
},
"luminance": 0.10792
}Semantic roles & 50–950 ramp
primary
#8A2CBB
secondary
#95CA79
accent
#E5437A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82