#AF47CA#AF47CA

#AF47CA is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.0% C 0.209 H 318.7°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AF47CA
RGBrgb(175, 71, 202)
HSLhsl(288, 55%, 54%)
HSVhsv(288, 65%, 79%)
CMYKcmyk(13.4%, 64.9%, 0%, 20.8%)
CIE-LABlab(49.36, 60.94, -49.17)
CIE-LCHlch(49.36, 78.30, 321.10°)
OKLaboklab(58.98% 0.1567 -0.1376)
OKLCHoklch(58.98% 0.209 318.7)
XYZxyz(30.5917, 17.8861, 57.7066)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47CA #62CA47
analogous
#6D47CA #AF47CA #CA47A3
triadic
#AF47CA #CAAF47 #47CAAF
tetradic
#AF47CA #CA6D47 #62CA47 #47A3CA
square
#AF47CA #CA6D47 #62CA47 #47A3CA
split-complementary
#AF47CA #A3CA47 #47CA6D
monochromatic
#642275 #8C2FA4 #AF47CA #C477D8 #D8A6E5

Accessibility & contrast

On white

4.59
#AF47CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#AF47CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47CA
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47CA#FFFFFF#000000##FFFFFF
##AF47CA1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A6ECE
Deuteranopia (green-blind)
#4E79C7
Tritanopia (blue-blind)
#AF5E82
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af47ca;
/* rgb */ color: rgb(175, 71, 202);
/* oklch */ color: oklch(59.0% 0.209 318.7);
Tailwind
colors: {
  custom: {
    50: '#ca81db',
    500: '#af47ca',
    950: '#000000',
  },
}
SCSS
$custom: #af47ca;
$custom-light: #ca81db;
$custom-dark: #000000;
JSON
{
  "hex": "#af47ca",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 202
  },
  "hsl": {
    "h": 287.634,
    "s": 55.274,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58979,
    "c": 0.20854,
    "h": 318.7
  },
  "luminance": 0.17885
}

Semantic roles & 50–950 ramp

primary
#AF47CA
secondary
#A6D29A
accent
#DF4968
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF47CA

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

Preview Lab → · Contrast checker → · Palette generator →

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