#AF47BB#AF47BB

#AF47BB is a mid, vivid purple. Relative luminance 0.172; OKLCH L 58.1% C 0.195 H 323.4°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AF47BB
RGBrgb(175, 71, 187)
HSLhsl(294, 46%, 51%)
HSVhsv(294, 62%, 73%)
CMYKcmyk(6.4%, 62%, 0%, 26.7%)
CIE-LABlab(48.52, 58.11, -41.81)
CIE-LCHlch(48.52, 71.59, 324.26°)
OKLaboklab(58.11% 0.1565 -0.1161)
OKLCHoklch(58.11% 0.195 323.4)
XYZxyz(28.9012, 17.2099, 48.8036)
Luminance0.1721 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47BB #53BB47
analogous
#7547BB #AF47BB #BB478D
triadic
#AF47BB #BBAF47 #47BBAF
tetradic
#AF47BB #BB7547 #53BB47 #478DBB
square
#AF47BB #BB7547 #53BB47 #478DBB
split-complementary
#AF47BB #8DBB47 #47BB75
monochromatic
#5D2563 #863590 #AF47BB #C274CC #D6A0DC

Accessibility & contrast

On white

4.73
#AF47BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#AF47BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47BB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47BB#FFFFFF#000000##FFFFFF
##AF47BB1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306BBF
Deuteranopia (green-blind)
#5877B8
Tritanopia (blue-blind)
#B2587B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af47bb;
/* rgb */ color: rgb(175, 71, 187);
/* oklch */ color: oklch(58.1% 0.195 323.4);
Tailwind
colors: {
  custom: {
    50: '#ca81d0',
    500: '#af47bb',
    950: '#000000',
  },
}
SCSS
$custom: #af47bb;
$custom-light: #ca81d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af47bb",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 187
  },
  "hsl": {
    "h": 293.793,
    "s": 46.032,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58106,
    "c": 0.19492,
    "h": 323.4
  },
  "luminance": 0.17208
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF47BB

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

Preview Lab → · Contrast checker → · Palette generator →

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