#AF47BD#AF47BD

#AF47BD is a mid, vivid purple. Relative luminance 0.173; OKLCH L 58.2% C 0.197 H 322.8°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AF47BD
RGBrgb(175, 71, 189)
HSLhsl(293, 47%, 51%)
HSVhsv(293, 62%, 74%)
CMYKcmyk(7.4%, 62.4%, 0%, 25.9%)
CIE-LABlab(48.63, 58.48, -42.80)
CIE-LCHlch(48.63, 72.47, 323.80°)
OKLaboklab(58.22% 0.1566 -0.119)
OKLCHoklch(58.22% 0.197 322.8)
XYZxyz(29.1168, 17.2961, 49.9391)
Luminance0.1729 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47BD #55BD47
analogous
#7447BD #AF47BD #BD4790
triadic
#AF47BD #BDAF47 #47BDAF
tetradic
#AF47BD #BD7447 #55BD47 #4790BD
square
#AF47BD #BD7447 #55BD47 #4790BD
split-complementary
#AF47BD #90BD47 #47BD74
monochromatic
#5E2465 #873492 #AF47BD #C374CD #D6A1DD

Accessibility & contrast

On white

4.71
#AF47BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AF47BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47BD
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47BD#FFFFFF#000000##FFFFFF
##AF47BD1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6CC1
Deuteranopia (green-blind)
#5778BA
Tritanopia (blue-blind)
#B1597C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af47bd;
/* rgb */ color: rgb(175, 71, 189);
/* oklch */ color: oklch(58.2% 0.197 322.8);
Tailwind
colors: {
  custom: {
    50: '#ca81d1',
    500: '#af47bd',
    950: '#000000',
  },
}
SCSS
$custom: #af47bd;
$custom-light: #ca81d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af47bd",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 189
  },
  "hsl": {
    "h": 292.881,
    "s": 47.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58219,
    "c": 0.19671,
    "h": 322.8
  },
  "luminance": 0.17295
}

Semantic roles & 50–950 ramp

primary
#AF47BD
secondary
#9CCA96
accent
#D75161
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF47BD

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

Preview Lab → · Contrast checker → · Palette generator →

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