#845BF2#845BF2
#845BF2 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.5% C 0.215 H 290.9°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #845BF2 |
|---|---|
| RGB | rgb(132, 91, 242) |
| HSL | hsl(256, 85%, 65%) |
| HSV | hsv(256, 62%, 95%) |
| CMYK | cmyk(45.5%, 62.4%, 0%, 5.1%) |
| CIE-LAB | lab(50.45, 51.26, -70.36) |
| CIE-LCH | lch(50.45, 87.05, 306.08°) |
| OKLab | oklab(59.48% 0.0768 -0.2012) |
| OKLCH | oklch(59.48% 0.215 290.9) |
| XYZ | xyz(29.2793, 18.7975, 86.0728) |
| Luminance | 0.1880 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.57
Mediumslateblue
#7B68EE
ΔE00 3.88
Lighter Purple
#A55AF4
ΔE00 5.77
Light Indigo
#6D5ACF
ΔE00 6.31
Lightish Purple
#A552E6
ΔE00 6.43
Slate Blue
#6A5ACD
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#845BF2 #C9F25B
analogous
#5B7EF2 #845BF2 #CF5BF2
triadic
#845BF2 #F2845B #5BF284
tetradic
#845BF2 #F25B7E #C9F25B #5BF2CF
square
#845BF2 #F25B7E #C9F25B #5BF2CF
split-complementary
#845BF2 #F2CF5B #7EF25B
monochromatic
#400FC3 #5922EE #845BF2 #AF94F6 #D9CCFB
Accessibility & contrast
On white
4.41
#845BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.76
#845BF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #845BF2
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##845BF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##845BF2 | 1.00 | 4.41 | 4.76 | 4.76 |
| #FFFFFF | 4.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#0075EF
Tritanopia (blue-blind)
#627E9E
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #845bf2; /* rgb */ color: rgb(132, 91, 242); /* oklch */ color: oklch(59.5% 0.215 290.9);
Tailwind
colors: {
custom: {
50: '#af8bf7',
500: '#845bf2',
950: '#000000',
},
}SCSS
$custom: #845bf2; $custom-light: #af8bf7; $custom-dark: #000000;
JSON
{
"hex": "#845bf2",
"rgb": {
"r": 132,
"g": 91,
"b": 242
},
"hsl": {
"h": 256.291,
"s": 85.311,
"l": 65.294
},
"oklch": {
"l": 0.59476,
"c": 0.21534,
"h": 290.9
},
"luminance": 0.18799
}Semantic roles & 50–950 ramp
primary
#845BF2
secondary
#E0EEBB
accent
#E204A5
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85