#AF42D6#AF42D6
#AF42D6 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.2% C 0.226 H 315.7°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #AF42D6 |
|---|---|
| RGB | rgb(175, 66, 214) |
| HSL | hsl(284, 64%, 55%) |
| HSV | hsv(284, 69%, 84%) |
| CMYK | cmyk(18.2%, 69.2%, 0%, 16.1%) |
| CIE-LAB | lab(49.33, 65.36, -56.09) |
| CIE-LCH | lch(49.33, 86.13, 319.37°) |
| OKLab | oklab(59.19% 0.1616 -0.1578) |
| OKLCH | oklch(59.19% 0.226 315.7) |
| XYZ | xyz(31.7631, 17.8666, 65.3807) |
| Luminance | 0.1787 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Lightish Purple
#A552E6
ΔE00 4.32
Mediumorchid
#BA55D3
ΔE00 5.00
Hot Purple
#CB00F5
ΔE00 5.48
Neon Purple
#BC13FE
ΔE00 5.62
Bright Purple
#BE03FD
ΔE00 5.70
Darkorchid
#9932CC
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF42D6 #69D642
analogous
#6542D6 #AF42D6 #D642B3
triadic
#AF42D6 #D6AF42 #42D6AF
tetradic
#AF42D6 #D66542 #69D642 #42B3D6
square
#AF42D6 #D66542 #69D642 #42B3D6
split-complementary
#AF42D6 #B3D642 #42D665
monochromatic
#671C82 #8F27B4 #AF42D6 #C474E1 #DAA7EC
Accessibility & contrast
On white
4.59
#AF42D6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.57
#AF42D6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #AF42D6
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF42D6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF42D6 | 1.00 | 4.59 | 4.57 | 4.59 |
| #FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006FDA
Deuteranopia (green-blind)
#4078D3
Tritanopia (blue-blind)
#AC6087
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #af42d6; /* rgb */ color: rgb(175, 66, 214); /* oklch */ color: oklch(59.2% 0.226 315.7);
Tailwind
colors: {
custom: {
50: '#cb7fe3',
500: '#af42d6',
950: '#000000',
},
}SCSS
$custom: #af42d6; $custom-light: #cb7fe3; $custom-dark: #000000;
JSON
{
"hex": "#af42d6",
"rgb": {
"r": 175,
"g": 66,
"b": 214
},
"hsl": {
"h": 284.189,
"s": 64.348,
"l": 54.902
},
"oklch": {
"l": 0.59192,
"c": 0.22583,
"h": 315.7
},
"luminance": 0.17865
}Semantic roles & 50–950 ramp
primary
#AF42D6
secondary
#ABD99B
accent
#E7406C
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B15
muted
#827C84