#AF47BF#AF47BF

#AF47BF is a mid, vivid purple. Relative luminance 0.174; OKLCH L 58.3% C 0.199 H 322.1°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AF47BF
RGBrgb(175, 71, 191)
HSLhsl(292, 48%, 51%)
HSVhsv(292, 63%, 75%)
CMYKcmyk(8.4%, 62.8%, 0%, 25.1%)
CIE-LABlab(48.74, 58.85, -43.79)
CIE-LCHlch(48.74, 73.36, 323.34°)
OKLaboklab(58.33% 0.1567 -0.1219)
OKLCHoklch(58.33% 0.199 322.1)
XYZxyz(29.3354, 17.3835, 51.0903)
Luminance0.1738 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47BF #57BF47
analogous
#7347BF #AF47BF #BF4793
triadic
#AF47BF #BFAF47 #47BFAF
tetradic
#AF47BF #BF7347 #57BF47 #4793BF
square
#AF47BF #BF7347 #57BF47 #4793BF
split-complementary
#AF47BF #93BF47 #47BF73
monochromatic
#5F2468 #883495 #AF47BF #C374CF #D6A2DF

Accessibility & contrast

On white

4.69
#AF47BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#AF47BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47BF
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47BF#FFFFFF#000000##FFFFFF
##AF47BF1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6CC3
Deuteranopia (green-blind)
#5678BC
Tritanopia (blue-blind)
#B15A7D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af47bf;
/* rgb */ color: rgb(175, 71, 191);
/* oklch */ color: oklch(58.3% 0.199 322.1);
Tailwind
colors: {
  custom: {
    50: '#ca81d3',
    500: '#af47bf',
    950: '#000000',
  },
}
SCSS
$custom: #af47bf;
$custom-light: #ca81d3;
$custom-dark: #000000;
JSON
{
  "hex": "#af47bf",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 191
  },
  "hsl": {
    "h": 292,
    "s": 48.387,
    "l": 51.373
  },
  "oklch": {
    "l": 0.58333,
    "c": 0.19852,
    "h": 322.1
  },
  "luminance": 0.17382
}

Semantic roles & 50–950 ramp

primary
#AF47BF
secondary
#9ECB96
accent
#D85062
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF47BF

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

Preview Lab → · Contrast checker → · Palette generator →

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