#AF2D97#AF2D97

#AF2D97 is a mid, vivid pink. Relative luminance 0.132; OKLCH L 53.6% C 0.199 H 336.6°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#AF2D97
RGBrgb(175, 45, 151)
HSLhsl(311, 59%, 43%)
HSVhsv(311, 74%, 69%)
CMYKcmyk(0%, 74.3%, 13.7%, 31.4%)
CIE-LABlab(43.10, 62.16, -29.03)
CIE-LCHlch(43.10, 68.61, 334.97°)
OKLaboklab(53.59% 0.1828 -0.079)
OKLCHoklch(53.59% 0.199 336.6)
XYZxyz(24.2039, 13.2273, 30.5506)
Luminance0.1323 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D97 #2DAF45
analogous
#862DAF #AF2D97 #AF2D56
triadic
#AF2D97 #97AF2D #2D97AF
tetradic
#AF2D97 #AF862D #2DAF45 #2D56AF
square
#AF2D97 #AF862D #2DAF45 #2D56AF
split-complementary
#AF2D97 #56AF2D #2DAF86
monochromatic
#4E1443 #7E206D #AF2D97 #D049B7 #DD7ACA

Accessibility & contrast

On white

5.76
#AF2D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AF2D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D97
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D97#FFFFFF#000000##FFFFFF
##AF2D971.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30599A
Deuteranopia (green-blind)
#5D6D94
Tritanopia (blue-blind)
#B8365F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2d97;
/* rgb */ color: rgb(175, 45, 151);
/* oklch */ color: oklch(53.6% 0.199 336.6);
Tailwind
colors: {
  custom: {
    50: '#cb73b6',
    500: '#af2d97',
    950: '#000000',
  },
}
SCSS
$custom: #af2d97;
$custom-light: #cb73b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d97",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 311.077,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53588,
    "c": 0.19915,
    "h": 336.6
  },
  "luminance": 0.13225
}

Semantic roles & 50–950 ramp

primary
#AF2D97
secondary
#73C582
accent
#E26246
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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