#AF2F8E#AF2F8E
#AF2F8E is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.3% C 0.191 H 340.3°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2F8E |
|---|---|
| RGB | rgb(175, 47, 142) |
| HSL | hsl(315, 58%, 44%) |
| HSV | hsv(315, 73%, 69%) |
| CMYK | cmyk(0%, 73.1%, 18.9%, 31.4%) |
| CIE-LAB | lab(42.92, 60.22, -23.87) |
| CIE-LCH | lch(42.92, 64.78, 338.37°) |
| OKLab | oklab(53.32% 0.1797 -0.0644) |
| OKLCH | oklch(53.32% 0.191 340.3) |
| XYZ | xyz(23.5789, 13.1023, 26.8732) |
| Luminance | 0.1310 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Ugly Purple
#A442A0
ΔE00 5.06
Mediumvioletred
#C71585
ΔE00 5.27
Warm Purple
#952E8F
ΔE00 5.85
Medium Purple
#9E43A2
ΔE00 6.19
Magenta (survey)
#C20078
ΔE00 6.49
Barney Purple
#A00498
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2F8E #2FAF50
analogous
#902FAF #AF2F8E #AF2F4E
triadic
#AF2F8E #8EAF2F #2F8EAF
tetradic
#AF2F8E #AF902F #2FAF50 #2F4EAF
square
#AF2F8E #AF902F #2FAF50 #2F4EAF
split-complementary
#AF2F8E #4EAF2F #2FAF90
monochromatic
#4F1540 #7F2267 #AF2F8E #CF4CAD #DC7CC3
Accessibility & contrast
On white
5.80
#AF2F8E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.62
#AF2F8E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2F8E
5.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2F8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2F8E | 1.00 | 5.80 | 3.62 | 5.80 |
| #FFFFFF | 5.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#385891
Deuteranopia (green-blind)
#616D8B
Tritanopia (blue-blind)
#B9335B
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #af2f8e; /* rgb */ color: rgb(175, 47, 142); /* oklch */ color: oklch(53.3% 0.191 340.3);
Tailwind
colors: {
custom: {
50: '#cb74af',
500: '#af2f8e',
950: '#000000',
},
}SCSS
$custom: #af2f8e; $custom-light: #cb74af; $custom-dark: #000000;
JSON
{
"hex": "#af2f8e",
"rgb": {
"r": 175,
"g": 47,
"b": 142
},
"hsl": {
"h": 315.469,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.53316,
"c": 0.19086,
"h": 340.3
},
"luminance": 0.131
}Semantic roles & 50–950 ramp
primary
#AF2F8E
secondary
#75C48A
accent
#E16F47
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F