#AF4A97#AF4A97

#AF4A97 is a mid, vivid pink. Relative luminance 0.162; OKLCH L 56.6% C 0.160 H 337.7°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AF4A97
RGBrgb(175, 74, 151)
HSLhsl(314, 41%, 49%)
HSVhsv(314, 58%, 69%)
CMYKcmyk(0%, 57.7%, 13.7%, 31.4%)
CIE-LABlab(47.30, 50.54, -22.51)
CIE-LCHlch(47.30, 55.33, 335.99°)
OKLaboklab(56.65% 0.1483 -0.0608)
OKLCHoklch(56.65% 0.16 337.7)
XYZxyz(25.7142, 16.2479, 31.0540)
Luminance0.1625 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4A97 #4AAF62
analogous
#954AAF #AF4A97 #AF4A65
triadic
#AF4A97 #97AF4A #4A97AF
tetradic
#AF4A97 #AF954A #4AAF62 #4A65AF
square
#AF4A97 #AF954A #4AAF62 #4A65AF
split-complementary
#AF4A97 #65AF4A #4AAF95
monochromatic
#59264D #843872 #AF4A97 #C473B0 #D69EC8

Accessibility & contrast

On white

4.94
#AF4A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AF4A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4A97
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4A97#FFFFFF#000000##FFFFFF
##AF4A971.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6699
Deuteranopia (green-blind)
#6B7694
Tritanopia (blue-blind)
#B84E6A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af4a97;
/* rgb */ color: rgb(175, 74, 151);
/* oklch */ color: oklch(56.6% 0.160 337.7);
Tailwind
colors: {
  custom: {
    50: '#c982b5',
    500: '#af4a97',
    950: '#000000',
  },
}
SCSS
$custom: #af4a97;
$custom-light: #c982b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4a97",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 151
  },
  "hsl": {
    "h": 314.257,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56648,
    "c": 0.16024,
    "h": 337.7
  },
  "luminance": 0.16246
}

Semantic roles & 50–950 ramp

primary
#AF4A97
secondary
#92C29E
accent
#D07457
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B11
muted
#827C80

Preview Lab

Preview with #AF4A97

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

Preview Lab → · Contrast checker → · Palette generator →

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