#AB71CB#AB71CB

#AB71CB is a light, vivid violet. Relative luminance 0.248; OKLCH L 64.4% C 0.143 H 312.6°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AB71CB
RGBrgb(171, 113, 203)
HSLhsl(279, 46%, 62%)
HSVhsv(279, 44%, 80%)
CMYKcmyk(15.8%, 44.3%, 0%, 20.4%)
CIE-LABlab(56.86, 39.05, -37.90)
CIE-LCHlch(56.86, 54.42, 315.86°)
OKLaboklab(64.41% 0.0968 -0.1052)
OKLCHoklch(64.41% 0.143 312.6)
XYZxyz(33.4774, 24.7807, 59.5079)
Luminance0.2478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB71CB #91CB71
analogous
#7E71CB #AB71CB #CB71BE
triadic
#AB71CB #CBAB71 #71CBAB
tetradic
#AB71CB #CB7E71 #91CB71 #71BECB
square
#AB71CB #CB7E71 #91CB71 #71BECB
split-complementary
#AB71CB #BECB71 #71CB7E
monochromatic
#6E348E #9044BB #AB71CB #C59EDB #E0CBEC

Accessibility & contrast

On white

3.53
#AB71CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#AB71CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB71CB
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB71CB#FFFFFF#000000##000000
##AB71CB1.003.535.965.96
#FFFFFF3.531.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F85CE
Deuteranopia (green-blind)
#6E8AC9
Tritanopia (blue-blind)
#A87E94
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ab71cb;
/* rgb */ color: rgb(171, 113, 203);
/* oklch */ color: oklch(64.4% 0.143 312.6);
Tailwind
colors: {
  custom: {
    50: '#c59bdb',
    500: '#ab71cb',
    950: '#000000',
  },
}
SCSS
$custom: #ab71cb;
$custom-light: #c59bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab71cb",
  "rgb": {
    "r": 171,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 278.667,
    "s": 46.392,
    "l": 61.961
  },
  "oklch": {
    "l": 0.64407,
    "c": 0.14294,
    "h": 312.6
  },
  "luminance": 0.2478
}

Semantic roles & 50–950 ramp

primary
#AB71CB
secondary
#C7DCBB
accent
#BA2C5E
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #AB71CB

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

Preview Lab → · Contrast checker → · Palette generator →

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