#AF47D8#AF47D8

#AF47D8 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 59.8% C 0.222 H 314.8°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AF47D8
RGBrgb(175, 71, 216)
HSLhsl(283, 65%, 56%)
HSVhsv(283, 67%, 85%)
CMYKcmyk(19%, 67.1%, 0%, 15.3%)
CIE-LABlab(50.19, 63.70, -55.85)
CIE-LCHlch(50.19, 84.72, 318.76°)
OKLaboklab(59.85% 0.1562 -0.1571)
OKLCHoklch(59.85% 0.222 314.8)
XYZxyz(32.3251, 18.5794, 66.8358)
Luminance0.1858 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47D8 #70D847
analogous
#6747D8 #AF47D8 #D847B9
triadic
#AF47D8 #D8AF47 #47D8AF
tetradic
#AF47D8 #D86747 #70D847 #47B9D8
square
#AF47D8 #D86747 #70D847 #47B9D8
split-complementary
#AF47D8 #B9D847 #47D867
monochromatic
#6A1D88 #9127BA #AF47D8 #C579E3 #DBACED

Accessibility & contrast

On white

4.45
#AF47D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#AF47D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF47D8
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47D8#FFFFFF#000000##000000
##AF47D81.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DC
Deuteranopia (green-blind)
#427AD5
Tritanopia (blue-blind)
#AC648A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af47d8;
/* rgb */ color: rgb(175, 71, 216);
/* oklch */ color: oklch(59.8% 0.222 314.8);
Tailwind
colors: {
  custom: {
    50: '#cb82e5',
    500: '#af47d8',
    950: '#000000',
  },
}
SCSS
$custom: #af47d8;
$custom-light: #cb82e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af47d8",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 216
  },
  "hsl": {
    "h": 283.034,
    "s": 65.022,
    "l": 56.275
  },
  "oklch": {
    "l": 0.59846,
    "c": 0.22154,
    "h": 314.8
  },
  "luminance": 0.18578
}

Semantic roles & 50–950 ramp

primary
#AF47D8
secondary
#B0DBA0
accent
#E8406F
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF47D8

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

Preview Lab → · Contrast checker → · Palette generator →

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