#8A5CBF#8A5CBF
#8A5CBF is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.8% C 0.152 H 303.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5CBF |
|---|---|
| RGB | rgb(138, 92, 191) |
| HSL | hsl(268, 44%, 55%) |
| HSV | hsv(268, 52%, 75%) |
| CMYK | cmyk(27.7%, 51.8%, 0%, 25.1%) |
| CIE-LAB | lab(48.03, 38.76, -45.20) |
| CIE-LCH | lch(48.03, 59.54, 310.61°) |
| OKLab | oklab(56.81% 0.0837 -0.1272) |
| OKLCH | oklch(56.81% 0.152 303.4) |
| XYZ | xyz(23.7103, 16.8192, 51.2774) |
| Luminance | 0.1682 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.99
Amethyst
#9B5FC0
ΔE00 3.88
Royal Purple
#7851A9
ΔE00 5.59
Purpley
#8756E4
ΔE00 6.15
Deep Lilac
#966EBD
ΔE00 6.37
Light Indigo
#6D5ACF
ΔE00 7.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5CBF #91BF5C
analogous
#5C5FBF #8A5CBF #BB5CBF
triadic
#8A5CBF #BF8A5C #5CBF8A
tetradic
#8A5CBF #BF5C5F #91BF5C #5CBFBB
square
#8A5CBF #BF5C5F #91BF5C #5CBFBB
split-complementary
#8A5CBF #BFBB5C #5FBF5C
monochromatic
#4E2D73 #6B3F9F #8A5CBF #AA88D0 #C9B4E2
Accessibility & contrast
On white
4.81
#8A5CBF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.36
#8A5CBF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5CBF
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5CBF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5CBF | 1.00 | 4.81 | 4.36 | 4.81 |
| #FFFFFF | 4.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3C71C2
Deuteranopia (green-blind)
#4972BD
Tritanopia (blue-blind)
#816E85
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #8a5cbf; /* rgb */ color: rgb(138, 92, 191); /* oklch */ color: oklch(56.8% 0.152 303.4);
Tailwind
colors: {
custom: {
50: '#af8bd3',
500: '#8a5cbf',
950: '#000000',
},
}SCSS
$custom: #8a5cbf; $custom-light: #af8bd3; $custom-dark: #000000;
JSON
{
"hex": "#8a5cbf",
"rgb": {
"r": 138,
"g": 92,
"b": 191
},
"hsl": {
"h": 267.879,
"s": 43.612,
"l": 55.49
},
"oklch": {
"l": 0.56811,
"c": 0.15224,
"h": 303.4
},
"luminance": 0.16819
}Semantic roles & 50–950 ramp
primary
#8A5CBF
secondary
#BDD0A7
accent
#D35498
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83