#AF71CB#AF71CB

#AF71CB is a light, vivid purple. Relative luminance 0.252; OKLCH L 64.8% C 0.145 H 314.6°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#AF71CB
RGBrgb(175, 113, 203)
HSLhsl(281, 46%, 62%)
HSVhsv(281, 44%, 80%)
CMYKcmyk(13.8%, 44.3%, 0%, 20.4%)
CIE-LABlab(57.31, 40.22, -37.17)
CIE-LCHlch(57.31, 54.76, 317.26°)
OKLaboklab(64.84% 0.1016 -0.103)
OKLCHoklch(64.84% 0.145 314.6)
XYZxyz(34.3621, 25.2369, 59.5494)
Luminance0.2524 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71CB #8DCB71
analogous
#8271CB #AF71CB #CB71BA
triadic
#AF71CB #CBAF71 #71CBAF
tetradic
#AF71CB #CB8271 #8DCB71 #71BACB
square
#AF71CB #CB8271 #8DCB71 #71BACB
split-complementary
#AF71CB #BACB71 #71CB82
monochromatic
#72348E #9644BB #AF71CB #C89EDB #E1CBEC

Accessibility & contrast

On white

3.47
#AF71CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#AF71CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71CB
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71CB#FFFFFF#000000##000000
##AF71CB1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6086CE
Deuteranopia (green-blind)
#708BC8
Tritanopia (blue-blind)
#AD7E94
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #af71cb;
/* rgb */ color: rgb(175, 113, 203);
/* oklch */ color: oklch(64.8% 0.145 314.6);
Tailwind
colors: {
  custom: {
    50: '#c89bdb',
    500: '#af71cb',
    950: '#000000',
  },
}
SCSS
$custom: #af71cb;
$custom-light: #c89bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#af71cb",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 281.333,
    "s": 46.392,
    "l": 61.961
  },
  "oklch": {
    "l": 0.64839,
    "c": 0.14468,
    "h": 314.6
  },
  "luminance": 0.25236
}

Semantic roles & 50–950 ramp

primary
#AF71CB
secondary
#C6DCBB
accent
#BA2C58
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #AF71CB

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

Preview Lab → · Contrast checker → · Palette generator →

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