#AF2D99#AF2D99

#AF2D99 is a mid, highly saturated pink. Relative luminance 0.133; OKLCH L 53.7% C 0.201 H 335.8°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AF2D99
RGBrgb(175, 45, 153)
HSLhsl(310, 59%, 43%)
HSVhsv(310, 74%, 69%)
CMYKcmyk(0%, 74.3%, 12.6%, 31.4%)
CIE-LABlab(43.20, 62.46, -30.08)
CIE-LCHlch(43.20, 69.33, 334.28°)
OKLaboklab(53.69% 0.183 -0.0821)
OKLCHoklch(53.69% 0.201 335.8)
XYZxyz(24.3677, 13.2928, 31.4132)
Luminance0.1329 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D99 #2DAF43
analogous
#842DAF #AF2D99 #AF2D58
triadic
#AF2D99 #99AF2D #2D99AF
tetradic
#AF2D99 #AF842D #2DAF43 #2D58AF
square
#AF2D99 #AF842D #2DAF43 #2D58AF
split-complementary
#AF2D99 #58AF2D #2DAF84
monochromatic
#4E1444 #7E206E #AF2D99 #D049B9 #DD7ACC

Accessibility & contrast

On white

5.74
#AF2D99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AF2D99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D99
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D99#FFFFFF#000000##FFFFFF
##AF2D991.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5A9C
Deuteranopia (green-blind)
#5C6D96
Tritanopia (blue-blind)
#B83760
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2d99;
/* rgb */ color: rgb(175, 45, 153);
/* oklch */ color: oklch(53.7% 0.201 335.8);
Tailwind
colors: {
  custom: {
    50: '#cb73b7',
    500: '#af2d99',
    950: '#000000',
  },
}
SCSS
$custom: #af2d99;
$custom-light: #cb73b7;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d99",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 310.154,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.5369,
    "c": 0.20055,
    "h": 335.8
  },
  "luminance": 0.13291
}

Semantic roles & 50–950 ramp

primary
#AF2D99
secondary
#73C581
accent
#E26046
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2D99

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

Preview Lab → · Contrast checker → · Palette generator →

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