#8A45B5#8A45B5
#8A45B5 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.8% C 0.176 H 310.1°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).
Color values
| HEX | #8A45B5 |
|---|---|
| RGB | rgb(138, 69, 181) |
| HSL | hsl(277, 45%, 49%) |
| HSV | hsv(277, 62%, 71%) |
| CMYK | cmyk(23.8%, 61.9%, 0%, 29%) |
| CIE-LAB | lab(42.76, 48.76, -47.79) |
| CIE-LCH | lch(42.76, 68.28, 315.57°) |
| OKLab | oklab(52.75% 0.1134 -0.1346) |
| OKLCH | oklch(52.75% 0.176 310.1) |
| XYZ | xyz(20.9482, 12.9961, 45.1121) |
| Luminance | 0.1300 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.08
Darkorchid
#9932CC
ΔE00 4.60
Royal Purple
#7851A9
ΔE00 4.88
Medium Purple
#9E43A2
ΔE00 6.36
Deep Lavender
#8D5EB7
ΔE00 6.73
Barney
#AC1DB8
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A45B5 #70B545
analogous
#5245B5 #8A45B5 #B545A8
triadic
#8A45B5 #B58A45 #45B58A
tetradic
#8A45B5 #B55245 #70B545 #45A8B5
square
#8A45B5 #B55245 #70B545 #45A8B5
split-complementary
#8A45B5 #A8B545 #45B552
monochromatic
#46235C #683489 #8A45B5 #A66FC8 #C19BD9
Accessibility & contrast
On white
5.83
#8A45B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#8A45B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A45B5
5.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A45B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A45B5 | 1.00 | 5.83 | 3.60 | 5.83 |
| #FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1362B9
Deuteranopia (green-blind)
#3866B2
Tritanopia (blue-blind)
#845B76
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8a45b5; /* rgb */ color: rgb(138, 69, 181); /* oklch */ color: oklch(52.8% 0.176 310.1);
Tailwind
colors: {
custom: {
50: '#af7dcc',
500: '#8a45b5',
950: '#000000',
},
}SCSS
$custom: #8a45b5; $custom-light: #af7dcc; $custom-dark: #000000;
JSON
{
"hex": "#8a45b5",
"rgb": {
"r": 138,
"g": 69,
"b": 181
},
"hsl": {
"h": 276.964,
"s": 44.8,
"l": 49.02
},
"oklch": {
"l": 0.52751,
"c": 0.17604,
"h": 310.1
},
"luminance": 0.12996
}Semantic roles & 50–950 ramp
primary
#8A45B5
secondary
#A5C591
accent
#D55385
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82