#AF2B96#AF2B96

#AF2B96 is a mid, highly saturated pink. Relative luminance 0.130; OKLCH L 53.4% C 0.201 H 337.0°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AF2B96
RGBrgb(175, 43, 150)
HSLhsl(311, 61%, 43%)
HSVhsv(311, 75%, 69%)
CMYKcmyk(0%, 75.4%, 14.3%, 31.4%)
CIE-LABlab(42.83, 62.65, -28.85)
CIE-LCHlch(42.83, 68.98, 335.27°)
OKLaboklab(53.38% 0.1846 -0.0785)
OKLCHoklch(53.38% 0.201 337)
XYZxyz(24.0485, 13.0460, 30.0998)
Luminance0.1304 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B96 #2BAF44
analogous
#862BAF #AF2B96 #AF2B54
triadic
#AF2B96 #96AF2B #2B96AF
tetradic
#AF2B96 #AF862B #2BAF44 #2B54AF
square
#AF2B96 #AF862B #2BAF44 #2B54AF
split-complementary
#AF2B96 #54AF2B #2BAF86
monochromatic
#4D1342 #7E1F6C #AF2B96 #D146B7 #DE77CA

Accessibility & contrast

On white

5.82
#AF2B96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AF2B96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B96
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B96#FFFFFF#000000##FFFFFF
##AF2B961.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5899
Deuteranopia (green-blind)
#5D6C93
Tritanopia (blue-blind)
#B8345E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2b96;
/* rgb */ color: rgb(175, 43, 150);
/* oklch */ color: oklch(53.4% 0.201 337.0);
Tailwind
colors: {
  custom: {
    50: '#cb72b5',
    500: '#af2b96',
    950: '#000000',
  },
}
SCSS
$custom: #af2b96;
$custom-light: #cb72b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b96",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 150
  },
  "hsl": {
    "h": 311.364,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53377,
    "c": 0.2006,
    "h": 337
  },
  "luminance": 0.13044
}

Semantic roles & 50–950 ramp

primary
#AF2B96
secondary
#70C581
accent
#E46244
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2B96

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

Preview Lab → · Contrast checker → · Palette generator →

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