#AF477F#AF477F

#AF477F is a mid, vivid pink. Relative luminance 0.152; OKLCH L 55.3% C 0.149 H 349.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AF477F
RGBrgb(175, 71, 127)
HSLhsl(328, 42%, 48%)
HSVhsv(328, 59%, 69%)
CMYKcmyk(0%, 59.4%, 27.4%, 31.4%)
CIE-LABlab(45.85, 48.41, -10.28)
CIE-LCHlch(45.85, 49.49, 348.01°)
OKLaboklab(55.27% 0.1466 -0.0268)
OKLCHoklch(55.27% 0.149 349.6)
XYZxyz(23.7641, 15.1550, 21.7482)
Luminance0.1515 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF477F #47AF77
analogous
#AB47AF #AF477F #AF474B
triadic
#AF477F #7FAF47 #477FAF
tetradic
#AF477F #AFAB47 #47AF77 #474BAF
square
#AF477F #AFAB47 #47AF77 #474BAF
split-complementary
#AF477F #4BAF47 #47AFAB
monochromatic
#582440 #83355F #AF477F #C46F9D #D69ABB

Accessibility & contrast

On white

5.21
#AF477F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF477F
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF477F#FFFFFF#000000##FFFFFF
##AF477F1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#546181
Deuteranopia (green-blind)
#70737C
Tritanopia (blue-blind)
#BB435D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af477f;
/* rgb */ color: rgb(175, 71, 127);
/* oklch */ color: oklch(55.3% 0.149 349.6);
Tailwind
colors: {
  custom: {
    50: '#ca7fa4',
    500: '#af477f',
    950: '#000000',
  },
}
SCSS
$custom: #af477f;
$custom-light: #ca7fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#af477f",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 127
  },
  "hsl": {
    "h": 327.692,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55268,
    "c": 0.14899,
    "h": 349.6
  },
  "luminance": 0.15153
}

Semantic roles & 50–950 ramp

primary
#AF477F
secondary
#8FC2A7
accent
#D28F56
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140A0F
muted
#827C7F

Preview Lab

Preview with #AF477F

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

Preview Lab → · Contrast checker → · Palette generator →

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