#AF46B2#AF46B2
#AF46B2 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.5% C 0.188 H 326.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).
Color values
| HEX | #AF46B2 |
|---|---|
| RGB | rgb(175, 70, 178) |
| HSL | hsl(298, 44%, 49%) |
| HSV | hsv(298, 61%, 70%) |
| CMYK | cmyk(1.7%, 60.7%, 0%, 30.2%) |
| CIE-LAB | lab(47.89, 56.91, -37.55) |
| CIE-LCH | lch(47.89, 68.19, 326.58°) |
| OKLab | oklab(57.5% 0.1572 -0.1038) |
| OKLCH | oklch(57.5% 0.188 326.6) |
| XYZ | xyz(27.9047, 16.7103, 43.8665) |
| Luminance | 0.1671 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.68
Medium Purple
#9E43A2
ΔE00 4.06
Purpley Pink
#C83CB9
ΔE00 4.41
Purply
#983FB2
ΔE00 5.52
Pinky Purple
#C94CBE
ΔE00 5.84
Barney
#AC1DB8
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF46B2 #49B246
analogous
#7946B2 #AF46B2 #B2467F
triadic
#AF46B2 #B2AF46 #46B2AF
tetradic
#AF46B2 #B27946 #49B246 #467FB2
square
#AF46B2 #B27946 #49B246 #467FB2
split-complementary
#AF46B2 #7FB246 #46B279
monochromatic
#59235A #843586 #AF46B2 #C46FC6 #D69BD8
Accessibility & contrast
On white
4.84
#AF46B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.34
#AF46B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF46B2
4.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF46B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF46B2 | 1.00 | 4.84 | 4.34 | 4.84 |
| #FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3769B5
Deuteranopia (green-blind)
#5D76AF
Tritanopia (blue-blind)
#B45476
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #af46b2; /* rgb */ color: rgb(175, 70, 178); /* oklch */ color: oklch(57.5% 0.188 326.6);
Tailwind
colors: {
custom: {
50: '#ca80c9',
500: '#af46b2',
950: '#000000',
},
}SCSS
$custom: #af46b2; $custom-light: #ca80c9; $custom-dark: #000000;
JSON
{
"hex": "#af46b2",
"rgb": {
"r": 175,
"g": 70,
"b": 178
},
"hsl": {
"h": 298.333,
"s": 43.548,
"l": 48.627
},
"oklch": {
"l": 0.57495,
"c": 0.1884,
"h": 326.6
},
"luminance": 0.16709
}Semantic roles & 50–950 ramp
primary
#AF46B2
secondary
#91C490
accent
#D35558
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82