#AF478D#AF478D

#AF478D is a mid, vivid pink. Relative luminance 0.155; OKLCH L 55.8% C 0.158 H 342.3°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#AF478D
RGBrgb(175, 71, 141)
HSLhsl(320, 42%, 48%)
HSVhsv(320, 59%, 69%)
CMYKcmyk(0%, 59.4%, 19.4%, 31.4%)
CIE-LABlab(46.37, 50.40, -17.94)
CIE-LCHlch(46.37, 53.50, 340.40°)
OKLaboklab(55.83% 0.1502 -0.0479)
OKLCHoklch(55.83% 0.158 342.3)
XYZxyz(24.7408, 15.5457, 26.8917)
Luminance0.1554 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF478D #47AF69
analogous
#9D47AF #AF478D #AF4759
triadic
#AF478D #8DAF47 #478DAF
tetradic
#AF478D #AF9D47 #47AF69 #4759AF
square
#AF478D #AF9D47 #47AF69 #4759AF
split-complementary
#AF478D #59AF47 #47AF9D
monochromatic
#582447 #83356A #AF478D #C46FA8 #D69AC3

Accessibility & contrast

On white

5.11
#AF478D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#AF478D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF478D
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF478D#FFFFFF#000000##FFFFFF
##AF478D1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E638F
Deuteranopia (green-blind)
#6C748A
Tritanopia (blue-blind)
#B94864
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af478d;
/* rgb */ color: rgb(175, 71, 141);
/* oklch */ color: oklch(55.8% 0.158 342.3);
Tailwind
colors: {
  custom: {
    50: '#ca80ae',
    500: '#af478d',
    950: '#000000',
  },
}
SCSS
$custom: #af478d;
$custom-light: #ca80ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af478d",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 319.615,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55831,
    "c": 0.15769,
    "h": 342.3
  },
  "luminance": 0.15544
}

Semantic roles & 50–950 ramp

primary
#AF478D
secondary
#8FC2A0
accent
#D27E56
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F

Preview Lab

Preview with #AF478D

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

Preview Lab → · Contrast checker → · Palette generator →

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