#8A45B3#8A45B3
#8A45B3 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.6% C 0.174 H 310.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).
Color values
| HEX | #8A45B3 |
|---|---|
| RGB | rgb(138, 69, 179) |
| HSL | hsl(278, 44%, 49%) |
| HSV | hsv(278, 61%, 70%) |
| CMYK | cmyk(22.9%, 61.5%, 0%, 29.8%) |
| CIE-LAB | lab(42.63, 48.31, -46.81) |
| CIE-LCH | lch(42.63, 67.27, 315.90°) |
| OKLab | oklab(52.62% 0.1134 -0.1318) |
| OKLCH | oklch(52.62% 0.174 310.7) |
| XYZ | xyz(20.7445, 12.9146, 44.0391) |
| Luminance | 0.1291 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.94
Darkorchid
#9932CC
ΔE00 4.82
Royal Purple
#7851A9
ΔE00 4.82
Medium Purple
#9E43A2
ΔE00 6.10
Deep Lavender
#8D5EB7
ΔE00 6.74
Barney
#AC1DB8
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A45B3 #6EB345
analogous
#5345B3 #8A45B3 #B345A5
triadic
#8A45B3 #B38A45 #45B38A
tetradic
#8A45B3 #B35345 #6EB345 #45A5B3
square
#8A45B3 #B35345 #6EB345 #45A5B3
split-complementary
#8A45B3 #A5B345 #45B353
monochromatic
#46235B #683487 #8A45B3 #A66EC7 #C19AD8
Accessibility & contrast
On white
5.86
#8A45B3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.58
#8A45B3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A45B3
5.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A45B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A45B3 | 1.00 | 5.86 | 3.58 | 5.86 |
| #FFFFFF | 5.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1861B6
Deuteranopia (green-blind)
#3A66B0
Tritanopia (blue-blind)
#855A75
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #8a45b3; /* rgb */ color: rgb(138, 69, 179); /* oklch */ color: oklch(52.6% 0.174 310.7);
Tailwind
colors: {
custom: {
50: '#af7cca',
500: '#8a45b3',
950: '#000000',
},
}SCSS
$custom: #8a45b3; $custom-light: #af7cca; $custom-dark: #000000;
JSON
{
"hex": "#8a45b3",
"rgb": {
"r": 138,
"g": 69,
"b": 179
},
"hsl": {
"h": 277.636,
"s": 44.355,
"l": 48.627
},
"oklch": {
"l": 0.52622,
"c": 0.17388,
"h": 310.7
},
"luminance": 0.12914
}Semantic roles & 50–950 ramp
primary
#8A45B3
secondary
#A3C48F
accent
#D45484
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82