#AF47C7#AF47C7

#AF47C7 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.8% C 0.206 H 319.6°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#AF47C7
RGBrgb(175, 71, 199)
HSLhsl(289, 53%, 53%)
HSVhsv(289, 64%, 78%)
CMYKcmyk(12.1%, 64.3%, 0%, 22%)
CIE-LABlab(49.19, 60.36, -47.71)
CIE-LCHlch(49.19, 76.94, 321.68°)
OKLaboklab(58.8% 0.1568 -0.1333)
OKLCHoklch(58.8% 0.206 319.6)
XYZxyz(30.2399, 17.7454, 55.8541)
Luminance0.1774 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47C7 #5FC747
analogous
#6F47C7 #AF47C7 #C7479F
triadic
#AF47C7 #C7AF47 #47C7AF
tetradic
#AF47C7 #C76F47 #5FC747 #479FC7
square
#AF47C7 #C76F47 #5FC747 #479FC7
split-complementary
#AF47C7 #9FC747 #47C76F
monochromatic
#622271 #8B31A0 #AF47C7 #C376D5 #D8A5E4

Accessibility & contrast

On white

4.62
#AF47C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#AF47C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47C7
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47C7#FFFFFF#000000##FFFFFF
##AF47C71.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206ECB
Deuteranopia (green-blind)
#5179C4
Tritanopia (blue-blind)
#AF5D81
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af47c7;
/* rgb */ color: rgb(175, 71, 199);
/* oklch */ color: oklch(58.8% 0.206 319.6);
Tailwind
colors: {
  custom: {
    50: '#ca81d8',
    500: '#af47c7',
    950: '#000000',
  },
}
SCSS
$custom: #af47c7;
$custom-light: #ca81d8;
$custom-dark: #000000;
JSON
{
  "hex": "#af47c7",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 199
  },
  "hsl": {
    "h": 288.75,
    "s": 53.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.58799,
    "c": 0.20579,
    "h": 319.6
  },
  "luminance": 0.17744
}

Semantic roles & 50–950 ramp

primary
#AF47C7
secondary
#A4D199
accent
#DD4B66
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF47C7

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

Preview Lab → · Contrast checker → · Palette generator →

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