#AF478C#AF478C

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

Color values

HEX#AF478C
RGBrgb(175, 71, 140)
HSLhsl(320, 42%, 48%)
HSVhsv(320, 59%, 69%)
CMYKcmyk(0%, 59.4%, 20%, 31.4%)
CIE-LABlab(46.33, 50.25, -17.40)
CIE-LCHlch(46.33, 53.18, 340.90°)
OKLaboklab(55.79% 0.15 -0.0464)
OKLCHoklch(55.79% 0.157 342.8)
XYZxyz(24.6667, 15.5161, 26.5016)
Luminance0.1551 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF478C #47AF6A
analogous
#9E47AF #AF478C #AF4758
triadic
#AF478C #8CAF47 #478CAF
tetradic
#AF478C #AF9E47 #47AF6A #4758AF
square
#AF478C #AF9E47 #47AF6A #4758AF
split-complementary
#AF478C #58AF47 #47AF9E
monochromatic
#582446 #833569 #AF478C #C46FA8 #D69AC2

Accessibility & contrast

On white

5.12
#AF478C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF478C
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF478C#FFFFFF#000000##FFFFFF
##AF478C1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af478c;
/* rgb */ color: rgb(175, 71, 140);
/* oklch */ color: oklch(55.8% 0.157 342.8);
Tailwind
colors: {
  custom: {
    50: '#ca80ad',
    500: '#af478c',
    950: '#000000',
  },
}
SCSS
$custom: #af478c;
$custom-light: #ca80ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af478c",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 320.192,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55789,
    "c": 0.15702,
    "h": 342.8
  },
  "luminance": 0.15514
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF478C

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

Preview Lab → · Contrast checker → · Palette generator →

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