#AB71D2#AB71D2

#AB71D2 is a light, vivid violet. Relative luminance 0.251; OKLCH L 64.8% C 0.151 H 310.4°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#AB71D2
RGBrgb(171, 113, 210)
HSLhsl(276, 52%, 63%)
HSVhsv(276, 46%, 82%)
CMYKcmyk(18.6%, 46.2%, 0%, 17.6%)
CIE-LABlab(57.19, 40.59, -41.34)
CIE-LCHlch(57.19, 57.94, 314.48°)
OKLaboklab(64.77% 0.0979 -0.1151)
OKLCHoklch(64.77% 0.151 310.4)
XYZxyz(34.3304, 25.1219, 64.0008)
Luminance0.2512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB71D2 #98D271
analogous
#7A71D2 #AB71D2 #D271C9
triadic
#AB71D2 #D2AB71 #71D2AB
tetradic
#AB71D2 #D27A71 #98D271 #71C9D2
square
#AB71D2 #D27A71 #98D271 #71C9D2
split-complementary
#AB71D2 #C9D271 #71D27A
monochromatic
#6E3098 #9043C3 #AB71D2 #C69FE1 #E2CEEF

Accessibility & contrast

On white

3.49
#AB71D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#AB71D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB71D2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB71D2#FFFFFF#000000##000000
##AB71D21.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B87D5
Deuteranopia (green-blind)
#6A8ACF
Tritanopia (blue-blind)
#A68098
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ab71d2;
/* rgb */ color: rgb(171, 113, 210);
/* oklch */ color: oklch(64.8% 0.151 310.4);
Tailwind
colors: {
  custom: {
    50: '#c69be0',
    500: '#ab71d2',
    950: '#000000',
  },
}
SCSS
$custom: #ab71d2;
$custom-light: #c69be0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab71d2",
  "rgb": {
    "r": 171,
    "g": 113,
    "b": 210
  },
  "hsl": {
    "h": 275.876,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.64765,
    "c": 0.15111,
    "h": 310.4
  },
  "luminance": 0.25121
}

Semantic roles & 50–950 ramp

primary
#AB71D2
secondary
#CCE1BE
accent
#BF2664
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #AB71D2

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

Preview Lab → · Contrast checker → · Palette generator →

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