#8A45B2#8A45B2
#8A45B2 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.6% C 0.173 H 311.0°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).
Color values
| HEX | #8A45B2 |
|---|---|
| RGB | rgb(138, 69, 178) |
| HSL | hsl(278, 44%, 48%) |
| HSV | hsv(278, 61%, 70%) |
| CMYK | cmyk(22.5%, 61.2%, 0%, 30.2%) |
| CIE-LAB | lab(42.57, 48.08, -46.32) |
| CIE-LCH | lch(42.57, 66.77, 316.07°) |
| OKLab | oklab(52.56% 0.1135 -0.1303) |
| OKLCH | oklch(52.56% 0.173 311) |
| XYZ | xyz(20.6437, 12.8743, 43.5084) |
| Luminance | 0.1287 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.88
Royal Purple
#7851A9
ΔE00 4.81
Darkorchid
#9932CC
ΔE00 4.94
Medium Purple
#9E43A2
ΔE00 5.98
Deep Lavender
#8D5EB7
ΔE00 6.75
Barney
#AC1DB8
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A45B2 #6DB245
analogous
#5345B2 #8A45B2 #B245A3
triadic
#8A45B2 #B28A45 #45B28A
tetradic
#8A45B2 #B25345 #6DB245 #45A3B2
square
#8A45B2 #B25345 #6DB245 #45A3B2
split-complementary
#8A45B2 #A3B245 #45B253
monochromatic
#46235A #683486 #8A45B2 #A66EC7 #C19AD8
Accessibility & contrast
On white
5.87
#8A45B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#8A45B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A45B2
5.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A45B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A45B2 | 1.00 | 5.87 | 3.57 | 5.87 |
| #FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A61B5
Deuteranopia (green-blind)
#3B66AF
Tritanopia (blue-blind)
#855A75
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8a45b2; /* rgb */ color: rgb(138, 69, 178); /* oklch */ color: oklch(52.6% 0.173 311.0);
Tailwind
colors: {
custom: {
50: '#af7cca',
500: '#8a45b2',
950: '#000000',
},
}SCSS
$custom: #8a45b2; $custom-light: #af7cca; $custom-dark: #000000;
JSON
{
"hex": "#8a45b2",
"rgb": {
"r": 138,
"g": 69,
"b": 178
},
"hsl": {
"h": 277.982,
"s": 44.13,
"l": 48.431
},
"oklch": {
"l": 0.52558,
"c": 0.1728,
"h": 311
},
"luminance": 0.12874
}Semantic roles & 50–950 ramp
primary
#8A45B2
secondary
#A2C48F
accent
#D45483
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82