#AF2B97#AF2B97

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

Color values

HEX#AF2B97
RGBrgb(175, 43, 151)
HSLhsl(311, 61%, 43%)
HSVhsv(311, 75%, 69%)
CMYKcmyk(0%, 75.4%, 13.7%, 31.4%)
CIE-LABlab(42.88, 62.80, -29.38)
CIE-LCHlch(42.88, 69.33, 334.93°)
OKLaboklab(53.43% 0.1847 -0.08)
OKLCHoklch(53.43% 0.201 336.6)
XYZxyz(24.1294, 13.0783, 30.5257)
Luminance0.1308 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B97 #2BAF43
analogous
#852BAF #AF2B97 #AF2B55
triadic
#AF2B97 #97AF2B #2B97AF
tetradic
#AF2B97 #AF852B #2BAF43 #2B55AF
square
#AF2B97 #AF852B #2BAF43 #2B55AF
split-complementary
#AF2B97 #55AF2B #2BAF85
monochromatic
#4D1342 #7E1F6D #AF2B97 #D146B8 #DE77CB

Accessibility & contrast

On white

5.81
#AF2B97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2B97
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B97#FFFFFF#000000##FFFFFF
##AF2B971.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2b97;
/* rgb */ color: rgb(175, 43, 151);
/* oklch */ color: oklch(53.4% 0.201 336.6);
Tailwind
colors: {
  custom: {
    50: '#cb72b6',
    500: '#af2b97',
    950: '#000000',
  },
}
SCSS
$custom: #af2b97;
$custom-light: #cb72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b97",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 310.909,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53428,
    "c": 0.20129,
    "h": 336.6
  },
  "luminance": 0.13076
}

Semantic roles & 50–950 ramp

primary
#AF2B97
secondary
#70C580
accent
#E46144
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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