#AB71E2#AB71E2

#AB71E2 is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.6% C 0.170 H 306.0°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#AB71E2
RGBrgb(171, 113, 226)
HSLhsl(271, 66%, 66%)
HSVhsv(271, 50%, 89%)
CMYKcmyk(24.3%, 50%, 0%, 11.4%)
CIE-LABlab(58.00, 44.22, -49.07)
CIE-LCHlch(58.00, 66.05, 312.02°)
OKLaboklab(65.63% 0.0998 -0.1376)
OKLCHoklch(65.63% 0.17 306)
XYZxyz(36.4243, 25.9594, 75.0286)
Luminance0.2596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB71E2 #A8E271
analogous
#7371E2 #AB71E2 #E271E1
triadic
#AB71E2 #E2AB71 #71E2AB
tetradic
#AB71E2 #E27371 #A8E271 #71E1E2
square
#AB71E2 #E27371 #A8E271 #71E1E2
split-complementary
#AB71E2 #E1E271 #71E273
monochromatic
#6E25B4 #8D3ED8 #AB71E2 #C9A4EC #E7D7F7

Accessibility & contrast

On white

3.39
#AB71E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#AB71E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB71E2
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB71E2#FFFFFF#000000##000000
##AB71E21.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5089E6
Deuteranopia (green-blind)
#618CDF
Tritanopia (blue-blind)
#A2859F
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ab71e2;
/* rgb */ color: rgb(171, 113, 226);
/* oklch */ color: oklch(65.6% 0.170 306.0);
Tailwind
colors: {
  custom: {
    50: '#c69beb',
    500: '#ab71e2',
    950: '#000000',
  },
}
SCSS
$custom: #ab71e2;
$custom-light: #c69beb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab71e2",
  "rgb": {
    "r": 171,
    "g": 113,
    "b": 226
  },
  "hsl": {
    "h": 270.796,
    "s": 66.082,
    "l": 66.471
  },
  "oklch": {
    "l": 0.65626,
    "c": 0.16998,
    "h": 306
  },
  "luminance": 0.25959
}

Semantic roles & 50–950 ramp

primary
#AB71E2
secondary
#D7EAC5
accent
#CE1870
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AB71E2

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

Preview Lab → · Contrast checker → · Palette generator →

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