#AF2B99#AF2B99

#AF2B99 is a mid, highly saturated pink. Relative luminance 0.131; OKLCH L 53.5% C 0.203 H 335.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AF2B99
RGBrgb(175, 43, 153)
HSLhsl(310, 61%, 43%)
HSVhsv(310, 75%, 69%)
CMYKcmyk(0%, 75.4%, 12.6%, 31.4%)
CIE-LABlab(42.98, 63.09, -30.43)
CIE-LCHlch(42.98, 70.05, 334.25°)
OKLaboklab(53.53% 0.1849 -0.083)
OKLCHoklch(53.53% 0.203 335.8)
XYZxyz(24.2932, 13.1438, 31.3884)
Luminance0.1314 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B99 #2BAF41
analogous
#832BAF #AF2B99 #AF2B57
triadic
#AF2B99 #99AF2B #2B99AF
tetradic
#AF2B99 #AF832B #2BAF41 #2B57AF
square
#AF2B99 #AF832B #2BAF41 #2B57AF
split-complementary
#AF2B99 #57AF2B #2BAF83
monochromatic
#4D1343 #7E1F6E #AF2B99 #D146BA #DE77CC

Accessibility & contrast

On white

5.79
#AF2B99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF2B99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B99
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B99#FFFFFF#000000##FFFFFF
##AF2B991.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C599C
Deuteranopia (green-blind)
#5B6C96
Tritanopia (blue-blind)
#B8355F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2b99;
/* rgb */ color: rgb(175, 43, 153);
/* oklch */ color: oklch(53.5% 0.203 335.8);
Tailwind
colors: {
  custom: {
    50: '#cb72b7',
    500: '#af2b99',
    950: '#000000',
  },
}
SCSS
$custom: #af2b99;
$custom-light: #cb72b7;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b99",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 310,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.5353,
    "c": 0.20267,
    "h": 335.8
  },
  "luminance": 0.13142
}

Semantic roles & 50–950 ramp

primary
#AF2B99
secondary
#70C57F
accent
#E45F44
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2B99

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

Preview Lab → · Contrast checker → · Palette generator →

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