#AF47BC#AF47BC

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

Color values

HEX#AF47BC
RGBrgb(175, 71, 188)
HSLhsl(293, 47%, 51%)
HSVhsv(293, 62%, 74%)
CMYKcmyk(6.9%, 62.2%, 0%, 26.3%)
CIE-LABlab(48.58, 58.29, -42.31)
CIE-LCHlch(48.58, 72.03, 324.03°)
OKLaboklab(58.16% 0.1566 -0.1176)
OKLCHoklch(58.16% 0.196 323.1)
XYZxyz(29.0087, 17.2528, 49.3694)
Luminance0.1725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47BC #54BC47
analogous
#7447BC #AF47BC #BC478F
triadic
#AF47BC #BCAF47 #47BCAF
tetradic
#AF47BC #BC7447 #54BC47 #478FBC
square
#AF47BC #BC7447 #54BC47 #478FBC
split-complementary
#AF47BC #8FBC47 #47BC74
monochromatic
#5D2464 #873591 #AF47BC #C374CC #D6A1DD

Accessibility & contrast

On white

4.72
#AF47BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#AF47BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47BC
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47BC#FFFFFF#000000##FFFFFF
##AF47BC1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6CC0
Deuteranopia (green-blind)
#5878B9
Tritanopia (blue-blind)
#B2597B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af47bc;
/* rgb */ color: rgb(175, 71, 188);
/* oklch */ color: oklch(58.2% 0.196 323.1);
Tailwind
colors: {
  custom: {
    50: '#ca81d1',
    500: '#af47bc',
    950: '#000000',
  },
}
SCSS
$custom: #af47bc;
$custom-light: #ca81d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af47bc",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 188
  },
  "hsl": {
    "h": 293.333,
    "s": 46.614,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58162,
    "c": 0.19581,
    "h": 323.1
  },
  "luminance": 0.17251
}

Semantic roles & 50–950 ramp

primary
#AF47BC
secondary
#9BC995
accent
#D65260
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF47BC

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

Preview Lab → · Contrast checker → · Palette generator →

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