#A642B2#A642B2
#A642B2 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.8% C 0.189 H 323.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #A642B2 |
|---|---|
| RGB | rgb(166, 66, 178) |
| HSL | hsl(294, 46%, 48%) |
| HSV | hsv(294, 63%, 70%) |
| CMYK | cmyk(6.7%, 62.9%, 0%, 30.2%) |
| CIE-LAB | lab(45.93, 56.41, -40.74) |
| CIE-LCH | lch(45.93, 69.58, 324.16°) |
| OKLab | oklab(55.8% 0.1517 -0.1132) |
| OKLCH | oklch(55.8% 0.189 323.3) |
| XYZ | xyz(25.7092, 15.2192, 43.6943) |
| Luminance | 0.1522 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 2.91
Purply
#983FB2
ΔE00 3.19
Ugly Purple
#A442A0
ΔE00 3.35
Barney
#AC1DB8
ΔE00 4.69
Purpley Pink
#C83CB9
ΔE00 6.46
Darkorchid
#9932CC
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A642B2 #4EB242
analogous
#6E42B2 #A642B2 #B24286
triadic
#A642B2 #B2A642 #42B2A6
tetradic
#A642B2 #B26E42 #4EB242 #4286B2
square
#A642B2 #B26E42 #4EB242 #4286B2
split-complementary
#A642B2 #86B242 #42B26E
monochromatic
#532159 #7C3185 #A642B2 #BE6AC8 #D196D8
Accessibility & contrast
On white
5.19
#A642B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#A642B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A642B2
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A642B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A642B2 | 1.00 | 5.19 | 4.04 | 5.19 |
| #FFFFFF | 5.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B65B5
Deuteranopia (green-blind)
#5371AF
Tritanopia (blue-blind)
#A95374
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #a642b2; /* rgb */ color: rgb(166, 66, 178); /* oklch */ color: oklch(55.8% 0.189 323.3);
Tailwind
colors: {
custom: {
50: '#c37dc9',
500: '#a642b2',
950: '#000000',
},
}SCSS
$custom: #a642b2; $custom-light: #c37dc9; $custom-dark: #000000;
JSON
{
"hex": "#a642b2",
"rgb": {
"r": 166,
"g": 66,
"b": 178
},
"hsl": {
"h": 293.571,
"s": 45.902,
"l": 47.843
},
"oklch": {
"l": 0.55804,
"c": 0.18931,
"h": 323.3
},
"luminance": 0.15218
}Semantic roles & 50–950 ramp
primary
#A642B2
secondary
#92C48C
accent
#D65260
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82