#AF47B2#AF47B2
#AF47B2 is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.6% C 0.187 H 326.5°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #AF47B2 |
|---|---|
| RGB | rgb(175, 71, 178) |
| HSL | hsl(298, 43%, 49%) |
| HSV | hsv(298, 60%, 70%) |
| CMYK | cmyk(1.7%, 60.1%, 0%, 30.2%) |
| CIE-LAB | lab(48.05, 56.47, -37.30) |
| CIE-LCH | lch(48.05, 67.68, 326.56°) |
| OKLab | oklab(57.61% 0.156 -0.1031) |
| OKLCH | oklch(57.61% 0.187 326.5) |
| XYZ | xyz(27.9678, 16.8365, 43.8875) |
| Luminance | 0.1683 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.76
Medium Purple
#9E43A2
ΔE00 4.16
Purpley Pink
#C83CB9
ΔE00 4.38
Purply
#983FB2
ΔE00 5.65
Pinky Purple
#C94CBE
ΔE00 5.72
Barney
#AC1DB8
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF47B2 #4AB247
analogous
#7A47B2 #AF47B2 #B24780
triadic
#AF47B2 #B2AF47 #47B2AF
tetradic
#AF47B2 #B27A47 #4AB247 #4780B2
square
#AF47B2 #B27A47 #4AB247 #4780B2
split-complementary
#AF47B2 #80B247 #47B27A
monochromatic
#59245B #843686 #AF47B2 #C470C6 #D69CD7
Accessibility & contrast
On white
4.81
#AF47B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.37
#AF47B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF47B2
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF47B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF47B2 | 1.00 | 4.81 | 4.37 | 4.81 |
| #FFFFFF | 4.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#396AB5
Deuteranopia (green-blind)
#5D77AF
Tritanopia (blue-blind)
#B45576
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #af47b2; /* rgb */ color: rgb(175, 71, 178); /* oklch */ color: oklch(57.6% 0.187 326.5);
Tailwind
colors: {
custom: {
50: '#ca81c9',
500: '#af47b2',
950: '#000000',
},
}SCSS
$custom: #af47b2; $custom-light: #ca81c9; $custom-dark: #000000;
JSON
{
"hex": "#af47b2",
"rgb": {
"r": 175,
"g": 71,
"b": 178
},
"hsl": {
"h": 298.318,
"s": 42.972,
"l": 48.824
},
"oklch": {
"l": 0.57612,
"c": 0.18697,
"h": 326.5
},
"luminance": 0.16835
}Semantic roles & 50–950 ramp
primary
#AF47B2
secondary
#92C491
accent
#D35559
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82