#842FC2#842FC2
#842FC2 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.4% C 0.215 H 306.2°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).
Color values
| HEX | #842FC2 |
|---|---|
| RGB | rgb(132, 47, 194) |
| HSL | hsl(275, 61%, 47%) |
| HSV | hsv(275, 76%, 76%) |
| CMYK | cmyk(32%, 75.8%, 0%, 23.9%) |
| CIE-LAB | lab(39.30, 60.36, -61.04) |
| CIE-LCH | lch(39.30, 85.84, 314.68°) |
| OKLab | oklab(50.39% 0.1273 -0.1736) |
| OKLCH | oklch(50.39% 0.215 306.2) |
| XYZ | xyz(20.2677, 10.8338, 52.0519) |
| Luminance | 0.1083 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 3.81
Darkorchid
#9932CC
ΔE00 4.13
Blueviolet
#8A2BE2
ΔE00 4.33
Violet (survey)
#9A0EEA
ΔE00 5.76
Purply
#983FB2
ΔE00 6.40
Burple
#6832E3
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#842FC2 #6DC22F
analogous
#3B2FC2 #842FC2 #C22FB7
triadic
#842FC2 #C2842F #2FC284
tetradic
#842FC2 #C23B2F #6DC22F #2FB7C2
square
#842FC2 #C23B2F #6DC22F #2FB7C2
split-complementary
#842FC2 #B7C22F #2FC23B
monochromatic
#41175F #622391 #842FC2 #A158D6 #BD89E2
Accessibility & contrast
On white
6.63
#842FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.17
#842FC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #842FC2
6.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##842FC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##842FC2 | 1.00 | 6.63 | 3.17 | 6.63 |
| #FFFFFF | 6.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#005DBF
Tritanopia (blue-blind)
#795477
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #842fc2; /* rgb */ color: rgb(132, 47, 194); /* oklch */ color: oklch(50.4% 0.215 306.2);
Tailwind
colors: {
custom: {
50: '#ad71d5',
500: '#842fc2',
950: '#000000',
},
}SCSS
$custom: #842fc2; $custom-light: #ad71d5; $custom-dark: #000000;
JSON
{
"hex": "#842fc2",
"rgb": {
"r": 132,
"g": 47,
"b": 194
},
"hsl": {
"h": 274.694,
"s": 60.996,
"l": 47.255
},
"oklch": {
"l": 0.50392,
"c": 0.2153,
"h": 306.2
},
"luminance": 0.10834
}Semantic roles & 50–950 ramp
primary
#842FC2
secondary
#A0CC81
accent
#E44487
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83