#AF4797#AF4797

#AF4797 is a mid, vivid pink. Relative luminance 0.159; OKLCH L 56.3% C 0.165 H 337.5°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF4797
RGBrgb(175, 71, 151)
HSLhsl(314, 42%, 48%)
HSVhsv(314, 59%, 69%)
CMYKcmyk(0%, 59.4%, 13.7%, 31.4%)
CIE-LABlab(46.79, 51.93, -23.30)
CIE-LCHlch(46.79, 56.92, 335.83°)
OKLaboklab(56.27% 0.1524 -0.063)
OKLCHoklch(56.27% 0.165 337.5)
XYZxyz(25.5187, 15.8569, 30.9888)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4797 #47AF5F
analogous
#9347AF #AF4797 #AF4763
triadic
#AF4797 #97AF47 #4797AF
tetradic
#AF4797 #AF9347 #47AF5F #4763AF
square
#AF4797 #AF9347 #47AF5F #4763AF
split-complementary
#AF4797 #63AF47 #47AF93
monochromatic
#58244C #833571 #AF4797 #C46FB1 #D69AC8

Accessibility & contrast

On white

5.03
#AF4797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AF4797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4797
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4797#FFFFFF#000000##FFFFFF
##AF47971.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A659A
Deuteranopia (green-blind)
#697594
Tritanopia (blue-blind)
#B84B68
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af4797;
/* rgb */ color: rgb(175, 71, 151);
/* oklch */ color: oklch(56.3% 0.165 337.5);
Tailwind
colors: {
  custom: {
    50: '#ca80b5',
    500: '#af4797',
    950: '#000000',
  },
}
SCSS
$custom: #af4797;
$custom-light: #ca80b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4797",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 313.846,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.56271,
    "c": 0.16487,
    "h": 337.5
  },
  "luminance": 0.15855
}

Semantic roles & 50–950 ramp

primary
#AF4797
secondary
#8FC29B
accent
#D27256
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B11
muted
#827C80

Preview Lab

Preview with #AF4797

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

Preview Lab → · Contrast checker → · Palette generator →

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