#AF47DD#AF47DD

#AF47DD is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.2% C 0.226 H 313.5°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AF47DD
RGBrgb(175, 71, 221)
HSLhsl(282, 69%, 57%)
HSVhsv(282, 68%, 87%)
CMYKcmyk(20.8%, 67.9%, 0%, 13.3%)
CIE-LABlab(50.50, 64.71, -58.20)
CIE-LCHlch(50.50, 87.03, 318.03°)
OKLaboklab(60.17% 0.1558 -0.164)
OKLCHoklch(60.17% 0.226 313.5)
XYZxyz(32.9813, 18.8419, 70.2921)
Luminance0.1884 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47DD #75DD47
analogous
#6447DD #AF47DD #DD47C0
triadic
#AF47DD #DDAF47 #47DDAF
tetradic
#AF47DD #DD6447 #75DD47 #47C0DD
square
#AF47DD #DD6447 #75DD47 #47C0DD
split-complementary
#AF47DD #C0DD47 #47DD64
monochromatic
#6B1A8F #9224C3 #AF47DD #C57BE7 #DCAEF0

Accessibility & contrast

On white

4.40
#AF47DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#AF47DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF47DD
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47DD#FFFFFF#000000##000000
##AF47DD1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E1
Deuteranopia (green-blind)
#3D7BDA
Tritanopia (blue-blind)
#AA668D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af47dd;
/* rgb */ color: rgb(175, 71, 221);
/* oklch */ color: oklch(60.2% 0.226 313.5);
Tailwind
colors: {
  custom: {
    50: '#cb82e8',
    500: '#af47dd',
    950: '#000000',
  },
}
SCSS
$custom: #af47dd;
$custom-light: #cb82e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af47dd",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 221
  },
  "hsl": {
    "h": 281.6,
    "s": 68.807,
    "l": 57.255
  },
  "oklch": {
    "l": 0.60167,
    "c": 0.22621,
    "h": 313.5
  },
  "luminance": 0.18841
}

Semantic roles & 50–950 ramp

primary
#AF47DD
secondary
#B4DEA2
accent
#EC3C72
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF47DD

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

Preview Lab → · Contrast checker → · Palette generator →

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