#AF47CB#AF47CB

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

Color values

HEX#AF47CB
RGBrgb(175, 71, 203)
HSLhsl(287, 56%, 54%)
HSVhsv(287, 65%, 80%)
CMYKcmyk(13.8%, 65%, 0%, 20.4%)
CIE-LABlab(49.42, 61.14, -49.65)
CIE-LCHlch(49.42, 78.76, 320.92°)
OKLaboklab(59.04% 0.1567 -0.139)
OKLCHoklch(59.04% 0.209 318.4)
XYZxyz(30.7105, 17.9336, 58.3322)
Luminance0.1793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47CB #63CB47
analogous
#6D47CB #AF47CB #CB47A5
triadic
#AF47CB #CBAF47 #47CBAF
tetradic
#AF47CB #CB6D47 #63CB47 #47A5CB
square
#AF47CB #CB6D47 #63CB47 #47A5CB
split-complementary
#AF47CB #A5CB47 #47CB6D
monochromatic
#642176 #8D2FA6 #AF47CB #C477D8 #D8A6E6

Accessibility & contrast

On white

4.58
#AF47CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#AF47CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF47CB
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47CB#FFFFFF#000000##000000
##AF47CB1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#186FCF
Deuteranopia (green-blind)
#4E79C8
Tritanopia (blue-blind)
#AF5F83
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af47cb;
/* rgb */ color: rgb(175, 71, 203);
/* oklch */ color: oklch(59.0% 0.209 318.4);
Tailwind
colors: {
  custom: {
    50: '#ca81db',
    500: '#af47cb',
    950: '#000000',
  },
}
SCSS
$custom: #af47cb;
$custom-light: #ca81db;
$custom-dark: #000000;
JSON
{
  "hex": "#af47cb",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 287.273,
    "s": 55.932,
    "l": 53.725
  },
  "oklch": {
    "l": 0.59039,
    "c": 0.20947,
    "h": 318.4
  },
  "luminance": 0.17932
}

Semantic roles & 50–950 ramp

primary
#AF47CB
secondary
#A7D39B
accent
#DF4969
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF47CB

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

Preview Lab → · Contrast checker → · Palette generator →

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