#8A45B9#8A45B9
#8A45B9 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.0% C 0.180 H 308.9°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).
Color values
| HEX | #8A45B9 |
|---|---|
| RGB | rgb(138, 69, 185) |
| HSL | hsl(276, 46%, 50%) |
| HSV | hsv(276, 63%, 73%) |
| CMYK | cmyk(25.4%, 62.7%, 0%, 27.5%) |
| CIE-LAB | lab(43.01, 49.67, -49.74) |
| CIE-LCH | lch(43.01, 70.29, 314.96°) |
| OKLab | oklab(53.01% 0.1133 -0.1403) |
| OKLCH | oklch(53.01% 0.18 308.9) |
| XYZ | xyz(21.3646, 13.1627, 47.3047) |
| Luminance | 0.1316 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.43
Darkorchid
#9932CC
ΔE00 4.22
Royal Purple
#7851A9
ΔE00 5.05
Deep Lavender
#8D5EB7
ΔE00 6.75
Blueviolet
#8A2BE2
ΔE00 6.86
Medium Purple
#9E43A2
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A45B9 #74B945
analogous
#5045B9 #8A45B9 #B945AE
triadic
#8A45B9 #B98A45 #45B98A
tetradic
#8A45B9 #B95045 #74B945 #45AEB9
square
#8A45B9 #B95045 #74B945 #45AEB9
split-complementary
#8A45B9 #AEB945 #45B950
monochromatic
#472460 #69348C #8A45B9 #A671CA #C29EDB
Accessibility & contrast
On white
5.78
#8A45B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.63
#8A45B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A45B9
5.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A45B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A45B9 | 1.00 | 5.78 | 3.63 | 5.78 |
| #FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0663BD
Deuteranopia (green-blind)
#3466B6
Tritanopia (blue-blind)
#835C79
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8a45b9; /* rgb */ color: rgb(138, 69, 185); /* oklch */ color: oklch(53.0% 0.180 308.9);
Tailwind
colors: {
custom: {
50: '#b07dcf',
500: '#8a45b9',
950: '#000000',
},
}SCSS
$custom: #8a45b9; $custom-light: #b07dcf; $custom-dark: #000000;
JSON
{
"hex": "#8a45b9",
"rgb": {
"r": 138,
"g": 69,
"b": 185
},
"hsl": {
"h": 275.69,
"s": 45.669,
"l": 49.804
},
"oklch": {
"l": 0.53012,
"c": 0.18037,
"h": 308.9
},
"luminance": 0.13162
}Semantic roles & 50–950 ramp
primary
#8A45B9
secondary
#A8C793
accent
#D55287
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82