#AF2A58#AF2A58

#AF2A58 is a mid, vivid pink. Relative luminance 0.115; OKLCH L 50.8% C 0.171 H 5.2°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#AF2A58
RGBrgb(175, 42, 88)
HSLhsl(339, 61%, 43%)
HSVhsv(339, 76%, 69%)
CMYKcmyk(0%, 76%, 49.7%, 31.4%)
CIE-LABlab(40.37, 55.74, 5.83)
CIE-LCHlch(40.37, 56.05, 5.98°)
OKLaboklab(50.82% 0.1704 0.0154)
OKLCHoklch(50.82% 0.171 5.2)
XYZxyz(20.2704, 11.4772, 10.3786)
Luminance0.1147 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A58 #2AAF81
analogous
#AF2A9A #AF2A58 #AF3E2A
triadic
#AF2A58 #58AF2A #2A58AF
tetradic
#AF2A58 #9AAF2A #2AAF81 #3E2AAF
square
#AF2A58 #9AAF2A #2AAF81 #3E2AAF
split-complementary
#AF2A58 #2AAF3E #2A9AAF
monochromatic
#4C1226 #7E1E3F #AF2A58 #D24475 #DE759A

Accessibility & contrast

On white

6.37
#AF2A58 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#AF2A58 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A58
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A58#FFFFFF#000000##FFFFFF
##AF2A581.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4E59
Deuteranopia (green-blind)
#6E6955
Tritanopia (blue-blind)
#BF083E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af2a58;
/* rgb */ color: rgb(175, 42, 88);
/* oklch */ color: oklch(50.8% 0.171 5.2);
Tailwind
colors: {
  custom: {
    50: '#cd7086',
    500: '#af2a58',
    950: '#000000',
  },
}
SCSS
$custom: #af2a58;
$custom-light: #cd7086;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a58",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 88
  },
  "hsl": {
    "h": 339.248,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50818,
    "c": 0.1711,
    "h": 5.2
  },
  "luminance": 0.11474
}

Semantic roles & 50–950 ramp

primary
#AF2A58
secondary
#6FC6A8
accent
#E4AD43
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #AF2A58

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AF2A58 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva