#8A45C2#8A45C2
#8A45C2 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.6% C 0.190 H 306.4°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).
Color values
| HEX | #8A45C2 |
|---|---|
| RGB | rgb(138, 69, 194) |
| HSL | hsl(273, 51%, 52%) |
| HSV | hsv(273, 64%, 76%) |
| CMYK | cmyk(28.9%, 64.4%, 0%, 23.9%) |
| CIE-LAB | lab(43.59, 51.75, -54.06) |
| CIE-LCH | lch(43.59, 74.84, 313.75°) |
| OKLab | oklab(53.62% 0.1128 -0.153) |
| OKLCH | oklch(53.62% 0.19 306.4) |
| XYZ | xyz(22.3449, 13.5548, 52.4677) |
| Luminance | 0.1356 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.70
Purply
#983FB2
ΔE00 4.46
Royal Purple
#7851A9
ΔE00 5.70
Blueviolet
#8A2BE2
ΔE00 5.73
Purpley
#8756E4
ΔE00 6.97
Deep Lavender
#8D5EB7
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A45C2 #7DC245
analogous
#4C45C2 #8A45C2 #C245BC
triadic
#8A45C2 #C28A45 #45C28A
tetradic
#8A45C2 #C24C45 #7DC245 #45BCC2
square
#8A45C2 #C24C45 #7DC245 #45BCC2
split-complementary
#8A45C2 #BCC245 #45C24C
monochromatic
#4A236A #6A3298 #8A45C2 #A773D1 #C4A1E0
Accessibility & contrast
On white
5.66
#8A45C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.71
#8A45C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A45C2
5.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A45C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A45C2 | 1.00 | 5.66 | 3.71 | 5.66 |
| #FFFFFF | 5.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#2867BF
Tritanopia (blue-blind)
#815F7D
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #8a45c2; /* rgb */ color: rgb(138, 69, 194); /* oklch */ color: oklch(53.6% 0.190 306.4);
Tailwind
colors: {
custom: {
50: '#b07dd5',
500: '#8a45c2',
950: '#000000',
},
}SCSS
$custom: #8a45c2; $custom-light: #b07dd5; $custom-dark: #000000;
JSON
{
"hex": "#8a45c2",
"rgb": {
"r": 138,
"g": 69,
"b": 194
},
"hsl": {
"h": 273.12,
"s": 50.607,
"l": 51.569
},
"oklch": {
"l": 0.53617,
"c": 0.19012,
"h": 306.4
},
"luminance": 0.13555
}Semantic roles & 50–950 ramp
primary
#8A45C2
secondary
#AFCD96
accent
#DA4E8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83