#AF71BE#AF71BE

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

Color values

HEX#AF71BE
RGBrgb(175, 113, 190)
HSLhsl(288, 37%, 59%)
HSVhsv(288, 41%, 75%)
CMYKcmyk(7.9%, 40.5%, 0%, 25.5%)
CIE-LABlab(56.73, 37.51, -30.67)
CIE-LCHlch(56.73, 48.45, 320.73°)
OKLaboklab(64.21% 0.0992 -0.0843)
OKLCHoklch(64.21% 0.13 319.6)
XYZxyz(32.8774, 24.6430, 51.7299)
Luminance0.2464 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71BE #80BE71
analogous
#8971BE #AF71BE #BE71A7
triadic
#AF71BE #BEAF71 #71BEAF
tetradic
#AF71BE #BE8971 #80BE71 #71A7BE
square
#AF71BE #BE8971 #80BE71 #71A7BE
split-complementary
#AF71BE #A7BE71 #71BE89
monochromatic
#6F397C #944CA6 #AF71BE #C79BD1 #DEC5E4

Accessibility & contrast

On white

3.54
#AF71BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#AF71BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71BE
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71BE#FFFFFF#000000##000000
##AF71BE1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6684C1
Deuteranopia (green-blind)
#768ABC
Tritanopia (blue-blind)
#B07A8F
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #af71be;
/* rgb */ color: rgb(175, 113, 190);
/* oklch */ color: oklch(64.2% 0.130 319.6);
Tailwind
colors: {
  custom: {
    50: '#c89bd2',
    500: '#af71be',
    950: '#000000',
  },
}
SCSS
$custom: #af71be;
$custom-light: #c89bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#af71be",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 190
  },
  "hsl": {
    "h": 288.312,
    "s": 37.198,
    "l": 59.412
  },
  "oklch": {
    "l": 0.64214,
    "c": 0.13016,
    "h": 319.6
  },
  "luminance": 0.24642
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF71BE

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

Preview Lab → · Contrast checker → · Palette generator →

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