#AF2D96#AF2D96

#AF2D96 is a mid, vivid pink. Relative luminance 0.132; OKLCH L 53.5% C 0.198 H 337.0°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AF2D96
RGBrgb(175, 45, 150)
HSLhsl(312, 59%, 43%)
HSVhsv(312, 74%, 69%)
CMYKcmyk(0%, 74.3%, 14.3%, 31.4%)
CIE-LABlab(43.06, 62.02, -28.50)
CIE-LCHlch(43.06, 68.25, 335.32°)
OKLaboklab(53.54% 0.1827 -0.0775)
OKLCHoklch(53.54% 0.198 337)
XYZxyz(24.1231, 13.1950, 30.1247)
Luminance0.1319 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D96 #2DAF46
analogous
#872DAF #AF2D96 #AF2D55
triadic
#AF2D96 #96AF2D #2D96AF
tetradic
#AF2D96 #AF872D #2DAF46 #2D55AF
square
#AF2D96 #AF872D #2DAF46 #2D55AF
split-complementary
#AF2D96 #55AF2D #2DAF87
monochromatic
#4E1443 #7E206C #AF2D96 #D049B6 #DD7ACA

Accessibility & contrast

On white

5.77
#AF2D96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF2D96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D96
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D96#FFFFFF#000000##FFFFFF
##AF2D961.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315999
Deuteranopia (green-blind)
#5D6D93
Tritanopia (blue-blind)
#B8355E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2d96;
/* rgb */ color: rgb(175, 45, 150);
/* oklch */ color: oklch(53.5% 0.198 337.0);
Tailwind
colors: {
  custom: {
    50: '#cb73b5',
    500: '#af2d96',
    950: '#000000',
  },
}
SCSS
$custom: #af2d96;
$custom-light: #cb73b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d96",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 311.538,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53538,
    "c": 0.19846,
    "h": 337
  },
  "luminance": 0.13193
}

Semantic roles & 50–950 ramp

primary
#AF2D96
secondary
#73C583
accent
#E26446
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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