#AF47AA#AF47AA

#AF47AA is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.2% C 0.180 H 329.5°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AF47AA
RGBrgb(175, 71, 170)
HSLhsl(303, 42%, 48%)
HSVhsv(303, 59%, 69%)
CMYKcmyk(0%, 59.4%, 2.9%, 31.4%)
CIE-LABlab(47.66, 55.07, -33.23)
CIE-LCHlch(47.66, 64.32, 328.89°)
OKLaboklab(57.19% 0.1552 -0.0913)
OKLCHoklch(57.19% 0.18 329.5)
XYZxyz(27.1879, 16.5245, 39.7800)
Luminance0.1652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47AA #47AF4C
analogous
#8047AF #AF47AA #AF4776
triadic
#AF47AA #AAAF47 #47AAAF
tetradic
#AF47AA #AF8047 #47AF4C #4776AF
square
#AF47AA #AF8047 #47AF4C #4776AF
split-complementary
#AF47AA #76AF47 #47AF80
monochromatic
#582455 #833580 #AF47AA #C46FC0 #D69AD3

Accessibility & contrast

On white

4.88
#AF47AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#AF47AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47AA
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47AA#FFFFFF#000000##FFFFFF
##AF47AA1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af47aa;
/* rgb */ color: rgb(175, 71, 170);
/* oklch */ color: oklch(57.2% 0.180 329.5);
Tailwind
colors: {
  custom: {
    50: '#ca80c3',
    500: '#af47aa',
    950: '#000000',
  },
}
SCSS
$custom: #af47aa;
$custom-light: #ca80c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af47aa",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 170
  },
  "hsl": {
    "h": 302.885,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57192,
    "c": 0.1801,
    "h": 329.5
  },
  "luminance": 0.16523
}

Semantic roles & 50–950 ramp

primary
#AF47AA
secondary
#8FC292
accent
#D25C56
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B12
muted
#827C81

Preview Lab

Preview with #AF47AA

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

Preview Lab → · Contrast checker → · Palette generator →

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