#842FC3#842FC3
#842FC3 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.5% C 0.216 H 306.0°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).
Color values
| HEX | #842FC3 |
|---|---|
| RGB | rgb(132, 47, 195) |
| HSL | hsl(274, 61%, 47%) |
| HSV | hsv(274, 76%, 76%) |
| CMYK | cmyk(32.3%, 75.9%, 0%, 23.5%) |
| CIE-LAB | lab(39.38, 60.58, -61.50) |
| CIE-LCH | lch(39.38, 86.33, 314.57°) |
| OKLab | oklab(50.47% 0.1271 -0.175) |
| OKLCH | oklch(50.47% 0.216 306) |
| XYZ | xyz(20.3804, 10.8789, 52.6453) |
| Luminance | 0.1088 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 3.76
Darkorchid
#9932CC
ΔE00 4.10
Blueviolet
#8A2BE2
ΔE00 4.19
Violet (survey)
#9A0EEA
ΔE00 5.65
Burple
#6832E3
ΔE00 6.36
Purply
#983FB2
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#842FC3 #6EC32F
analogous
#3A2FC3 #842FC3 #C32FB8
triadic
#842FC3 #C3842F #2FC384
tetradic
#842FC3 #C33A2F #6EC32F #2FB8C3
square
#842FC3 #C33A2F #6EC32F #2FB8C3
split-complementary
#842FC3 #B8C32F #2FC33A
monochromatic
#411760 #632392 #842FC3 #A158D7 #BD8AE3
Accessibility & contrast
On white
6.61
#842FC3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.18
#842FC3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #842FC3
6.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##842FC3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##842FC3 | 1.00 | 6.61 | 3.18 | 6.61 |
| #FFFFFF | 6.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#795478
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #842fc3; /* rgb */ color: rgb(132, 47, 195); /* oklch */ color: oklch(50.5% 0.216 306.0);
Tailwind
colors: {
custom: {
50: '#ad71d6',
500: '#842fc3',
950: '#000000',
},
}SCSS
$custom: #842fc3; $custom-light: #ad71d6; $custom-dark: #000000;
JSON
{
"hex": "#842fc3",
"rgb": {
"r": 132,
"g": 47,
"b": 195
},
"hsl": {
"h": 274.459,
"s": 61.157,
"l": 47.451
},
"oklch": {
"l": 0.5047,
"c": 0.21626,
"h": 306
},
"luminance": 0.10879
}Semantic roles & 50–950 ramp
primary
#842FC3
secondary
#A1CD81
accent
#E44488
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83