#AF298C#AF298C
#AF298C is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.7% C 0.196 H 340.9°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #AF298C |
|---|---|
| RGB | rgb(175, 41, 140) |
| HSL | hsl(316, 62%, 42%) |
| HSV | hsv(316, 77%, 69%) |
| CMYK | cmyk(0%, 76.6%, 20%, 31.4%) |
| CIE-LAB | lab(42.15, 61.87, -23.85) |
| CIE-LCH | lch(42.15, 66.31, 338.92°) |
| OKLab | oklab(52.73% 0.1852 -0.0643) |
| OKLCH | oklch(52.73% 0.196 340.9) |
| XYZ | xyz(23.2065, 12.5956, 26.0149) |
| Luminance | 0.1259 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 5.21
Ugly Purple
#A442A0
ΔE00 5.65
Warm Purple
#952E8F
ΔE00 5.67
Magenta (survey)
#C20078
ΔE00 6.17
Barney Purple
#A00498
ΔE00 6.57
Medium Purple
#9E43A2
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF298C #29AF4C
analogous
#8F29AF #AF298C #AF2949
triadic
#AF298C #8CAF29 #298CAF
tetradic
#AF298C #AF8F29 #29AF4C #2949AF
square
#AF298C #AF8F29 #29AF4C #2949AF
split-complementary
#AF298C #49AF29 #29AF8F
monochromatic
#4C123D #7D1D64 #AF298C #D342AD #DE74C3
Accessibility & contrast
On white
5.97
#AF298C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#AF298C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF298C
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF298C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF298C | 1.00 | 5.97 | 3.52 | 5.97 |
| #FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#34568F
Deuteranopia (green-blind)
#606B89
Tritanopia (blue-blind)
#BA2D58
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #af298c; /* rgb */ color: rgb(175, 41, 140); /* oklch */ color: oklch(52.7% 0.196 340.9);
Tailwind
colors: {
custom: {
50: '#cb71ae',
500: '#af298c',
950: '#000000',
},
}SCSS
$custom: #af298c; $custom-light: #cb71ae; $custom-dark: #000000;
JSON
{
"hex": "#af298c",
"rgb": {
"r": 175,
"g": 41,
"b": 140
},
"hsl": {
"h": 315.672,
"s": 62.037,
"l": 42.353
},
"oklch": {
"l": 0.5273,
"c": 0.19608,
"h": 340.9
},
"luminance": 0.12593
}Semantic roles & 50–950 ramp
primary
#AF298C
secondary
#6EC685
accent
#E56D43
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F