#AF47E0#AF47E0

#AF47E0 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.4% C 0.229 H 312.8°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#AF47E0
RGBrgb(175, 71, 224)
HSLhsl(281, 71%, 58%)
HSVhsv(281, 68%, 88%)
CMYKcmyk(21.9%, 68.3%, 0%, 12.2%)
CIE-LABlab(50.69, 65.32, -59.59)
CIE-LCHlch(50.69, 88.42, 317.63°)
OKLaboklab(60.36% 0.1556 -0.1681)
OKLCHoklch(60.36% 0.229 312.8)
XYZxyz(33.3846, 19.0032, 72.4159)
Luminance0.1900 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47E0 #78E047
analogous
#6247E0 #AF47E0 #E047C5
triadic
#AF47E0 #E0AF47 #47E0AF
tetradic
#AF47E0 #E06247 #78E047 #47C5E0
square
#AF47E0 #E06247 #78E047 #47C5E0
split-complementary
#AF47E0 #C5E047 #47E062
monochromatic
#6C1994 #9322C8 #AF47E0 #C67BE9 #DDB0F2

Accessibility & contrast

On white

4.37
#AF47E0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#AF47E0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF47E0
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47E0#FFFFFF#000000##000000
##AF47E01.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E4
Deuteranopia (green-blind)
#3A7BDD
Tritanopia (blue-blind)
#AA678E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af47e0;
/* rgb */ color: rgb(175, 71, 224);
/* oklch */ color: oklch(60.4% 0.229 312.8);
Tailwind
colors: {
  custom: {
    50: '#cb82ea',
    500: '#af47e0',
    950: '#000000',
  },
}
SCSS
$custom: #af47e0;
$custom-light: #cb82ea;
$custom-dark: #000000;
JSON
{
  "hex": "#af47e0",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 224
  },
  "hsl": {
    "h": 280.784,
    "s": 71.163,
    "l": 57.843
  },
  "oklch": {
    "l": 0.60363,
    "c": 0.22903,
    "h": 312.8
  },
  "luminance": 0.19002
}

Semantic roles & 50–950 ramp

primary
#AF47E0
secondary
#B6E0A3
accent
#EE3A74
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF47E0

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

Preview Lab → · Contrast checker → · Palette generator →

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