#AF47C2#AF47C2

#AF47C2 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.5% C 0.201 H 321.2°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AF47C2
RGBrgb(175, 71, 194)
HSLhsl(291, 50%, 52%)
HSVhsv(291, 63%, 76%)
CMYKcmyk(9.8%, 63.4%, 0%, 23.9%)
CIE-LABlab(48.91, 59.41, -45.27)
CIE-LCHlch(48.91, 74.69, 322.69°)
OKLaboklab(58.51% 0.1567 -0.1262)
OKLCHoklch(58.51% 0.201 321.2)
XYZxyz(29.6689, 17.5170, 52.8468)
Luminance0.1752 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47C2 #5AC247
analogous
#7247C2 #AF47C2 #C24797
triadic
#AF47C2 #C2AF47 #47C2AF
tetradic
#AF47C2 #C27247 #5AC247 #4797C2
square
#AF47C2 #C27247 #5AC247 #4797C2
split-complementary
#AF47C2 #97C247 #47C272
monochromatic
#60246B #893399 #AF47C2 #C375D1 #D7A3E0

Accessibility & contrast

On white

4.66
#AF47C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#AF47C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47C2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47C2#FFFFFF#000000##FFFFFF
##AF47C21.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286DC6
Deuteranopia (green-blind)
#5478BF
Tritanopia (blue-blind)
#B15B7E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af47c2;
/* rgb */ color: rgb(175, 71, 194);
/* oklch */ color: oklch(58.5% 0.201 321.2);
Tailwind
colors: {
  custom: {
    50: '#ca81d5',
    500: '#af47c2',
    950: '#000000',
  },
}
SCSS
$custom: #af47c2;
$custom-light: #ca81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#af47c2",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 194
  },
  "hsl": {
    "h": 290.732,
    "s": 50.204,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58506,
    "c": 0.20123,
    "h": 321.2
  },
  "luminance": 0.17515
}

Semantic roles & 50–950 ramp

primary
#AF47C2
secondary
#A0CD97
accent
#DA4E64
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF47C2

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

Preview Lab → · Contrast checker → · Palette generator →

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