#AF477B#AF477B

#AF477B is a mid, vivid pink. Relative luminance 0.150; OKLCH L 55.1% C 0.147 H 351.9°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AF477B
RGBrgb(175, 71, 123)
HSLhsl(330, 42%, 48%)
HSVhsv(330, 59%, 69%)
CMYKcmyk(0%, 59.4%, 29.7%, 31.4%)
CIE-LABlab(45.71, 47.88, -8.06)
CIE-LCHlch(45.71, 48.55, 350.45°)
OKLaboklab(55.12% 0.1454 -0.0208)
OKLCHoklch(55.12% 0.147 351.9)
XYZxyz(23.5086, 15.0528, 20.4025)
Luminance0.1505 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF477B #47AF7B
analogous
#AF47AF #AF477B #AF4747
triadic
#AF477B #7BAF47 #477BAF
tetradic
#AF477B #AFAF47 #47AF7B #4747AF
square
#AF477B #AFAF47 #47AF7B #4747AF
split-complementary
#AF477B #47AF47 #47AFAF
monochromatic
#58243E #83355C #AF477B #C46F9A #D69AB8

Accessibility & contrast

On white

5.24
#AF477B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#AF477B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF477B
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF477B#FFFFFF#000000##FFFFFF
##AF477B1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#55617D
Deuteranopia (green-blind)
#717379
Tritanopia (blue-blind)
#BB425B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af477b;
/* rgb */ color: rgb(175, 71, 123);
/* oklch */ color: oklch(55.1% 0.147 351.9);
Tailwind
colors: {
  custom: {
    50: '#ca7fa1',
    500: '#af477b',
    950: '#000000',
  },
}
SCSS
$custom: #af477b;
$custom-light: #ca7fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#af477b",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 123
  },
  "hsl": {
    "h": 330,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55119,
    "c": 0.14685,
    "h": 351.9
  },
  "luminance": 0.1505
}

Semantic roles & 50–950 ramp

primary
#AF477B
secondary
#8FC2A9
accent
#D29456
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140A0E
muted
#827C7E

Preview Lab

Preview with #AF477B

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

Preview Lab → · Contrast checker → · Palette generator →

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