#AF477C#AF477C

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

Color values

HEX#AF477C
RGBrgb(175, 71, 124)
HSLhsl(329, 42%, 48%)
HSVhsv(329, 59%, 69%)
CMYKcmyk(0%, 59.4%, 29.1%, 31.4%)
CIE-LABlab(45.74, 48.01, -8.61)
CIE-LCHlch(45.74, 48.78, 349.83°)
OKLaboklab(55.16% 0.1457 -0.0223)
OKLCHoklch(55.16% 0.147 351.3)
XYZxyz(23.5715, 15.0780, 20.7338)
Luminance0.1508 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF477C #47AF7A
analogous
#AE47AF #AF477C #AF4748
triadic
#AF477C #7CAF47 #477CAF
tetradic
#AF477C #AFAE47 #47AF7A #4748AF
square
#AF477C #AFAE47 #47AF7A #4748AF
split-complementary
#AF477C #48AF47 #47AFAE
monochromatic
#58243E #83355D #AF477C #C46F9A #D69AB9

Accessibility & contrast

On white

5.23
#AF477C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#AF477C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF477C
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF477C#FFFFFF#000000##FFFFFF
##AF477C1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#55617E
Deuteranopia (green-blind)
#71737A
Tritanopia (blue-blind)
#BB425C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af477c;
/* rgb */ color: rgb(175, 71, 124);
/* oklch */ color: oklch(55.2% 0.147 351.3);
Tailwind
colors: {
  custom: {
    50: '#ca7fa1',
    500: '#af477c',
    950: '#000000',
  },
}
SCSS
$custom: #af477c;
$custom-light: #ca7fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#af477c",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 124
  },
  "hsl": {
    "h": 329.423,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55156,
    "c": 0.14737,
    "h": 351.3
  },
  "luminance": 0.15076
}

Semantic roles & 50–950 ramp

primary
#AF477C
secondary
#8FC2A8
accent
#D29356
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140A0F
muted
#827C7E

Preview Lab

Preview with #AF477C

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

Preview Lab → · Contrast checker → · Palette generator →

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