#AF2A89#AF2A89

#AF2A89 is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.7% C 0.193 H 342.1°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AF2A89
RGBrgb(175, 42, 137)
HSLhsl(317, 61%, 43%)
HSVhsv(317, 76%, 69%)
CMYKcmyk(0%, 76%, 21.7%, 31.4%)
CIE-LABlab(42.12, 61.16, -22.06)
CIE-LCHlch(42.12, 65.02, 340.17°)
OKLaboklab(52.67% 0.1838 -0.0592)
OKLCHoklch(52.67% 0.193 342.1)
XYZxyz(23.0233, 12.5784, 24.8774)
Luminance0.1258 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A89 #2AAF50
analogous
#932AAF #AF2A89 #AF2A46
triadic
#AF2A89 #89AF2A #2A89AF
tetradic
#AF2A89 #AF932A #2AAF50 #2A46AF
square
#AF2A89 #AF932A #2AAF50 #2A46AF
split-complementary
#AF2A89 #46AF2A #2AAF93
monochromatic
#4C123C #7E1E62 #AF2A89 #D244AA #DE75C0

Accessibility & contrast

On white

5.97
#AF2A89 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AF2A89 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A89
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A89#FFFFFF#000000##FFFFFF
##AF2A891.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37568C
Deuteranopia (green-blind)
#616B86
Tritanopia (blue-blind)
#BA2C56
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2a89;
/* rgb */ color: rgb(175, 42, 137);
/* oklch */ color: oklch(52.7% 0.193 342.1);
Tailwind
colors: {
  custom: {
    50: '#cb71ab',
    500: '#af2a89',
    950: '#000000',
  },
}
SCSS
$custom: #af2a89;
$custom-light: #cb71ab;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a89",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 137
  },
  "hsl": {
    "h": 317.143,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52667,
    "c": 0.19315,
    "h": 342.1
  },
  "luminance": 0.12576
}

Semantic roles & 50–950 ramp

primary
#AF2A89
secondary
#6FC688
accent
#E47143
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2A89

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

Preview Lab → · Contrast checker → · Palette generator →

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