#AF71BD#AF71BD

#AF71BD is a light, vivid purple. Relative luminance 0.246; OKLCH L 64.2% C 0.129 H 320.1°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#AF71BD
RGBrgb(175, 113, 189)
HSLhsl(289, 37%, 59%)
HSVhsv(289, 40%, 74%)
CMYKcmyk(7.4%, 40.2%, 0%, 25.9%)
CIE-LABlab(56.68, 37.31, -30.17)
CIE-LCHlch(56.68, 47.98, 321.04°)
OKLaboklab(64.17% 0.099 -0.0829)
OKLCHoklch(64.17% 0.129 320.1)
XYZxyz(32.7685, 24.5994, 51.1563)
Luminance0.2460 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71BD #7FBD71
analogous
#8971BD #AF71BD #BD71A5
triadic
#AF71BD #BDAF71 #71BDAF
tetradic
#AF71BD #BD8971 #7FBD71 #71A5BD
square
#AF71BD #BD8971 #7FBD71 #71A5BD
split-complementary
#AF71BD #A5BD71 #71BD89
monochromatic
#6F397B #944CA4 #AF71BD #C79BD0 #DEC5E4

Accessibility & contrast

On white

3.55
#AF71BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#AF71BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71BD
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71BD#FFFFFF#000000##000000
##AF71BD1.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6784C0
Deuteranopia (green-blind)
#778ABB
Tritanopia (blue-blind)
#B07A8E
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #af71bd;
/* rgb */ color: rgb(175, 113, 189);
/* oklch */ color: oklch(64.2% 0.129 320.1);
Tailwind
colors: {
  custom: {
    50: '#c89bd1',
    500: '#af71bd',
    950: '#000000',
  },
}
SCSS
$custom: #af71bd;
$custom-light: #c89bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#af71bd",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 288.947,
    "s": 36.538,
    "l": 59.216
  },
  "oklch": {
    "l": 0.64168,
    "c": 0.12907,
    "h": 320.1
  },
  "luminance": 0.24598
}

Semantic roles & 50–950 ramp

primary
#AF71BD
secondary
#BCD4B6
accent
#CD5B70
background
#FCF9FC
surface
#F8F2F9
border
#D1CCD2
text
#130E14
muted
#827E82

Preview Lab

Preview with #AF71BD

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

Preview Lab → · Contrast checker → · Palette generator →

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