#AF71D5#AF71D5

#AF71D5 is a light, vivid violet. Relative luminance 0.257; OKLCH L 65.3% C 0.156 H 311.4°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#AF71D5
RGBrgb(175, 113, 213)
HSLhsl(277, 54%, 64%)
HSVhsv(277, 47%, 84%)
CMYKcmyk(17.8%, 46.9%, 0%, 16.5%)
CIE-LABlab(57.78, 42.38, -42.08)
CIE-LCHlch(57.78, 59.72, 315.20°)
OKLaboklab(65.35% 0.1032 -0.1172)
OKLCHoklch(65.35% 0.156 311.4)
XYZxyz(35.5924, 25.7290, 66.0291)
Luminance0.2573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71D5 #97D571
analogous
#7D71D5 #AF71D5 #D571C9
triadic
#AF71D5 #D5AF71 #71D5AF
tetradic
#AF71D5 #D57D71 #97D571 #71C9D5
square
#AF71D5 #D57D71 #97D571 #71C9D5
split-complementary
#AF71D5 #C9D571 #71D57D
monochromatic
#732E9D #9442C7 #AF71D5 #CAA0E3 #E4CFF1

Accessibility & contrast

On white

3.42
#AF71D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#AF71D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71D5
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71D5#FFFFFF#000000##000000
##AF71D51.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A88D9
Deuteranopia (green-blind)
#6B8CD2
Tritanopia (blue-blind)
#AB8199
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af71d5;
/* rgb */ color: rgb(175, 113, 213);
/* oklch */ color: oklch(65.3% 0.156 311.4);
Tailwind
colors: {
  custom: {
    50: '#c99be2',
    500: '#af71d5',
    950: '#000000',
  },
}
SCSS
$custom: #af71d5;
$custom-light: #c99be2;
$custom-dark: #000000;
JSON
{
  "hex": "#af71d5",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 213
  },
  "hsl": {
    "h": 277.2,
    "s": 54.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.65347,
    "c": 0.15612,
    "h": 311.4
  },
  "luminance": 0.25728
}

Semantic roles & 50–950 ramp

primary
#AF71D5
secondary
#CDE2BF
accent
#C22460
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #AF71D5

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

Preview Lab → · Contrast checker → · Palette generator →

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