#AB71EB#AB71EB

#AB71EB is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.1% C 0.181 H 303.8°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#AB71EB
RGBrgb(171, 113, 235)
HSLhsl(269, 75%, 68%)
HSVhsv(269, 52%, 92%)
CMYKcmyk(27.2%, 51.9%, 0%, 7.8%)
CIE-LABlab(58.48, 46.32, -53.33)
CIE-LCHlch(58.48, 70.64, 310.98°)
OKLaboklab(66.14% 0.1005 -0.1501)
OKLCHoklch(66.14% 0.181 303.8)
XYZxyz(37.6918, 26.4664, 81.7040)
Luminance0.2647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB71EB #B1EB71
analogous
#7174EB #AB71EB #E871EB
triadic
#AB71EB #EBAB71 #71EBAB
tetradic
#AB71EB #EB7174 #B1EB71 #71EBE8
square
#AB71EB #EB7174 #B1EB71 #71EBE8
split-complementary
#AB71EB #EBE871 #74EB71
monochromatic
#6D1CC6 #8B3BE3 #AB71EB #CBA7F3 #EADCFA

Accessibility & contrast

On white

3.34
#AB71EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#AB71EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB71EB
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB71EB#FFFFFF#000000##000000
##AB71EB1.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#488BEF
Deuteranopia (green-blind)
#5A8DE8
Tritanopia (blue-blind)
#A088A3
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ab71eb;
/* rgb */ color: rgb(171, 113, 235);
/* oklch */ color: oklch(66.1% 0.181 303.8);
Tailwind
colors: {
  custom: {
    50: '#c79bf2',
    500: '#ab71eb',
    950: '#000000',
  },
}
SCSS
$custom: #ab71eb;
$custom-light: #c79bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab71eb",
  "rgb": {
    "r": 171,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 268.525,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.66136,
    "c": 0.18063,
    "h": 303.8
  },
  "luminance": 0.26466
}

Semantic roles & 50–950 ramp

primary
#AB71EB
secondary
#DDEEC9
accent
#D70E78
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB71EB

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

Preview Lab → · Contrast checker → · Palette generator →

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