#AF477E#AF477E

#AF477E is a mid, vivid pink. Relative luminance 0.151; OKLCH L 55.2% C 0.148 H 350.2°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#AF477E
RGBrgb(175, 71, 126)
HSLhsl(328, 42%, 48%)
HSVhsv(328, 59%, 69%)
CMYKcmyk(0%, 59.4%, 28%, 31.4%)
CIE-LABlab(45.81, 48.28, -9.72)
CIE-LCHlch(45.81, 49.25, 348.61°)
OKLaboklab(55.23% 0.1463 -0.0253)
OKLCHoklch(55.23% 0.148 350.2)
XYZxyz(23.6993, 15.1291, 21.4067)
Luminance0.1513 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF477E #47AF78
analogous
#AC47AF #AF477E #AF474A
triadic
#AF477E #7EAF47 #477EAF
tetradic
#AF477E #AFAC47 #47AF78 #474AAF
square
#AF477E #AFAC47 #47AF78 #474AAF
split-complementary
#AF477E #4AAF47 #47AFAC
monochromatic
#58243F #83355F #AF477E #C46F9C #D69ABA

Accessibility & contrast

On white

5.22
#AF477E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AF477E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF477E
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF477E#FFFFFF#000000##FFFFFF
##AF477E1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#546180
Deuteranopia (green-blind)
#71737B
Tritanopia (blue-blind)
#BB435D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af477e;
/* rgb */ color: rgb(175, 71, 126);
/* oklch */ color: oklch(55.2% 0.148 350.2);
Tailwind
colors: {
  custom: {
    50: '#ca7fa3',
    500: '#af477e',
    950: '#000000',
  },
}
SCSS
$custom: #af477e;
$custom-light: #ca7fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#af477e",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 126
  },
  "hsl": {
    "h": 328.269,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55231,
    "c": 0.14844,
    "h": 350.2
  },
  "luminance": 0.15127
}

Semantic roles & 50–950 ramp

primary
#AF477E
secondary
#8FC2A7
accent
#D29056
background
#FCF8FA
surface
#F9EFF3
border
#D2CACD
text
#140A0F
muted
#827C7F

Preview Lab

Preview with #AF477E

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

Preview Lab → · Contrast checker → · Palette generator →

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