#845FBE#845FBE
#845FBE is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.6% C 0.145 H 299.8°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #845FBE |
|---|---|
| RGB | rgb(132, 95, 190) |
| HSL | hsl(263, 42%, 56%) |
| HSV | hsv(263, 50%, 75%) |
| CMYK | cmyk(30.5%, 50%, 0%, 25.5%) |
| CIE-LAB | lab(48.02, 35.19, -44.69) |
| CIE-LCH | lch(48.02, 56.88, 308.22°) |
| OKLab | oklab(56.64% 0.0719 -0.1258) |
| OKLCH | oklch(56.64% 0.145 299.8) |
| XYZ | xyz(22.9000, 16.8075, 50.7429) |
| Luminance | 0.1681 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 2.78
Amethyst
#9B5FC0
ΔE00 5.03
Royal Purple
#7851A9
ΔE00 5.55
Light Indigo
#6D5ACF
ΔE00 6.11
Purpley
#8756E4
ΔE00 6.31
Deep Lilac
#966EBD
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#845FBE #99BE5F
analogous
#5F69BE #845FBE #B35FBE
triadic
#845FBE #BE845F #5FBE84
tetradic
#845FBE #BE5F69 #99BE5F #5FBEB3
square
#845FBE #BE5F69 #99BE5F #5FBEB3
split-complementary
#845FBE #BEB35F #69BE5F
monochromatic
#4A2F74 #65419F #845FBE #A58BD0 #C7B6E1
Accessibility & contrast
On white
4.81
#845FBE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.36
#845FBE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #845FBE
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##845FBE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##845FBE | 1.00 | 4.81 | 4.36 | 4.81 |
| #FFFFFF | 4.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3F72C1
Deuteranopia (green-blind)
#4971BC
Tritanopia (blue-blind)
#787186
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #845fbe; /* rgb */ color: rgb(132, 95, 190); /* oklch */ color: oklch(56.6% 0.145 299.8);
Tailwind
colors: {
custom: {
50: '#aa8dd2',
500: '#845fbe',
950: '#000000',
},
}SCSS
$custom: #845fbe; $custom-light: #aa8dd2; $custom-dark: #000000;
JSON
{
"hex": "#845fbe",
"rgb": {
"r": 132,
"g": 95,
"b": 190
},
"hsl": {
"h": 263.368,
"s": 42.222,
"l": 55.882
},
"oklch": {
"l": 0.56636,
"c": 0.14493,
"h": 299.8
},
"luminance": 0.16808
}Semantic roles & 50–950 ramp
primary
#845FBE
secondary
#C1D0A9
accent
#D256A2
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82