#AF479F#AF479F

#AF479F is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.6% C 0.171 H 334.0°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AF479F
RGBrgb(175, 71, 159)
HSLhsl(309, 42%, 48%)
HSVhsv(309, 59%, 69%)
CMYKcmyk(0%, 59.4%, 9.1%, 31.4%)
CIE-LABlab(47.14, 53.22, -27.52)
CIE-LCHlch(47.14, 59.91, 332.65°)
OKLaboklab(56.65% 0.1538 -0.075)
OKLCHoklch(56.65% 0.171 334)
XYZxyz(26.1905, 16.1256, 34.5273)
Luminance0.1612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF479F #47AF57
analogous
#8B47AF #AF479F #AF476B
triadic
#AF479F #9FAF47 #479FAF
tetradic
#AF479F #AF8B47 #47AF57 #476BAF
square
#AF479F #AF8B47 #47AF57 #476BAF
split-complementary
#AF479F #6BAF47 #47AF8B
monochromatic
#582450 #833577 #AF479F #C46FB7 #D69ACD

Accessibility & contrast

On white

4.97
#AF479F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AF479F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF479F
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF479F#FFFFFF#000000##FFFFFF
##AF479F1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4666A2
Deuteranopia (green-blind)
#66759C
Tritanopia (blue-blind)
#B74E6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af479f;
/* rgb */ color: rgb(175, 71, 159);
/* oklch */ color: oklch(56.6% 0.171 334.0);
Tailwind
colors: {
  custom: {
    50: '#ca80bb',
    500: '#af479f',
    950: '#000000',
  },
}
SCSS
$custom: #af479f;
$custom-light: #ca80bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af479f",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 159
  },
  "hsl": {
    "h": 309.231,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.56646,
    "c": 0.17106,
    "h": 334
  },
  "luminance": 0.16124
}

Semantic roles & 50–950 ramp

primary
#AF479F
secondary
#8FC297
accent
#D26956
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #AF479F

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

Preview Lab → · Contrast checker → · Palette generator →

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