#AF2F96#AF2F96

#AF2F96 is a mid, vivid pink. Relative luminance 0.133; OKLCH L 53.7% C 0.196 H 337.1°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AF2F96
RGBrgb(175, 47, 150)
HSLhsl(312, 58%, 44%)
HSVhsv(312, 73%, 69%)
CMYKcmyk(0%, 73.1%, 14.3%, 31.4%)
CIE-LABlab(43.29, 61.36, -28.14)
CIE-LCHlch(43.29, 67.50, 335.36°)
OKLaboklab(53.71% 0.1807 -0.0765)
OKLCHoklch(53.71% 0.196 337.1)
XYZxyz(24.2012, 13.3512, 30.1507)
Luminance0.1335 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F96 #2FAF48
analogous
#882FAF #AF2F96 #AF2F56
triadic
#AF2F96 #96AF2F #2F96AF
tetradic
#AF2F96 #AF882F #2FAF48 #2F56AF
square
#AF2F96 #AF882F #2FAF48 #2F56AF
split-complementary
#AF2F96 #56AF2F #2FAF88
monochromatic
#4F1543 #7F226D #AF2F96 #CF4CB5 #DC7CC9

Accessibility & contrast

On white

5.72
#AF2F96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AF2F96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F96
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F96#FFFFFF#000000##FFFFFF
##AF2F961.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335A99
Deuteranopia (green-blind)
#5E6D93
Tritanopia (blue-blind)
#B8375F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2f96;
/* rgb */ color: rgb(175, 47, 150);
/* oklch */ color: oklch(53.7% 0.196 337.1);
Tailwind
colors: {
  custom: {
    50: '#cb74b5',
    500: '#af2f96',
    950: '#000000',
  },
}
SCSS
$custom: #af2f96;
$custom-light: #cb74b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f96",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 311.719,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53706,
    "c": 0.19625,
    "h": 337.1
  },
  "luminance": 0.13349
}

Semantic roles & 50–950 ramp

primary
#AF2F96
secondary
#75C485
accent
#E16547
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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