#8A4CBD#8A4CBD
#8A4CBD is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.2% C 0.175 H 306.8°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4CBD |
|---|---|
| RGB | rgb(138, 76, 189) |
| HSL | hsl(273, 46%, 52%) |
| HSV | hsv(273, 60%, 74%) |
| CMYK | cmyk(27%, 59.8%, 0%, 25.9%) |
| CIE-LAB | lab(44.58, 47.01, -49.55) |
| CIE-LCH | lch(44.58, 68.30, 313.49°) |
| OKLab | oklab(54.24% 0.1046 -0.1398) |
| OKLCH | oklch(54.24% 0.175 306.8) |
| XYZ | xyz(22.2491, 14.2465, 49.7120) |
| Luminance | 0.1425 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 4.47
Royal Purple
#7851A9
ΔE00 4.64
Darkorchid
#9932CC
ΔE00 5.13
Deep Lavender
#8D5EB7
ΔE00 5.25
Amethyst
#9B5FC0
ΔE00 6.55
Purpley
#8756E4
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4CBD #7FBD4C
analogous
#524CBD #8A4CBD #BD4CB8
triadic
#8A4CBD #BD8A4C #4CBD8A
tetradic
#8A4CBD #BD524C #7FBD4C #4CB8BD
square
#8A4CBD #BD524C #7FBD4C #4CB8BD
split-complementary
#8A4CBD #B8BD4C #4CBD52
monochromatic
#4B2668 #6A3795 #8A4CBD #A779CD #C4A5DE
Accessibility & contrast
On white
5.46
#8A4CBD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.85
#8A4CBD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4CBD
5.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4CBD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4CBD | 1.00 | 5.46 | 3.85 | 5.46 |
| #FFFFFF | 5.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A67C1
Deuteranopia (green-blind)
#386ABA
Tritanopia (blue-blind)
#82627D
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #8a4cbd; /* rgb */ color: rgb(138, 76, 189); /* oklch */ color: oklch(54.2% 0.175 306.8);
Tailwind
colors: {
custom: {
50: '#af81d1',
500: '#8a4cbd',
950: '#000000',
},
}SCSS
$custom: #8a4cbd; $custom-light: #af81d1; $custom-dark: #000000;
JSON
{
"hex": "#8a4cbd",
"rgb": {
"r": 138,
"g": 76,
"b": 189
},
"hsl": {
"h": 272.92,
"s": 46.122,
"l": 51.961
},
"oklch": {
"l": 0.54238,
"c": 0.17459,
"h": 306.8
},
"luminance": 0.14246
}Semantic roles & 50–950 ramp
primary
#8A4CBD
secondary
#B0CB9A
accent
#D6528D
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A14
muted
#807C82