#AF47D9#AF47D9

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

Color values

HEX#AF47D9
RGBrgb(175, 71, 217)
HSLhsl(283, 66%, 56%)
HSVhsv(283, 67%, 85%)
CMYKcmyk(19.4%, 67.3%, 0%, 14.9%)
CIE-LABlab(50.25, 63.90, -56.32)
CIE-LCHlch(50.25, 85.18, 318.61°)
OKLaboklab(59.91% 0.1561 -0.1585)
OKLCHoklch(59.91% 0.222 314.6)
XYZxyz(32.4548, 18.6313, 67.5188)
Luminance0.1863 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47D9 #71D947
analogous
#6647D9 #AF47D9 #D947BA
triadic
#AF47D9 #D9AF47 #47D9AF
tetradic
#AF47D9 #D96647 #71D947 #47BAD9
square
#AF47D9 #D96647 #71D947 #47BAD9
split-complementary
#AF47D9 #BAD947 #47D966
monochromatic
#6A1C89 #9127BC #AF47D9 #C57AE3 #DBACEE

Accessibility & contrast

On white

4.44
#AF47D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#AF47D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF47D9
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47D9#FFFFFF#000000##000000
##AF47D91.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DD
Deuteranopia (green-blind)
#417AD6
Tritanopia (blue-blind)
#AB648B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af47d9;
/* rgb */ color: rgb(175, 71, 217);
/* oklch */ color: oklch(59.9% 0.222 314.6);
Tailwind
colors: {
  custom: {
    50: '#cb82e5',
    500: '#af47d9',
    950: '#000000',
  },
}
SCSS
$custom: #af47d9;
$custom-light: #cb82e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af47d9",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 217
  },
  "hsl": {
    "h": 282.74,
    "s": 65.766,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5991,
    "c": 0.22247,
    "h": 314.6
  },
  "luminance": 0.1863
}

Semantic roles & 50–950 ramp

primary
#AF47D9
secondary
#B1DCA0
accent
#E93F70
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF47D9

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

Preview Lab → · Contrast checker → · Palette generator →

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