#AB71EC#AB71EC

#AB71EC is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.2% C 0.182 H 303.6°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#AB71EC
RGBrgb(171, 113, 236)
HSLhsl(268, 76%, 68%)
HSVhsv(268, 52%, 93%)
CMYKcmyk(27.5%, 52.1%, 0%, 7.5%)
CIE-LABlab(58.53, 46.56, -53.80)
CIE-LCHlch(58.53, 71.15, 310.87°)
OKLaboklab(66.19% 0.1006 -0.1514)
OKLCHoklch(66.19% 0.182 303.6)
XYZxyz(37.8367, 26.5244, 82.4670)
Luminance0.2652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB71EC #B2EC71
analogous
#7174EC #AB71EC #E971EC
triadic
#AB71EC #ECAB71 #71ECAB
tetradic
#AB71EC #EC7174 #B2EC71 #71ECE9
square
#AB71EC #EC7174 #B2EC71 #71ECE9
split-complementary
#AB71EC #ECE971 #74EC71
monochromatic
#6C1BC8 #8B3BE5 #AB71EC #CBA7F3 #EBDDFA

Accessibility & contrast

On white

3.33
#AB71EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#AB71EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB71EC
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB71EC#FFFFFF#000000##000000
##AB71EC1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#488BF0
Deuteranopia (green-blind)
#598DE9
Tritanopia (blue-blind)
#9F88A4
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ab71ec;
/* rgb */ color: rgb(171, 113, 236);
/* oklch */ color: oklch(66.2% 0.182 303.6);
Tailwind
colors: {
  custom: {
    50: '#c79bf3',
    500: '#ab71ec',
    950: '#000000',
  },
}
SCSS
$custom: #ab71ec;
$custom-light: #c79bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab71ec",
  "rgb": {
    "r": 171,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 268.293,
    "s": 76.398,
    "l": 68.431
  },
  "oklch": {
    "l": 0.66194,
    "c": 0.18181,
    "h": 303.6
  },
  "luminance": 0.26524
}

Semantic roles & 50–950 ramp

primary
#AB71EC
secondary
#DDEFCA
accent
#D90D79
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB71EC

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

Preview Lab → · Contrast checker → · Palette generator →

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