#842ABF#842ABF
#842ABF is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.7% C 0.217 H 307.4°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).
Color values
| HEX | #842ABF |
|---|---|
| RGB | rgb(132, 42, 191) |
| HSL | hsl(276, 64%, 46%) |
| HSV | hsv(276, 78%, 75%) |
| CMYK | cmyk(30.9%, 78%, 0%, 25.1%) |
| CIE-LAB | lab(38.42, 61.57, -60.72) |
| CIE-LCH | lch(38.42, 86.48, 315.40°) |
| OKLab | oklab(49.7% 0.1322 -0.1726) |
| OKLCH | oklch(49.7% 0.217 307.4) |
| XYZ | xyz(19.7456, 10.3233, 50.2325) |
| Luminance | 0.1032 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 3.62
Darkorchid
#9932CC
ΔE00 4.63
Blueviolet
#8A2BE2
ΔE00 4.93
Purple (survey)
#7E1E9C
ΔE00 5.83
Violet (survey)
#9A0EEA
ΔE00 6.11
Purply
#983FB2
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#842ABF #65BF2A
analogous
#3A2ABF #842ABF #BF2AAF
triadic
#842ABF #BF842A #2ABF84
tetradic
#842ABF #BF3A2A #65BF2A #2AAFBF
square
#842ABF #BF3A2A #65BF2A #2AAFBF
split-complementary
#842ABF #AFBF2A #2ABF3A
monochromatic
#3F145B #611F8D #842ABF #A14ED8 #BC80E3
Accessibility & contrast
On white
6.85
#842ABF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.06
#842ABF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #842ABF
6.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##842ABF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##842ABF | 1.00 | 6.85 | 3.06 | 6.85 |
| #FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#005BBC
Tritanopia (blue-blind)
#7A5074
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #842abf; /* rgb */ color: rgb(132, 42, 191); /* oklch */ color: oklch(49.7% 0.217 307.4);
Tailwind
colors: {
custom: {
50: '#ad6ed3',
500: '#842abf',
950: '#000000',
},
}SCSS
$custom: #842abf; $custom-light: #ad6ed3; $custom-dark: #000000;
JSON
{
"hex": "#842abf",
"rgb": {
"r": 132,
"g": 42,
"b": 191
},
"hsl": {
"h": 276.242,
"s": 63.948,
"l": 45.686
},
"oklch": {
"l": 0.49701,
"c": 0.21746,
"h": 307.4
},
"luminance": 0.10323
}Semantic roles & 50–950 ramp
primary
#842ABF
secondary
#9ACC79
accent
#E74183
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83