#8A36C4#8A36C4
#8A36C4 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.0% C 0.211 H 307.5°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).
Color values
| HEX | #8A36C4 |
|---|---|
| RGB | rgb(138, 54, 196) |
| HSL | hsl(275, 57%, 49%) |
| HSV | hsv(275, 72%, 77%) |
| CMYK | cmyk(29.6%, 72.4%, 0%, 23.1%) |
| CIE-LAB | lab(41.26, 59.08, -58.99) |
| CIE-LCH | lch(41.26, 83.48, 315.04°) |
| OKLab | oklab(52% 0.1286 -0.1674) |
| OKLCH | oklch(52% 0.211 307.5) |
| XYZ | xyz(21.7621, 12.0274, 53.3889) |
| Luminance | 0.1203 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.67
Blueviolet
#8A2BE2
ΔE00 4.14
Darkviolet
#9400D3
ΔE00 4.39
Purply
#983FB2
ΔE00 5.08
Violet (survey)
#9A0EEA
ΔE00 5.43
Vibrant Purple
#AD03DE
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A36C4 #70C436
analogous
#4336C4 #8A36C4 #C436B7
triadic
#8A36C4 #C48A36 #36C48A
tetradic
#8A36C4 #C44336 #70C436 #36B7C4
square
#8A36C4 #C44336 #70C436 #36B7C4
split-complementary
#8A36C4 #B7C436 #36C443
monochromatic
#461C64 #682994 #8A36C4 #A663D4 #C193E1
Accessibility & contrast
On white
6.17
#8A36C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.41
#8A36C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A36C4
6.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A36C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A36C4 | 1.00 | 6.17 | 3.41 | 6.17 |
| #FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EC8
Deuteranopia (green-blind)
#0062C1
Tritanopia (blue-blind)
#80577A
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #8a36c4; /* rgb */ color: rgb(138, 54, 196); /* oklch */ color: oklch(52.0% 0.211 307.5);
Tailwind
colors: {
custom: {
50: '#b175d7',
500: '#8a36c4',
950: '#000000',
},
}SCSS
$custom: #8a36c4; $custom-light: #b175d7; $custom-dark: #000000;
JSON
{
"hex": "#8a36c4",
"rgb": {
"r": 138,
"g": 54,
"b": 196
},
"hsl": {
"h": 275.493,
"s": 56.8,
"l": 49.02
},
"oklch": {
"l": 0.51996,
"c": 0.21111,
"h": 307.5
},
"luminance": 0.12027
}Semantic roles & 50–950 ramp
primary
#8A36C4
secondary
#A5CC89
accent
#E04886
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83