#845AAA#845AAA
#845AAA is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.6% C 0.128 H 306.9°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #845AAA |
|---|---|
| RGB | rgb(132, 90, 170) |
| HSL | hsl(272, 32%, 51%) |
| HSV | hsv(272, 47%, 67%) |
| CMYK | cmyk(22.4%, 47.1%, 0%, 33.3%) |
| CIE-LAB | lab(45.80, 33.12, -36.53) |
| CIE-LCH | lch(45.80, 49.31, 312.20°) |
| OKLab | oklab(54.63% 0.0766 -0.102) |
| OKLCH | oklch(54.63% 0.128 306.9) |
| XYZ | xyz(20.4261, 15.1203, 39.8649) |
| Luminance | 0.1512 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 2.90
Royal Purple
#7851A9
ΔE00 3.80
Amethyst
#9B5FC0
ΔE00 5.75
Dark Lavender
#856798
ΔE00 7.11
Deep Lilac
#966EBD
ΔE00 7.51
Purply
#983FB2
ΔE00 7.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#845AAA #80AA5A
analogous
#5C5AAA #845AAA #AA5AA8
triadic
#845AAA #AA845A #5AAA84
tetradic
#845AAA #AA5C5A #80AA5A #5AA8AA
square
#845AAA #AA5C5A #80AA5A #5AA8AA
split-complementary
#845AAA #A8AA5A #5AAA5C
monochromatic
#462F5B #654483 #845AAA #A282BF #C0ABD4
Accessibility & contrast
On white
5.22
#845AAA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.02
#845AAA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #845AAA
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##845AAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##845AAA | 1.00 | 5.22 | 4.02 | 5.22 |
| #FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#466BAD
Deuteranopia (green-blind)
#506DA8
Tritanopia (blue-blind)
#7E677A
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #845aaa; /* rgb */ color: rgb(132, 90, 170); /* oklch */ color: oklch(54.6% 0.128 306.9);
Tailwind
colors: {
custom: {
50: '#a989c3',
500: '#845aaa',
950: '#000000',
},
}SCSS
$custom: #845aaa; $custom-light: #a989c3; $custom-dark: #000000;
JSON
{
"hex": "#845aaa",
"rgb": {
"r": 132,
"g": 90,
"b": 170
},
"hsl": {
"h": 271.5,
"s": 32,
"l": 50.98
},
"oklch": {
"l": 0.54632,
"c": 0.12755,
"h": 306.9
},
"luminance": 0.1512
}Semantic roles & 50–950 ramp
primary
#845AAA
secondary
#AFC29E
accent
#C86091
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C12
muted
#7F7D81