#AF306F#AF306F
#AF306F is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.1% C 0.172 H 354.5°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).
Color values
| HEX | #AF306F |
|---|---|
| RGB | rgb(175, 48, 111) |
| HSL | hsl(330, 57%, 44%) |
| HSV | hsv(330, 73%, 69%) |
| CMYK | cmyk(0%, 72.6%, 36.6%, 31.4%) |
| CIE-LAB | lab(41.81, 55.97, -6.49) |
| CIE-LCH | lch(41.81, 56.35, 353.38°) |
| OKLab | oklab(52.11% 0.1716 -0.0164) |
| OKLCH | oklch(52.11% 0.172 354.5) |
| XYZ | xyz(21.6067, 12.3781, 16.2872) |
| Luminance | 0.1238 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Magenta (survey)
#C20078
ΔE00 4.11
Mediumvioletred
#C71585
ΔE00 5.59
Deep Magenta
#A0025C
ΔE00 6.36
Violet Red
#A50055
ΔE00 6.58
Deep Pink
#CB0162
ΔE00 6.62
Dark Fuchsia
#9D0759
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF306F #30AF70
analogous
#AF30AE #AF306F #AF3030
triadic
#AF306F #6FAF30 #306FAF
tetradic
#AF306F #AEAF30 #30AF70 #3030AF
square
#AF306F #AEAF30 #30AF70 #3030AF
split-complementary
#AF306F #30AF30 #30AEAF
monochromatic
#4F1632 #7F2351 #AF306F #CE4E8E #DC7EAC
Accessibility & contrast
On white
6.04
#AF306F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.48
#AF306F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF306F
6.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF306F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF306F | 1.00 | 6.04 | 3.48 | 6.04 |
| #FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#475471
Deuteranopia (green-blind)
#6B6B6C
Tritanopia (blue-blind)
#BD244B
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #af306f; /* rgb */ color: rgb(175, 48, 111); /* oklch */ color: oklch(52.1% 0.172 354.5);
Tailwind
colors: {
custom: {
50: '#cb7398',
500: '#af306f',
950: '#000000',
},
}SCSS
$custom: #af306f; $custom-light: #cb7398; $custom-dark: #000000;
JSON
{
"hex": "#af306f",
"rgb": {
"r": 175,
"g": 48,
"b": 111
},
"hsl": {
"h": 330.236,
"s": 56.951,
"l": 43.725
},
"oklch": {
"l": 0.52107,
"c": 0.17237,
"h": 354.5
},
"luminance": 0.12376
}Semantic roles & 50–950 ramp
primary
#AF306F
secondary
#76C49E
accent
#E09548
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090D
muted
#837B7E