#AF2F97#AF2F97

#AF2F97 is a mid, vivid pink. Relative luminance 0.134; OKLCH L 53.8% C 0.197 H 336.7°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AF2F97
RGBrgb(175, 47, 151)
HSLhsl(311, 58%, 44%)
HSVhsv(311, 73%, 69%)
CMYKcmyk(0%, 73.1%, 13.7%, 31.4%)
CIE-LABlab(43.34, 61.51, -28.67)
CIE-LCHlch(43.34, 67.86, 335.01°)
OKLaboklab(53.76% 0.1808 -0.078)
OKLCHoklch(53.76% 0.197 336.7)
XYZxyz(24.2820, 13.3836, 30.5766)
Luminance0.1338 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F97 #2FAF47
analogous
#872FAF #AF2F97 #AF2F57
triadic
#AF2F97 #97AF2F #2F97AF
tetradic
#AF2F97 #AF872F #2FAF47 #2F57AF
square
#AF2F97 #AF872F #2FAF47 #2F57AF
split-complementary
#AF2F97 #57AF2F #2FAF87
monochromatic
#4F1544 #7F226D #AF2F97 #CF4CB6 #DC7CCA

Accessibility & contrast

On white

5.71
#AF2F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AF2F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F97
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F97#FFFFFF#000000##FFFFFF
##AF2F971.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325A9A
Deuteranopia (green-blind)
#5E6D94
Tritanopia (blue-blind)
#B83760
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2f97;
/* rgb */ color: rgb(175, 47, 151);
/* oklch */ color: oklch(53.8% 0.197 336.7);
Tailwind
colors: {
  custom: {
    50: '#cb74b6',
    500: '#af2f97',
    950: '#000000',
  },
}
SCSS
$custom: #af2f97;
$custom-light: #cb74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f97",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 311.25,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53756,
    "c": 0.19695,
    "h": 336.7
  },
  "luminance": 0.13381
}

Semantic roles & 50–950 ramp

primary
#AF2F97
secondary
#75C484
accent
#E16447
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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