#AF478E#AF478E

#AF478E is a mid, vivid pink. Relative luminance 0.156; OKLCH L 55.9% C 0.158 H 341.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#AF478E
RGBrgb(175, 71, 142)
HSLhsl(319, 42%, 48%)
HSVhsv(319, 59%, 69%)
CMYKcmyk(0%, 59.4%, 18.9%, 31.4%)
CIE-LABlab(46.41, 50.55, -18.48)
CIE-LCHlch(46.41, 53.82, 339.91°)
OKLaboklab(55.87% 0.1505 -0.0494)
OKLCHoklch(55.87% 0.158 341.8)
XYZxyz(24.8155, 15.5756, 27.2854)
Luminance0.1557 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF478E #47AF68
analogous
#9C47AF #AF478E #AF475A
triadic
#AF478E #8EAF47 #478EAF
tetradic
#AF478E #AF9C47 #47AF68 #475AAF
square
#AF478E #AF9C47 #47AF68 #475AAF
split-complementary
#AF478E #5AAF47 #47AF9C
monochromatic
#582447 #83356B #AF478E #C46FA9 #D69AC3

Accessibility & contrast

On white

5.10
#AF478E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF478E
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF478E#FFFFFF#000000##FFFFFF
##AF478E1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af478e;
/* rgb */ color: rgb(175, 71, 142);
/* oklch */ color: oklch(55.9% 0.158 341.8);
Tailwind
colors: {
  custom: {
    50: '#ca80af',
    500: '#af478e',
    950: '#000000',
  },
}
SCSS
$custom: #af478e;
$custom-light: #ca80af;
$custom-dark: #000000;
JSON
{
  "hex": "#af478e",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 319.038,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55874,
    "c": 0.15838,
    "h": 341.8
  },
  "luminance": 0.15573
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF478E

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

Preview Lab → · Contrast checker → · Palette generator →

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