#8A45B1#8A45B1
#8A45B1 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.5% C 0.172 H 311.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).
Color values
| HEX | #8A45B1 |
|---|---|
| RGB | rgb(138, 69, 177) |
| HSL | hsl(278, 44%, 48%) |
| HSV | hsv(278, 61%, 69%) |
| CMYK | cmyk(22%, 61%, 0%, 30.6%) |
| CIE-LAB | lab(42.51, 47.86, -45.83) |
| CIE-LCH | lch(42.51, 66.26, 316.24°) |
| OKLab | oklab(52.49% 0.1135 -0.1289) |
| OKLCH | oklch(52.49% 0.172 311.4) |
| XYZ | xyz(20.5437, 12.8343, 42.9815) |
| Luminance | 0.1283 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.83
Royal Purple
#7851A9
ΔE00 4.80
Darkorchid
#9932CC
ΔE00 5.06
Medium Purple
#9E43A2
ΔE00 5.85
Deep Lavender
#8D5EB7
ΔE00 6.77
Barney
#AC1DB8
ΔE00 7.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A45B1 #6CB145
analogous
#5445B1 #8A45B1 #B145A2
triadic
#8A45B1 #B18A45 #45B18A
tetradic
#8A45B1 #B15445 #6CB145 #45A2B1
square
#8A45B1 #B15445 #6CB145 #45A2B1
split-complementary
#8A45B1 #A2B145 #45B154
monochromatic
#452359 #683485 #8A45B1 #A66DC6 #C199D7
Accessibility & contrast
On white
5.89
#8A45B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#8A45B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A45B1
5.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A45B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A45B1 | 1.00 | 5.89 | 3.57 | 5.89 |
| #FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B61B4
Deuteranopia (green-blind)
#3B66AE
Tritanopia (blue-blind)
#855974
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8a45b1; /* rgb */ color: rgb(138, 69, 177); /* oklch */ color: oklch(52.5% 0.172 311.4);
Tailwind
colors: {
custom: {
50: '#af7cc9',
500: '#8a45b1',
950: '#000000',
},
}SCSS
$custom: #8a45b1; $custom-light: #af7cc9; $custom-dark: #000000;
JSON
{
"hex": "#8a45b1",
"rgb": {
"r": 138,
"g": 69,
"b": 177
},
"hsl": {
"h": 278.333,
"s": 43.902,
"l": 48.235
},
"oklch": {
"l": 0.52494,
"c": 0.17172,
"h": 311.4
},
"luminance": 0.12834
}Semantic roles & 50–950 ramp
primary
#8A45B1
secondary
#A2C38E
accent
#D45482
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82