#845EFC#845EFC
#845EFC is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.7% C 0.224 H 289.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #845EFC |
|---|---|
| RGB | rgb(132, 94, 252) |
| HSL | hsl(254, 96%, 68%) |
| HSV | hsv(254, 63%, 99%) |
| CMYK | cmyk(47.6%, 62.7%, 0%, 1.2%) |
| CIE-LAB | lab(51.77, 52.39, -73.79) |
| CIE-LCH | lch(51.77, 90.50, 305.37°) |
| OKLab | oklab(60.66% 0.0729 -0.2113) |
| OKLCH | oklch(60.66% 0.224 289) |
| XYZ | xyz(31.0841, 19.9379, 94.2872) |
| Luminance | 0.1994 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 3.40
Purpley
#8756E4
ΔE00 4.20
Lighter Purple
#A55AF4
ΔE00 5.85
Lightish Purple
#A552E6
ΔE00 7.18
Mediumpurple
#9370DB
ΔE00 7.29
Light Indigo
#6D5ACF
ΔE00 7.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#845EFC #D6FC5E
analogous
#5E87FC #845EFC #D35EFC
triadic
#845EFC #FC845E #5EFC84
tetradic
#845EFC #FC5E87 #D6FC5E #5EFCD3
square
#845EFC #FC5E87 #D6FC5E #5EFCD3
split-complementary
#845EFC #FCD35E #87FC5E
monochromatic
#3804DC #5622FB #845EFC #B29AFD #E0D6FE
Accessibility & contrast
On white
4.21
#845EFC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.99
#845EFC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #845EFC
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##845EFC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##845EFC | 1.00 | 4.21 | 4.99 | 4.99 |
| #FFFFFF | 4.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007FFF
Deuteranopia (green-blind)
#0077F9
Tritanopia (blue-blind)
#5C84A5
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #845efc; /* rgb */ color: rgb(132, 94, 252); /* oklch */ color: oklch(60.7% 0.224 289.0);
Tailwind
colors: {
custom: {
50: '#b08dfe',
500: '#845efc',
950: '#000000',
},
}SCSS
$custom: #845efc; $custom-light: #b08dfe; $custom-dark: #000000;
JSON
{
"hex": "#845efc",
"rgb": {
"r": 132,
"g": 94,
"b": 252
},
"hsl": {
"h": 254.43,
"s": 96.341,
"l": 67.843
},
"oklch": {
"l": 0.60657,
"c": 0.22351,
"h": 289
},
"luminance": 0.19939
}Semantic roles & 50–950 ramp
primary
#845EFC
secondary
#E8F3C3
accent
#E600AE
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86