#AF47D2#AF47D2

#AF47D2 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.5% C 0.216 H 316.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AF47D2
RGBrgb(175, 71, 210)
HSLhsl(285, 61%, 55%)
HSVhsv(285, 66%, 82%)
CMYKcmyk(16.7%, 66.2%, 0%, 17.6%)
CIE-LABlab(49.83, 62.51, -53.01)
CIE-LCHlch(49.83, 81.96, 319.70°)
OKLaboklab(59.47% 0.1565 -0.1488)
OKLCHoklch(59.47% 0.216 316.4)
XYZxyz(31.5635, 18.2748, 62.8250)
Luminance0.1827 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47D2 #6AD247
analogous
#6947D2 #AF47D2 #D247B0
triadic
#AF47D2 #D2AF47 #47D2AF
tetradic
#AF47D2 #D26947 #6AD247 #47B0D2
square
#AF47D2 #D26947 #6AD247 #47B0D2
split-complementary
#AF47D2 #B0D247 #47D269
monochromatic
#671F7F #8F2BB1 #AF47D2 #C478DE #DAA9EA

Accessibility & contrast

On white

4.51
#AF47D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#AF47D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF47D2
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47D2#FFFFFF#000000##000000
##AF47D21.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070D6
Deuteranopia (green-blind)
#487ACF
Tritanopia (blue-blind)
#AD6187
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af47d2;
/* rgb */ color: rgb(175, 71, 210);
/* oklch */ color: oklch(59.5% 0.216 316.4);
Tailwind
colors: {
  custom: {
    50: '#cb82e0',
    500: '#af47d2',
    950: '#000000',
  },
}
SCSS
$custom: #af47d2;
$custom-light: #cb82e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af47d2",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 210
  },
  "hsl": {
    "h": 284.892,
    "s": 60.699,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59468,
    "c": 0.21595,
    "h": 316.4
  },
  "luminance": 0.18274
}

Semantic roles & 50–950 ramp

primary
#AF47D2
secondary
#ACD89D
accent
#E4446C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF47D2

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

Preview Lab → · Contrast checker → · Palette generator →

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