#8A45C3#8A45C3
#8A45C3 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.7% C 0.191 H 306.1°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).
Color values
| HEX | #8A45C3 |
|---|---|
| RGB | rgb(138, 69, 195) |
| HSL | hsl(273, 51%, 52%) |
| HSV | hsv(273, 65%, 76%) |
| CMYK | cmyk(29.2%, 64.6%, 0%, 23.5%) |
| CIE-LAB | lab(43.65, 51.98, -54.54) |
| CIE-LCH | lch(43.65, 75.34, 313.63°) |
| OKLab | oklab(53.69% 0.1127 -0.1544) |
| OKLCH | oklch(53.69% 0.191 306.1) |
| XYZ | xyz(22.4576, 13.5999, 53.0611) |
| Luminance | 0.1360 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.68
Purply
#983FB2
ΔE00 4.58
Blueviolet
#8A2BE2
ΔE00 5.62
Royal Purple
#7851A9
ΔE00 5.79
Purpley
#8756E4
ΔE00 6.84
Violet (survey)
#9A0EEA
ΔE00 7.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A45C3 #7EC345
analogous
#4B45C3 #8A45C3 #C345BD
triadic
#8A45C3 #C38A45 #45C38A
tetradic
#8A45C3 #C34B45 #7EC345 #45BDC3
square
#8A45C3 #C34B45 #7EC345 #45BDC3
split-complementary
#8A45C3 #BDC345 #45C34B
monochromatic
#4A236B #6A3199 #8A45C3 #A773D2 #C4A2E1
Accessibility & contrast
On white
5.65
#8A45C3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.72
#8A45C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A45C3
5.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A45C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A45C3 | 1.00 | 5.65 | 3.72 | 5.65 |
| #FFFFFF | 5.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065C7
Deuteranopia (green-blind)
#2768C0
Tritanopia (blue-blind)
#80607E
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #8a45c3; /* rgb */ color: rgb(138, 69, 195); /* oklch */ color: oklch(53.7% 0.191 306.1);
Tailwind
colors: {
custom: {
50: '#b07dd6',
500: '#8a45c3',
950: '#000000',
},
}SCSS
$custom: #8a45c3; $custom-light: #b07dd6; $custom-dark: #000000;
JSON
{
"hex": "#8a45c3",
"rgb": {
"r": 138,
"g": 69,
"b": 195
},
"hsl": {
"h": 272.857,
"s": 51.22,
"l": 51.765
},
"oklch": {
"l": 0.53686,
"c": 0.1912,
"h": 306.1
},
"luminance": 0.136
}Semantic roles & 50–950 ramp
primary
#8A45C3
secondary
#AFCE96
accent
#DB4D8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83