#AF47AB#AF47AB

#AF47AB is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.2% C 0.181 H 329.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AF47AB
RGBrgb(175, 71, 171)
HSLhsl(302, 42%, 48%)
HSVhsv(302, 59%, 69%)
CMYKcmyk(0%, 59.4%, 2.3%, 31.4%)
CIE-LABlab(47.70, 55.24, -33.74)
CIE-LCHlch(47.70, 64.73, 328.59°)
OKLaboklab(57.24% 0.1553 -0.0928)
OKLCHoklch(57.24% 0.181 329.2)
XYZxyz(27.2828, 16.5625, 40.2801)
Luminance0.1656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47AB #47AF4B
analogous
#7F47AF #AF47AB #AF4777
triadic
#AF47AB #ABAF47 #47ABAF
tetradic
#AF47AB #AF7F47 #47AF4B #4777AF
square
#AF47AB #AF7F47 #47AF4B #4777AF
split-complementary
#AF47AB #77AF47 #47AF7F
monochromatic
#582456 #833580 #AF47AB #C46FC1 #D69AD4

Accessibility & contrast

On white

4.87
#AF47AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#AF47AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47AB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47AB#FFFFFF#000000##FFFFFF
##AF47AB1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E68AE
Deuteranopia (green-blind)
#6176A8
Tritanopia (blue-blind)
#B55272
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af47ab;
/* rgb */ color: rgb(175, 71, 171);
/* oklch */ color: oklch(57.2% 0.181 329.2);
Tailwind
colors: {
  custom: {
    50: '#ca80c4',
    500: '#af47ab',
    950: '#000000',
  },
}
SCSS
$custom: #af47ab;
$custom-light: #ca80c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af47ab",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 171
  },
  "hsl": {
    "h": 302.308,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57244,
    "c": 0.18095,
    "h": 329.2
  },
  "luminance": 0.16561
}

Semantic roles & 50–950 ramp

primary
#AF47AB
secondary
#8FC291
accent
#D25B56
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF47AB

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

Preview Lab → · Contrast checker → · Palette generator →

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