#842CA9#842CA9
#842CA9 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.195 H 313.7°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).
Color values
| HEX | #842CA9 |
|---|---|
| RGB | rgb(132, 44, 169) |
| HSL | hsl(282, 59%, 42%) |
| HSV | hsv(282, 74%, 66%) |
| CMYK | cmyk(21.9%, 74%, 0%, 33.7%) |
| CIE-LAB | lab(37.06, 56.14, -49.88) |
| CIE-LCH | lch(37.06, 75.10, 318.38°) |
| OKLab | oklab(48.24% 0.1346 -0.1408) |
| OKLCH | oklch(48.24% 0.195 313.7) |
| XYZ | xyz(17.5766, 9.5720, 38.4501) |
| Luminance | 0.0957 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.15
Rebeccapurple
#663399
ΔE00 5.72
Purply
#983FB2
ΔE00 5.87
Darkviolet
#9400D3
ΔE00 6.19
Darkorchid
#9932CC
ΔE00 6.34
Darkmagenta
#8B008B
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#842CA9 #51A92C
analogous
#462CA9 #842CA9 #A92C90
triadic
#842CA9 #A9842C #2CA984
tetradic
#842CA9 #A9462C #51A92C #2C90A9
square
#842CA9 #A9462C #51A92C #2C90A9
split-complementary
#842CA9 #90A92C #2CA946
monochromatic
#381348 #5E1F78 #842CA9 #A544CE #BD74DB
Accessibility & contrast
On white
7.21
#842CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#842CA9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #842CA9
7.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##842CA9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##842CA9 | 1.00 | 7.21 | 2.91 | 7.21 |
| #FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#2259A6
Tritanopia (blue-blind)
#804868
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #842ca9; /* rgb */ color: rgb(132, 44, 169); /* oklch */ color: oklch(48.2% 0.195 313.7);
Tailwind
colors: {
custom: {
50: '#ac6ec3',
500: '#842ca9',
950: '#000000',
},
}SCSS
$custom: #842ca9; $custom-light: #ac6ec3; $custom-dark: #000000;
JSON
{
"hex": "#842ca9",
"rgb": {
"r": 132,
"g": 44,
"b": 169
},
"hsl": {
"h": 282.24,
"s": 58.685,
"l": 41.765
},
"oklch": {
"l": 0.48239,
"c": 0.19476,
"h": 313.7
},
"luminance": 0.09571
}Semantic roles & 50–950 ramp
primary
#842CA9
secondary
#87C36E
accent
#E24674
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82