#AF2C96#AF2C96

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

Color values

HEX#AF2C96
RGBrgb(175, 44, 150)
HSLhsl(311, 60%, 43%)
HSVhsv(311, 75%, 69%)
CMYKcmyk(0%, 74.9%, 14.3%, 31.4%)
CIE-LABlab(42.94, 62.34, -28.68)
CIE-LCHlch(42.94, 68.62, 335.30°)
OKLaboklab(53.46% 0.1837 -0.078)
OKLCHoklch(53.46% 0.2 337)
XYZxyz(24.0854, 13.1196, 30.1121)
Luminance0.1312 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C96 #2CAF45
analogous
#862CAF #AF2C96 #AF2C55
triadic
#AF2C96 #96AF2C #2C96AF
tetradic
#AF2C96 #AF862C #2CAF45 #2C55AF
square
#AF2C96 #AF862C #2CAF45 #2C55AF
split-complementary
#AF2C96 #55AF2C #2CAF86
monochromatic
#4D1342 #7E206C #AF2C96 #D147B7 #DD78CA

Accessibility & contrast

On white

5.80
#AF2C96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AF2C96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C96
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C96#FFFFFF#000000##FFFFFF
##AF2C961.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305999
Deuteranopia (green-blind)
#5D6D93
Tritanopia (blue-blind)
#B8345E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2c96;
/* rgb */ color: rgb(175, 44, 150);
/* oklch */ color: oklch(53.5% 0.200 337.0);
Tailwind
colors: {
  custom: {
    50: '#cb73b5',
    500: '#af2c96',
    950: '#000000',
  },
}
SCSS
$custom: #af2c96;
$custom-light: #cb73b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c96",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 150
  },
  "hsl": {
    "h": 311.45,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53457,
    "c": 0.19954,
    "h": 337
  },
  "luminance": 0.13117
}

Semantic roles & 50–950 ramp

primary
#AF2C96
secondary
#72C582
accent
#E36345
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2C96

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

Preview Lab → · Contrast checker → · Palette generator →

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