#8A45C5#8A45C5
#8A45C5 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.8% C 0.193 H 305.6°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).
Color values
| HEX | #8A45C5 |
|---|---|
| RGB | rgb(138, 69, 197) |
| HSL | hsl(272, 52%, 52%) |
| HSV | hsv(272, 65%, 77%) |
| CMYK | cmyk(29.9%, 65%, 0%, 22.7%) |
| CIE-LAB | lab(43.79, 52.45, -55.48) |
| CIE-LCH | lch(43.79, 76.35, 313.39°) |
| OKLab | oklab(53.82% 0.1126 -0.1572) |
| OKLCH | oklch(53.82% 0.193 305.6) |
| XYZ | xyz(22.6852, 13.6909, 54.2600) |
| Luminance | 0.1369 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.65
Purply
#983FB2
ΔE00 4.83
Blueviolet
#8A2BE2
ΔE00 5.41
Royal Purple
#7851A9
ΔE00 5.97
Purpley
#8756E4
ΔE00 6.58
Violet (survey)
#9A0EEA
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A45C5 #80C545
analogous
#4A45C5 #8A45C5 #C545C0
triadic
#8A45C5 #C58A45 #45C58A
tetradic
#8A45C5 #C54A45 #80C545 #45C0C5
square
#8A45C5 #C54A45 #80C545 #45C0C5
split-complementary
#8A45C5 #C0C545 #45C54A
monochromatic
#4B226D #6B319C #8A45C5 #A774D4 #C5A2E2
Accessibility & contrast
On white
5.62
#8A45C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.74
#8A45C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A45C5
5.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A45C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A45C5 | 1.00 | 5.62 | 3.74 | 5.62 |
| #FFFFFF | 5.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065C9
Deuteranopia (green-blind)
#2468C2
Tritanopia (blue-blind)
#80607F
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #8a45c5; /* rgb */ color: rgb(138, 69, 197); /* oklch */ color: oklch(53.8% 0.193 305.6);
Tailwind
colors: {
custom: {
50: '#b07dd7',
500: '#8a45c5',
950: '#000000',
},
}SCSS
$custom: #8a45c5; $custom-light: #b07dd7; $custom-dark: #000000;
JSON
{
"hex": "#8a45c5",
"rgb": {
"r": 138,
"g": 69,
"b": 197
},
"hsl": {
"h": 272.344,
"s": 52.459,
"l": 52.157
},
"oklch": {
"l": 0.53824,
"c": 0.19338,
"h": 305.6
},
"luminance": 0.13691
}Semantic roles & 50–950 ramp
primary
#8A45C5
secondary
#B1CF97
accent
#DC4C8E
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83