#AF2F89#AF2F89

#AF2F89 is a mid, vivid pink. Relative luminance 0.130; OKLCH L 53.1% C 0.188 H 342.4°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AF2F89
RGBrgb(175, 47, 137)
HSLhsl(318, 58%, 44%)
HSVhsv(318, 73%, 69%)
CMYKcmyk(0%, 73.1%, 21.7%, 31.4%)
CIE-LABlab(42.70, 59.53, -21.17)
CIE-LCHlch(42.70, 63.18, 340.42°)
OKLaboklab(53.08% 0.1789 -0.0568)
OKLCHoklch(53.08% 0.188 342.4)
XYZxyz(23.2119, 12.9555, 24.9403)
Luminance0.1295 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F89 #2FAF55
analogous
#952FAF #AF2F89 #AF2F49
triadic
#AF2F89 #89AF2F #2F89AF
tetradic
#AF2F89 #AF952F #2FAF55 #2F49AF
square
#AF2F89 #AF952F #2FAF55 #2F49AF
split-complementary
#AF2F89 #49AF2F #2FAF95
monochromatic
#4F153D #7F2263 #AF2F89 #CF4CA8 #DC7CC0

Accessibility & contrast

On white

5.85
#AF2F89 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AF2F89 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F89
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F89#FFFFFF#000000##FFFFFF
##AF2F891.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B578B
Deuteranopia (green-blind)
#636C86
Tritanopia (blue-blind)
#BA3058
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2f89;
/* rgb */ color: rgb(175, 47, 137);
/* oklch */ color: oklch(53.1% 0.188 342.4);
Tailwind
colors: {
  custom: {
    50: '#cb74ab',
    500: '#af2f89',
    950: '#000000',
  },
}
SCSS
$custom: #af2f89;
$custom-light: #cb74ab;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f89",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 317.813,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53084,
    "c": 0.18764,
    "h": 342.4
  },
  "luminance": 0.12953
}

Semantic roles & 50–950 ramp

primary
#AF2F89
secondary
#75C48D
accent
#E17547
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2F89

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

Preview Lab → · Contrast checker → · Palette generator →

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