#AF478B#AF478B

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

Color values

HEX#AF478B
RGBrgb(175, 71, 139)
HSLhsl(321, 42%, 48%)
HSVhsv(321, 59%, 69%)
CMYKcmyk(0%, 59.4%, 20.6%, 31.4%)
CIE-LABlab(46.29, 50.11, -16.86)
CIE-LCHlch(46.29, 52.87, 341.40°)
OKLaboklab(55.75% 0.1498 -0.0449)
OKLCHoklch(55.75% 0.156 343.3)
XYZxyz(24.5933, 15.4867, 26.1151)
Luminance0.1548 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF478B #47AF6B
analogous
#9F47AF #AF478B #AF4757
triadic
#AF478B #8BAF47 #478BAF
tetradic
#AF478B #AF9F47 #47AF6B #4757AF
square
#AF478B #AF9F47 #47AF6B #4757AF
split-complementary
#AF478B #57AF47 #47AF9F
monochromatic
#582446 #833568 #AF478B #C46FA7 #D69AC1

Accessibility & contrast

On white

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

On black

4.10
#AF478B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF478B#FFFFFF#000000##FFFFFF
##AF478B1.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F638D
Deuteranopia (green-blind)
#6D7488
Tritanopia (blue-blind)
#B94763
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af478b;
/* rgb */ color: rgb(175, 71, 139);
/* oklch */ color: oklch(55.7% 0.156 343.3);
Tailwind
colors: {
  custom: {
    50: '#ca80ad',
    500: '#af478b',
    950: '#000000',
  },
}
SCSS
$custom: #af478b;
$custom-light: #ca80ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af478b",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 320.769,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55747,
    "c": 0.15635,
    "h": 343.3
  },
  "luminance": 0.15485
}

Semantic roles & 50–950 ramp

primary
#AF478B
secondary
#8FC2A1
accent
#D28156
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F

Preview Lab

Preview with #AF478B

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

Preview Lab → · Contrast checker → · Palette generator →

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