#AF477D#AF477D

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

Color values

HEX#AF477D
RGBrgb(175, 71, 125)
HSLhsl(329, 42%, 48%)
HSVhsv(329, 59%, 69%)
CMYKcmyk(0%, 59.4%, 28.6%, 31.4%)
CIE-LABlab(45.78, 48.15, -9.17)
CIE-LCHlch(45.78, 49.01, 349.22°)
OKLaboklab(55.19% 0.146 -0.0238)
OKLCHoklch(55.19% 0.148 350.7)
XYZxyz(23.6351, 15.1034, 21.0686)
Luminance0.1510 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF477D #47AF79
analogous
#AD47AF #AF477D #AF4749
triadic
#AF477D #7DAF47 #477DAF
tetradic
#AF477D #AFAD47 #47AF79 #4749AF
square
#AF477D #AFAD47 #47AF79 #4749AF
split-complementary
#AF477D #49AF47 #47AFAD
monochromatic
#58243F #83355E #AF477D #C46F9B #D69AB9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF477D#FFFFFF#000000##FFFFFF
##AF477D1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#54617F
Deuteranopia (green-blind)
#71737A
Tritanopia (blue-blind)
#BB435C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af477d;
/* rgb */ color: rgb(175, 71, 125);
/* oklch */ color: oklch(55.2% 0.148 350.7);
Tailwind
colors: {
  custom: {
    50: '#ca7fa2',
    500: '#af477d',
    950: '#000000',
  },
}
SCSS
$custom: #af477d;
$custom-light: #ca7fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#af477d",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 125
  },
  "hsl": {
    "h": 328.846,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55193,
    "c": 0.1479,
    "h": 350.7
  },
  "luminance": 0.15101
}

Semantic roles & 50–950 ramp

primary
#AF477D
secondary
#8FC2A8
accent
#D29256
background
#FCF8FA
surface
#F9EFF3
border
#D2CACD
text
#140A0F
muted
#827C7F

Preview Lab

Preview with #AF477D

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

Preview Lab → · Contrast checker → · Palette generator →

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