#AF479C#AF479C

#AF479C is a mid, vivid pink. Relative luminance 0.160; OKLCH L 56.5% C 0.169 H 335.3°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AF479C
RGBrgb(175, 71, 156)
HSLhsl(311, 42%, 48%)
HSVhsv(311, 59%, 69%)
CMYKcmyk(0%, 59.4%, 10.9%, 31.4%)
CIE-LABlab(47.00, 52.73, -25.95)
CIE-LCHlch(47.00, 58.77, 333.80°)
OKLaboklab(56.5% 0.1533 -0.0705)
OKLCHoklch(56.5% 0.169 335.3)
XYZxyz(25.9334, 16.0227, 33.1729)
Luminance0.1602 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF479C #47AF5A
analogous
#8E47AF #AF479C #AF4768
triadic
#AF479C #9CAF47 #479CAF
tetradic
#AF479C #AF8E47 #47AF5A #4768AF
square
#AF479C #AF8E47 #47AF5A #4768AF
split-complementary
#AF479C #68AF47 #47AF8E
monochromatic
#58244E #833575 #AF479C #C46FB5 #D69ACB

Accessibility & contrast

On white

5.00
#AF479C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#AF479C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF479C
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF479C#FFFFFF#000000##FFFFFF
##AF479C1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47669F
Deuteranopia (green-blind)
#677599
Tritanopia (blue-blind)
#B74D6B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af479c;
/* rgb */ color: rgb(175, 71, 156);
/* oklch */ color: oklch(56.5% 0.169 335.3);
Tailwind
colors: {
  custom: {
    50: '#ca80b9',
    500: '#af479c',
    950: '#000000',
  },
}
SCSS
$custom: #af479c;
$custom-light: #ca80b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af479c",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 156
  },
  "hsl": {
    "h": 310.962,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.56503,
    "c": 0.1687,
    "h": 335.3
  },
  "luminance": 0.16021
}

Semantic roles & 50–950 ramp

primary
#AF479C
secondary
#8FC299
accent
#D26C56
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B11
muted
#827C80

Preview Lab

Preview with #AF479C

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

Preview Lab → · Contrast checker → · Palette generator →

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