#AF2C97#AF2C97

#AF2C97 is a mid, highly saturated pink. Relative luminance 0.132; OKLCH L 53.5% C 0.200 H 336.6°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AF2C97
RGBrgb(175, 44, 151)
HSLhsl(311, 60%, 43%)
HSVhsv(311, 75%, 69%)
CMYKcmyk(0%, 74.9%, 13.7%, 31.4%)
CIE-LABlab(42.99, 62.48, -29.21)
CIE-LCHlch(42.99, 68.97, 334.95°)
OKLaboklab(53.51% 0.1838 -0.0795)
OKLCHoklch(53.51% 0.2 336.6)
XYZxyz(24.1662, 13.1519, 30.5380)
Luminance0.1315 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C97 #2CAF44
analogous
#852CAF #AF2C97 #AF2C56
triadic
#AF2C97 #97AF2C #2C97AF
tetradic
#AF2C97 #AF852C #2CAF44 #2C56AF
square
#AF2C97 #AF852C #2CAF44 #2C56AF
split-complementary
#AF2C97 #56AF2C #2CAF85
monochromatic
#4D1343 #7E206D #AF2C97 #D147B8 #DD78CB

Accessibility & contrast

On white

5.79
#AF2C97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF2C97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C97
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C97#FFFFFF#000000##FFFFFF
##AF2C971.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F599A
Deuteranopia (green-blind)
#5D6D94
Tritanopia (blue-blind)
#B8355F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2c97;
/* rgb */ color: rgb(175, 44, 151);
/* oklch */ color: oklch(53.5% 0.200 336.6);
Tailwind
colors: {
  custom: {
    50: '#cb73b6',
    500: '#af2c97',
    950: '#000000',
  },
}
SCSS
$custom: #af2c97;
$custom-light: #cb73b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c97",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 310.992,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53507,
    "c": 0.20023,
    "h": 336.6
  },
  "luminance": 0.1315
}

Semantic roles & 50–950 ramp

primary
#AF2C97
secondary
#72C581
accent
#E36245
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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