#AF4E9C#AF4E9C
#AF4E9C is a mid, vivid pink. Relative luminance 0.170; OKLCH L 57.4% C 0.158 H 335.6°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #AF4E9C |
|---|---|
| RGB | rgb(175, 78, 156) |
| HSL | hsl(312, 38%, 50%) |
| HSV | hsv(312, 55%, 69%) |
| CMYK | cmyk(0%, 55.4%, 10.9%, 31.4%) |
| CIE-LAB | lab(48.22, 49.46, -24.07) |
| CIE-LCH | lch(48.22, 55.00, 334.05°) |
| OKLab | oklab(57.4% 0.1437 -0.0652) |
| OKLCH | oklch(57.4% 0.158 335.6) |
| XYZ | xyz(26.4045, 16.9650, 33.3299) |
| Luminance | 0.1696 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Ugly Purple
#A442A0
ΔE00 4.64
Purpleish
#98568D
ΔE00 5.26
Medium Purple
#9E43A2
ΔE00 5.82
Purplish
#94568C
ΔE00 5.98
Purpley Pink
#C83CB9
ΔE00 6.30
Light Plum
#9D5783
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF4E9C #4EAF61
analogous
#924EAF #AF4E9C #AF4E6B
triadic
#AF4E9C #9CAF4E #4E9CAF
tetradic
#AF4E9C #AF924E #4EAF61 #4E6BAF
square
#AF4E9C #AF924E #4EAF61 #4E6BAF
split-complementary
#AF4E9C #6BAF4E #4EAF92
monochromatic
#5A2851 #853B76 #AF4E9C #C378B4 #D6A2CB
Accessibility & contrast
On white
4.78
#AF4E9C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.39
#AF4E9C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF4E9C
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF4E9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF4E9C | 1.00 | 4.78 | 4.39 | 4.78 |
| #FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F699F
Deuteranopia (green-blind)
#6B7899
Tritanopia (blue-blind)
#B7536E
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #af4e9c; /* rgb */ color: rgb(175, 78, 156); /* oklch */ color: oklch(57.4% 0.158 335.6);
Tailwind
colors: {
custom: {
50: '#c984b9',
500: '#af4e9c',
950: '#000000',
},
}SCSS
$custom: #af4e9c; $custom-light: #c984b9; $custom-dark: #000000;
JSON
{
"hex": "#af4e9c",
"rgb": {
"r": 175,
"g": 78,
"b": 156
},
"hsl": {
"h": 311.753,
"s": 38.34,
"l": 49.608
},
"oklch": {
"l": 0.57395,
"c": 0.15779,
"h": 335.6
},
"luminance": 0.16963
}Semantic roles & 50–950 ramp
primary
#AF4E9C
secondary
#96C39F
accent
#CE705A
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B11
muted
#827C80