#AB71DF#AB71DF

#AB71DF is a light, vivid violet. Relative luminance 0.258; OKLCH L 65.5% C 0.166 H 306.7°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AB71DF
RGBrgb(171, 113, 223)
HSLhsl(272, 63%, 66%)
HSVhsv(272, 49%, 87%)
CMYKcmyk(23.3%, 49.3%, 0%, 12.5%)
CIE-LABlab(57.84, 43.53, -47.63)
CIE-LCHlch(57.84, 64.53, 312.42°)
OKLaboklab(65.46% 0.0995 -0.1334)
OKLCHoklch(65.46% 0.166 306.7)
XYZxyz(36.0163, 25.7962, 72.8795)
Luminance0.2580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB71DF #A5DF71
analogous
#7471DF #AB71DF #DF71DC
triadic
#AB71DF #DFAB71 #71DFAB
tetradic
#AB71DF #DF7471 #A5DF71 #71DCDF
square
#AB71DF #DF7471 #A5DF71 #71DCDF
split-complementary
#AB71DF #DCDF71 #71DF74
monochromatic
#6E27AE #8D3FD4 #AB71DF #C9A3EA #E6D5F6

Accessibility & contrast

On white

3.41
#AB71DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#AB71DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB71DF
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB71DF#FFFFFF#000000##000000
##AB71DF1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5289E3
Deuteranopia (green-blind)
#638BDC
Tritanopia (blue-blind)
#A3849E
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ab71df;
/* rgb */ color: rgb(171, 113, 223);
/* oklch */ color: oklch(65.5% 0.166 306.7);
Tailwind
colors: {
  custom: {
    50: '#c69be9',
    500: '#ab71df',
    950: '#000000',
  },
}
SCSS
$custom: #ab71df;
$custom-light: #c69be9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab71df",
  "rgb": {
    "r": 171,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 271.636,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.6546,
    "c": 0.16644,
    "h": 306.7
  },
  "luminance": 0.25796
}

Semantic roles & 50–950 ramp

primary
#AB71DF
secondary
#D5E8C4
accent
#CB1B6E
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AB71DF

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

Preview Lab → · Contrast checker → · Palette generator →

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