#8A54B2#8A54B2
#8A54B2 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.8% C 0.149 H 308.8°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).
Color values
| HEX | #8A54B2 |
|---|---|
| RGB | rgb(138, 84, 178) |
| HSL | hsl(274, 38%, 51%) |
| HSV | hsv(274, 53%, 70%) |
| CMYK | cmyk(22.5%, 52.8%, 0%, 30.2%) |
| CIE-LAB | lab(45.58, 40.11, -41.53) |
| CIE-LCH | lch(45.58, 57.74, 314.00°) |
| OKLab | oklab(54.76% 0.0936 -0.1164) |
| OKLCH | oklch(54.76% 0.149 308.8) |
| XYZ | xyz(21.6859, 14.9586, 43.8557) |
| Luminance | 0.1496 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.03
Royal Purple
#7851A9
ΔE00 3.91
Amethyst
#9B5FC0
ΔE00 5.07
Purply
#983FB2
ΔE00 5.29
Medium Purple
#9E43A2
ΔE00 6.79
Darkorchid
#9932CC
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A54B2 #7CB254
analogous
#5B54B2 #8A54B2 #B254AB
triadic
#8A54B2 #B28A54 #54B28A
tetradic
#8A54B2 #B25B54 #7CB254 #54ABB2
square
#8A54B2 #B25B54 #7CB254 #54ABB2
split-complementary
#8A54B2 #ABB254 #54B25B
monochromatic
#4A2B60 #6A3E8A #8A54B2 #A77EC5 #C4A8D8
Accessibility & contrast
On white
5.26
#8A54B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.99
#8A54B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A54B2
5.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A54B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A54B2 | 1.00 | 5.26 | 3.99 | 5.26 |
| #FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#396AB5
Deuteranopia (green-blind)
#4A6DB0
Tritanopia (blue-blind)
#85647B
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #8a54b2; /* rgb */ color: rgb(138, 84, 178); /* oklch */ color: oklch(54.8% 0.149 308.8);
Tailwind
colors: {
custom: {
50: '#ae86c9',
500: '#8a54b2',
950: '#000000',
},
}SCSS
$custom: #8a54b2; $custom-light: #ae86c9; $custom-dark: #000000;
JSON
{
"hex": "#8a54b2",
"rgb": {
"r": 138,
"g": 84,
"b": 178
},
"hsl": {
"h": 274.468,
"s": 37.903,
"l": 51.373
},
"oklch": {
"l": 0.5476,
"c": 0.14937,
"h": 308.8
},
"luminance": 0.14958
}Semantic roles & 50–950 ramp
primary
#8A54B2
secondary
#AEC69C
accent
#CE5A8B
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B13
muted
#807C82