#AF47C5#AF47C5

#AF47C5 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.7% C 0.204 H 320.2°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AF47C5
RGBrgb(175, 71, 197)
HSLhsl(290, 52%, 53%)
HSVhsv(290, 64%, 77%)
CMYKcmyk(11.2%, 64%, 0%, 22.7%)
CIE-LABlab(49.07, 59.98, -46.74)
CIE-LCHlch(49.07, 76.04, 322.07°)
OKLaboklab(58.68% 0.1568 -0.1305)
OKLCHoklch(58.68% 0.204 320.2)
XYZxyz(30.0093, 17.6531, 54.6392)
Luminance0.1765 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47C5 #5DC547
analogous
#7047C5 #AF47C5 #C5479C
triadic
#AF47C5 #C5AF47 #47C5AF
tetradic
#AF47C5 #C57047 #5DC547 #479CC5
square
#AF47C5 #C57047 #5DC547 #479CC5
split-complementary
#AF47C5 #9CC547 #47C570
monochromatic
#61236F #8A329D #AF47C5 #C376D4 #D7A4E2

Accessibility & contrast

On white

4.64
#AF47C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#AF47C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47C5
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47C5#FFFFFF#000000##FFFFFF
##AF47C51.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#236DC9
Deuteranopia (green-blind)
#5278C2
Tritanopia (blue-blind)
#B05C80
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af47c5;
/* rgb */ color: rgb(175, 71, 197);
/* oklch */ color: oklch(58.7% 0.204 320.2);
Tailwind
colors: {
  custom: {
    50: '#ca81d7',
    500: '#af47c5',
    950: '#000000',
  },
}
SCSS
$custom: #af47c5;
$custom-light: #ca81d7;
$custom-dark: #000000;
JSON
{
  "hex": "#af47c5",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 197
  },
  "hsl": {
    "h": 289.524,
    "s": 52.066,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58681,
    "c": 0.20396,
    "h": 320.2
  },
  "luminance": 0.17652
}

Semantic roles & 50–950 ramp

primary
#AF47C5
secondary
#A2CF99
accent
#DC4C65
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF47C5

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

Preview Lab → · Contrast checker → · Palette generator →

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