#AF478A#AF478A

#AF478A is a mid, vivid pink. Relative luminance 0.155; OKLCH L 55.7% C 0.156 H 343.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AF478A
RGBrgb(175, 71, 138)
HSLhsl(321, 42%, 48%)
HSVhsv(321, 59%, 69%)
CMYKcmyk(0%, 59.4%, 21.1%, 31.4%)
CIE-LABlab(46.25, 49.96, -16.32)
CIE-LCHlch(46.25, 52.56, 341.91°)
OKLaboklab(55.71% 0.1495 -0.0434)
OKLCHoklch(55.71% 0.156 343.8)
XYZxyz(24.5206, 15.4576, 25.7320)
Luminance0.1545 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF478A #47AF6C
analogous
#A047AF #AF478A #AF4756
triadic
#AF478A #8AAF47 #478AAF
tetradic
#AF478A #AFA047 #47AF6C #4756AF
square
#AF478A #AFA047 #47AF6C #4756AF
split-complementary
#AF478A #56AF47 #47AFA0
monochromatic
#582445 #833568 #AF478A #C46FA6 #D69AC1

Accessibility & contrast

On white

5.13
#AF478A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#AF478A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF478A
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF478A#FFFFFF#000000##FFFFFF
##AF478A1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50638C
Deuteranopia (green-blind)
#6D7487
Tritanopia (blue-blind)
#B94762
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af478a;
/* rgb */ color: rgb(175, 71, 138);
/* oklch */ color: oklch(55.7% 0.156 343.8);
Tailwind
colors: {
  custom: {
    50: '#ca80ac',
    500: '#af478a',
    950: '#000000',
  },
}
SCSS
$custom: #af478a;
$custom-light: #ca80ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af478a",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 138
  },
  "hsl": {
    "h": 321.346,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55705,
    "c": 0.15568,
    "h": 343.8
  },
  "luminance": 0.15455
}

Semantic roles & 50–950 ramp

primary
#AF478A
secondary
#8FC2A2
accent
#D28256
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F

Preview Lab

Preview with #AF478A

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

Preview Lab → · Contrast checker → · Palette generator →

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