#AB71F7#AB71F7

#AB71F7 is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.8% C 0.195 H 301.3°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#AB71F7
RGBrgb(171, 113, 247)
HSLhsl(266, 89%, 71%)
HSVhsv(266, 54%, 97%)
CMYKcmyk(30.8%, 54.3%, 0%, 3.1%)
CIE-LABlab(59.14, 49.18, -58.93)
CIE-LCHlch(59.14, 76.76, 309.85°)
OKLaboklab(66.84% 0.1012 -0.1664)
OKLCHoklch(66.84% 0.195 301.3)
XYZxyz(39.4843, 27.1834, 91.1444)
Luminance0.2718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB71F7 #BDF771
analogous
#717AF7 #AB71F7 #EE71F7
triadic
#AB71F7 #F7AB71 #71F7AB
tetradic
#AB71F7 #F7717A #BDF771 #71F7EE
square
#AB71F7 #F7717A #BDF771 #71F7EE
split-complementary
#AB71F7 #F7EE71 #7AF771
monochromatic
#690DE1 #8937F4 #AB71F7 #CDABFA #EEE2FD

Accessibility & contrast

On white

3.26
#AB71F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#AB71F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB71F7
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB71F7#FFFFFF#000000##000000
##AB71F71.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C8EFB
Deuteranopia (green-blind)
#508EF4
Tritanopia (blue-blind)
#9C8BA9
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ab71f7;
/* rgb */ color: rgb(171, 113, 247);
/* oklch */ color: oklch(66.8% 0.195 301.3);
Tailwind
colors: {
  custom: {
    50: '#c89cfa',
    500: '#ab71f7',
    950: '#000000',
  },
}
SCSS
$custom: #ab71f7;
$custom-light: #c89cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab71f7",
  "rgb": {
    "r": 171,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 265.97,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.66843,
    "c": 0.19478,
    "h": 301.3
  },
  "luminance": 0.27184
}

Semantic roles & 50–950 ramp

primary
#AB71F7
secondary
#E4F4D0
accent
#E60082
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB71F7

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

Preview Lab → · Contrast checker → · Palette generator →

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