#845FCA#845FCA
#845FCA is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.4% C 0.160 H 297.0°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).
Color values
| HEX | #845FCA |
|---|---|
| RGB | rgb(132, 95, 202) |
| HSL | hsl(261, 50%, 58%) |
| HSV | hsv(261, 53%, 79%) |
| CMYK | cmyk(34.7%, 53%, 0%, 20.8%) |
| CIE-LAB | lab(48.70, 38.30, -50.51) |
| CIE-LCH | lch(48.70, 63.39, 307.17°) |
| OKLab | oklab(57.37% 0.0729 -0.1429) |
| OKLCH | oklch(57.37% 0.16 297) |
| XYZ | xyz(24.2659, 17.3539, 57.9368) |
| Luminance | 0.1735 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.42
Deep Lavender
#8D5EB7
ΔE00 4.48
Light Indigo
#6D5ACF
ΔE00 4.96
Slate Blue
#6A5ACD
ΔE00 5.44
Amethyst
#9B5FC0
ΔE00 5.79
Mediumpurple
#9370DB
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#845FCA #A5CA5F
analogous
#5F6FCA #845FCA #BA5FCA
triadic
#845FCA #CA845F #5FCA84
tetradic
#845FCA #CA5F6F #A5CA5F #5FCABA
square
#845FCA #CA5F6F #A5CA5F #5FCABA
split-complementary
#845FCA #CABA5F #6FCA5F
monochromatic
#4A2B83 #643BB1 #845FCA #A78DD9 #CBBBE8
Accessibility & contrast
On white
4.70
#845FCA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.47
#845FCA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #845FCA
4.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##845FCA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##845FCA | 1.00 | 4.70 | 4.47 | 4.70 |
| #FFFFFF | 4.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3474CE
Deuteranopia (green-blind)
#3E72C8
Tritanopia (blue-blind)
#74748B
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #845fca; /* rgb */ color: rgb(132, 95, 202); /* oklch */ color: oklch(57.4% 0.160 297.0);
Tailwind
colors: {
custom: {
50: '#ab8ddb',
500: '#845fca',
950: '#000000',
},
}SCSS
$custom: #845fca; $custom-light: #ab8ddb; $custom-dark: #000000;
JSON
{
"hex": "#845fca",
"rgb": {
"r": 132,
"g": 95,
"b": 202
},
"hsl": {
"h": 260.748,
"s": 50.235,
"l": 58.235
},
"oklch": {
"l": 0.57368,
"c": 0.16036,
"h": 297
},
"luminance": 0.17354
}Semantic roles & 50–950 ramp
primary
#845FCA
secondary
#C9D8AD
accent
#DA4EA9
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83