#8A36CB#8A36CB
#8A36CB is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.5% C 0.218 H 305.7°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).
Color values
| HEX | #8A36CB |
|---|---|
| RGB | rgb(138, 54, 203) |
| HSL | hsl(274, 59%, 50%) |
| HSV | hsv(274, 73%, 80%) |
| CMYK | cmyk(32%, 73.4%, 0%, 20.4%) |
| CIE-LAB | lab(41.77, 60.64, -62.22) |
| CIE-LCH | lch(41.77, 86.88, 314.26°) |
| OKLab | oklab(52.52% 0.1273 -0.1769) |
| OKLCH | oklch(52.52% 0.218 305.7) |
| XYZ | xyz(22.5775, 12.3536, 57.6834) |
| Luminance | 0.1235 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.63
Blueviolet
#8A2BE2
ΔE00 3.18
Darkviolet
#9400D3
ΔE00 4.25
Violet (survey)
#9A0EEA
ΔE00 4.70
Purply
#983FB2
ΔE00 5.80
Vibrant Purple
#AD03DE
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A36CB #77CB36
analogous
#4036CB #8A36CB #CB36C1
triadic
#8A36CB #CB8A36 #36CB8A
tetradic
#8A36CB #CB4036 #77CB36 #36C1CB
square
#8A36CB #CB4036 #77CB36 #36C1CB
split-complementary
#8A36CB #C1CB36 #36CB40
monochromatic
#481C6B #69289C #8A36CB #A667D8 #C397E4
Accessibility & contrast
On white
6.05
#8A36CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.47
#8A36CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A36CB
6.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A36CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A36CB | 1.00 | 6.05 | 3.47 | 6.05 |
| #FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#7E5A7E
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8a36cb; /* rgb */ color: rgb(138, 54, 203); /* oklch */ color: oklch(52.5% 0.218 305.7);
Tailwind
colors: {
custom: {
50: '#b275dc',
500: '#8a36cb',
950: '#000000',
},
}SCSS
$custom: #8a36cb; $custom-light: #b275dc; $custom-dark: #000000;
JSON
{
"hex": "#8a36cb",
"rgb": {
"r": 138,
"g": 54,
"b": 203
},
"hsl": {
"h": 273.826,
"s": 58.893,
"l": 50.392
},
"oklch": {
"l": 0.5252,
"c": 0.218,
"h": 305.7
},
"luminance": 0.12353
}Semantic roles & 50–950 ramp
primary
#8A36CB
secondary
#AAD08D
accent
#E2468A
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83