#AF71CC#AF71CC

#AF71CC is a light, vivid purple. Relative luminance 0.253; OKLCH L 64.9% C 0.146 H 314.3°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AF71CC
RGBrgb(175, 113, 204)
HSLhsl(281, 47%, 62%)
HSVhsv(281, 45%, 80%)
CMYKcmyk(14.2%, 44.6%, 0%, 20%)
CIE-LABlab(57.35, 40.43, -37.66)
CIE-LCHlch(57.35, 55.26, 317.03°)
OKLaboklab(64.89% 0.1018 -0.1044)
OKLCHoklch(64.89% 0.146 314.3)
XYZxyz(34.4817, 25.2847, 60.1790)
Luminance0.2528 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71CC #8ECC71
analogous
#8271CC #AF71CC #CC71BC
triadic
#AF71CC #CCAF71 #71CCAF
tetradic
#AF71CC #CC8271 #8ECC71 #71BCCC
square
#AF71CC #CC8271 #8ECC71 #71BCCC
split-complementary
#AF71CC #BCCC71 #71CC82
monochromatic
#72338F #9644BC #AF71CC #C89EDC #E2CBEC

Accessibility & contrast

On white

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

On black

6.06
#AF71CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71CC
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71CC#FFFFFF#000000##000000
##AF71CC1.003.476.066.06
#FFFFFF3.471.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F86CF
Deuteranopia (green-blind)
#708BC9
Tritanopia (blue-blind)
#AD7E95
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #af71cc;
/* rgb */ color: rgb(175, 113, 204);
/* oklch */ color: oklch(64.9% 0.146 314.3);
Tailwind
colors: {
  custom: {
    50: '#c89bdc',
    500: '#af71cc',
    950: '#000000',
  },
}
SCSS
$custom: #af71cc;
$custom-light: #c89bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#af71cc",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 280.879,
    "s": 47.15,
    "l": 62.157
  },
  "oklch": {
    "l": 0.64889,
    "c": 0.14582,
    "h": 314.3
  },
  "luminance": 0.25284
}

Semantic roles & 50–950 ramp

primary
#AF71CC
secondary
#C6DDBC
accent
#BA2B59
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #AF71CC

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

Preview Lab → · Contrast checker → · Palette generator →

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