#A642AF#A642AF
#A642AF is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.6% C 0.187 H 324.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #A642AF |
|---|---|
| RGB | rgb(166, 66, 175) |
| HSL | hsl(295, 45%, 47%) |
| HSV | hsv(295, 62%, 69%) |
| CMYK | cmyk(5.1%, 62.3%, 0%, 31.4%) |
| CIE-LAB | lab(45.77, 55.85, -39.23) |
| CIE-LCH | lch(45.77, 68.25, 324.92°) |
| OKLab | oklab(55.63% 0.1516 -0.1088) |
| OKLCH | oklch(55.63% 0.187 324.3) |
| XYZ | xyz(25.4113, 15.1000, 42.1252) |
| Luminance | 0.1510 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 2.46
Ugly Purple
#A442A0
ΔE00 2.80
Purply
#983FB2
ΔE00 3.41
Barney
#AC1DB8
ΔE00 4.83
Purpley Pink
#C83CB9
ΔE00 6.41
Darkorchid
#9932CC
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A642AF #4BAF42
analogous
#7042AF #A642AF #AF4281
triadic
#A642AF #AFA642 #42AFA6
tetradic
#A642AF #AF7042 #4BAF42 #4281AF
square
#A642AF #AF7042 #4BAF42 #4281AF
split-complementary
#A642AF #81AF42 #42AF70
monochromatic
#522056 #7C3183 #A642AF #BE68C6 #D195D7
Accessibility & contrast
On white
5.22
#A642AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.02
#A642AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A642AF
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A642AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A642AF | 1.00 | 5.22 | 4.02 | 5.22 |
| #FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E65B2
Deuteranopia (green-blind)
#5471AC
Tritanopia (blue-blind)
#A95272
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #a642af; /* rgb */ color: rgb(166, 66, 175); /* oklch */ color: oklch(55.6% 0.187 324.3);
Tailwind
colors: {
custom: {
50: '#c37dc7',
500: '#a642af',
950: '#000000',
},
}SCSS
$custom: #a642af; $custom-light: #c37dc7; $custom-dark: #000000;
JSON
{
"hex": "#a642af",
"rgb": {
"r": 166,
"g": 66,
"b": 175
},
"hsl": {
"h": 295.046,
"s": 45.228,
"l": 47.255
},
"oklch": {
"l": 0.55634,
"c": 0.18662,
"h": 324.3
},
"luminance": 0.15099
}Semantic roles & 50–950 ramp
primary
#A642AF
secondary
#8FC28A
accent
#D5535E
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82