#AF4E9B#AF4E9B
#AF4E9B is a mid, vivid pink. Relative luminance 0.169; OKLCH L 57.4% C 0.157 H 336.1°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #AF4E9B |
|---|---|
| RGB | rgb(175, 78, 155) |
| HSL | hsl(312, 38%, 50%) |
| HSV | hsv(312, 55%, 69%) |
| CMYK | cmyk(0%, 55.4%, 11.4%, 31.4%) |
| CIE-LAB | lab(48.17, 49.29, -23.54) |
| CIE-LCH | lch(48.17, 54.63, 334.47°) |
| OKLab | oklab(57.35% 0.1435 -0.0637) |
| OKLCH | oklch(57.35% 0.157 336.1) |
| XYZ | xyz(26.3202, 16.9312, 32.8858) |
| Luminance | 0.1693 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Ugly Purple
#A442A0
ΔE00 4.76
Purpleish
#98568D
ΔE00 5.18
Purplish
#94568C
ΔE00 5.91
Medium Purple
#9E43A2
ΔE00 5.95
Purpley Pink
#C83CB9
ΔE00 6.45
Light Plum
#9D5783
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF4E9B #4EAF62
analogous
#934EAF #AF4E9B #AF4E6B
triadic
#AF4E9B #9BAF4E #4E9BAF
tetradic
#AF4E9B #AF934E #4EAF62 #4E6BAF
square
#AF4E9B #AF934E #4EAF62 #4E6BAF
split-complementary
#AF4E9B #6BAF4E #4EAF93
monochromatic
#5A2850 #853B76 #AF4E9B #C378B3 #D6A2CB
Accessibility & contrast
On white
4.79
#AF4E9B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.39
#AF4E9B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF4E9B
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF4E9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF4E9B | 1.00 | 4.79 | 4.39 | 4.79 |
| #FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F699D
Deuteranopia (green-blind)
#6B7898
Tritanopia (blue-blind)
#B7536D
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #af4e9b; /* rgb */ color: rgb(175, 78, 155); /* oklch */ color: oklch(57.4% 0.157 336.1);
Tailwind
colors: {
custom: {
50: '#c984b8',
500: '#af4e9b',
950: '#000000',
},
}SCSS
$custom: #af4e9b; $custom-light: #c984b8; $custom-dark: #000000;
JSON
{
"hex": "#af4e9b",
"rgb": {
"r": 175,
"g": 78,
"b": 155
},
"hsl": {
"h": 312.371,
"s": 38.34,
"l": 49.608
},
"oklch": {
"l": 0.5735,
"c": 0.157,
"h": 336.1
},
"luminance": 0.16929
}Semantic roles & 50–950 ramp
primary
#AF4E9B
secondary
#96C39F
accent
#CE725A
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B11
muted
#827C80