#AF47A4#AF47A4

#AF47A4 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 56.9% C 0.175 H 331.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF47A4
RGBrgb(175, 71, 164)
HSLhsl(306, 42%, 48%)
HSVhsv(306, 59%, 69%)
CMYKcmyk(0%, 59.4%, 6.3%, 31.4%)
CIE-LABlab(47.37, 54.05, -30.13)
CIE-LCHlch(47.37, 61.88, 330.86°)
OKLaboklab(56.89% 0.1545 -0.0824)
OKLCHoklch(56.89% 0.175 331.9)
XYZxyz(26.6332, 16.3027, 36.8587)
Luminance0.1630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47A4 #47AF52
analogous
#8647AF #AF47A4 #AF4770
triadic
#AF47A4 #A4AF47 #47A4AF
tetradic
#AF47A4 #AF8647 #47AF52 #4770AF
square
#AF47A4 #AF8647 #47AF52 #4770AF
split-complementary
#AF47A4 #70AF47 #47AF86
monochromatic
#582452 #83357B #AF47A4 #C46FBB #D69AD0

Accessibility & contrast

On white

4.93
#AF47A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#AF47A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47A4
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47A4#FFFFFF#000000##FFFFFF
##AF47A41.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4367A7
Deuteranopia (green-blind)
#6476A1
Tritanopia (blue-blind)
#B6506F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af47a4;
/* rgb */ color: rgb(175, 71, 164);
/* oklch */ color: oklch(56.9% 0.175 331.9);
Tailwind
colors: {
  custom: {
    50: '#ca80bf',
    500: '#af47a4',
    950: '#000000',
  },
}
SCSS
$custom: #af47a4;
$custom-light: #ca80bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af47a4",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 164
  },
  "hsl": {
    "h": 306.346,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.5689,
    "c": 0.17511,
    "h": 331.9
  },
  "luminance": 0.16301
}

Semantic roles & 50–950 ramp

primary
#AF47A4
secondary
#8FC295
accent
#D26356
background
#FCF8FB
surface
#F9EFF7
border
#D2CAD0
text
#140B12
muted
#827C81

Preview Lab

Preview with #AF47A4

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

Preview Lab → · Contrast checker → · Palette generator →

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