#AF47DC#AF47DC

#AF47DC is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.1% C 0.225 H 313.8°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AF47DC
RGBrgb(175, 71, 220)
HSLhsl(282, 68%, 57%)
HSVhsv(282, 68%, 86%)
CMYKcmyk(20.5%, 67.7%, 0%, 13.7%)
CIE-LABlab(50.44, 64.51, -57.73)
CIE-LCHlch(50.44, 86.57, 318.17°)
OKLaboklab(60.1% 0.1559 -0.1626)
OKLCHoklch(60.1% 0.225 313.8)
XYZxyz(32.8485, 18.7888, 69.5925)
Luminance0.1879 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47DC #74DC47
analogous
#6447DC #AF47DC #DC47BF
triadic
#AF47DC #DCAF47 #47DCAF
tetradic
#AF47DC #DC6447 #74DC47 #47BFDC
square
#AF47DC #DC6447 #74DC47 #47BFDC
split-complementary
#AF47DC #BFDC47 #47DC64
monochromatic
#6B1B8E #9225C1 #AF47DC #C57AE6 #DCAEF0

Accessibility & contrast

On white

4.41
#AF47DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#AF47DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF47DC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47DC#FFFFFF#000000##000000
##AF47DC1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#3E7BD9
Tritanopia (blue-blind)
#AB658C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af47dc;
/* rgb */ color: rgb(175, 71, 220);
/* oklch */ color: oklch(60.1% 0.225 313.8);
Tailwind
colors: {
  custom: {
    50: '#cb82e8',
    500: '#af47dc',
    950: '#000000',
  },
}
SCSS
$custom: #af47dc;
$custom-light: #cb82e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af47dc",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 220
  },
  "hsl": {
    "h": 281.879,
    "s": 68.037,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60102,
    "c": 0.22527,
    "h": 313.8
  },
  "luminance": 0.18788
}

Semantic roles & 50–950 ramp

primary
#AF47DC
secondary
#B3DEA1
accent
#EB3D71
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF47DC

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

Preview Lab → · Contrast checker → · Palette generator →

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