#AF318C#AF318C
#AF318C is a mid, vivid pink. Relative luminance 0.132; OKLCH L 53.4% C 0.187 H 341.2°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).
Color values
| HEX | #AF318C |
|---|---|
| RGB | rgb(175, 49, 140) |
| HSL | hsl(317, 56%, 44%) |
| HSV | hsv(317, 72%, 69%) |
| CMYK | cmyk(0%, 72%, 20%, 31.4%) |
| CIE-LAB | lab(43.07, 59.25, -22.42) |
| CIE-LCH | lch(43.07, 63.35, 339.28°) |
| OKLab | oklab(53.4% 0.1773 -0.0603) |
| OKLCH | oklch(53.4% 0.187 341.2) |
| XYZ | xyz(23.5118, 13.2064, 26.1167) |
| Luminance | 0.1320 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 4.99
Ugly Purple
#A442A0
ΔE00 5.35
Magenta (survey)
#C20078
ΔE00 6.17
Warm Purple
#952E8F
ΔE00 6.23
Medium Purple
#9E43A2
ΔE00 6.50
Barney Purple
#A00498
ΔE00 7.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF318C #31AF54
analogous
#9331AF #AF318C #AF314D
triadic
#AF318C #8CAF31 #318CAF
tetradic
#AF318C #AF9331 #31AF54 #314DAF
square
#AF318C #AF9331 #31AF54 #314DAF
split-complementary
#AF318C #4DAF31 #31AF93
monochromatic
#4F1640 #7F2466 #AF318C #CE4FAB #DB7FC2
Accessibility & contrast
On white
5.77
#AF318C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.64
#AF318C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF318C
5.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF318C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF318C | 1.00 | 5.77 | 3.64 | 5.77 |
| #FFFFFF | 5.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3B598F
Deuteranopia (green-blind)
#636D89
Tritanopia (blue-blind)
#BA335A
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #af318c; /* rgb */ color: rgb(175, 49, 140); /* oklch */ color: oklch(53.4% 0.187 341.2);
Tailwind
colors: {
custom: {
50: '#cb75ae',
500: '#af318c',
950: '#000000',
},
}SCSS
$custom: #af318c; $custom-light: #cb75ae; $custom-dark: #000000;
JSON
{
"hex": "#af318c",
"rgb": {
"r": 175,
"g": 49,
"b": 140
},
"hsl": {
"h": 316.667,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.534,
"c": 0.18722,
"h": 341.2
},
"luminance": 0.13204
}Semantic roles & 50–950 ramp
primary
#AF318C
secondary
#78C48D
accent
#E07248
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F