#845FC2#845FC2
#845FC2 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 56.9% C 0.150 H 298.8°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #845FC2 |
|---|---|
| RGB | rgb(132, 95, 194) |
| HSL | hsl(262, 45%, 57%) |
| HSV | hsv(262, 51%, 76%) |
| CMYK | cmyk(32%, 51%, 0%, 23.9%) |
| CIE-LAB | lab(48.24, 36.22, -46.64) |
| CIE-LCH | lch(48.24, 59.05, 307.83°) |
| OKLab | oklab(56.88% 0.0723 -0.1315) |
| OKLCH | oklch(56.88% 0.15 298.8) |
| XYZ | xyz(23.3432, 16.9848, 53.0770) |
| Luminance | 0.1699 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.32
Amethyst
#9B5FC0
ΔE00 5.22
Light Indigo
#6D5ACF
ΔE00 5.64
Purpley
#8756E4
ΔE00 5.65
Royal Purple
#7851A9
ΔE00 5.96
Slate Blue
#6A5ACD
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#845FC2 #9DC25F
analogous
#5F6CC2 #845FC2 #B55FC2
triadic
#845FC2 #C2845F #5FC284
tetradic
#845FC2 #C25F6C #9DC25F #5FC2B5
square
#845FC2 #C25F6C #9DC25F #5FC2B5
split-complementary
#845FC2 #C2B55F #6CC25F
monochromatic
#4A2E79 #653FA5 #845FC2 #A68BD3 #C8B8E4
Accessibility & contrast
On white
4.78
#845FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.40
#845FC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #845FC2
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##845FC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##845FC2 | 1.00 | 4.78 | 4.40 | 4.78 |
| #FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3C73C5
Deuteranopia (green-blind)
#4572C0
Tritanopia (blue-blind)
#777287
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #845fc2; /* rgb */ color: rgb(132, 95, 194); /* oklch */ color: oklch(56.9% 0.150 298.8);
Tailwind
colors: {
custom: {
50: '#ab8dd5',
500: '#845fc2',
950: '#000000',
},
}SCSS
$custom: #845fc2; $custom-light: #ab8dd5; $custom-dark: #000000;
JSON
{
"hex": "#845fc2",
"rgb": {
"r": 132,
"g": 95,
"b": 194
},
"hsl": {
"h": 262.424,
"s": 44.796,
"l": 56.667
},
"oklch": {
"l": 0.56876,
"c": 0.15009,
"h": 298.8
},
"luminance": 0.16985
}Semantic roles & 50–950 ramp
primary
#845FC2
secondary
#C4D3AA
accent
#D453A4
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83