#AB71F5#AB71F5

#AB71F5 is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.7% C 0.192 H 301.7°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#AB71F5
RGBrgb(171, 113, 245)
HSLhsl(266, 87%, 70%)
HSVhsv(266, 54%, 96%)
CMYKcmyk(30.2%, 53.9%, 0%, 3.9%)
CIE-LABlab(59.03, 48.70, -58.01)
CIE-LCHlch(59.03, 75.74, 310.02°)
OKLaboklab(66.72% 0.1011 -0.1637)
OKLCHoklch(66.72% 0.192 301.7)
XYZxyz(39.1773, 27.0607, 89.5277)
Luminance0.2706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB71F5 #BBF571
analogous
#7179F5 #AB71F5 #ED71F5
triadic
#AB71F5 #F5AB71 #71F5AB
tetradic
#AB71F5 #F57179 #BBF571 #71F5ED
square
#AB71F5 #F57179 #BBF571 #71F5ED
split-complementary
#AB71F5 #F5ED71 #79F571
monochromatic
#6910DC #8938F1 #AB71F5 #CDAAF9 #EEE2FD

Accessibility & contrast

On white

3.28
#AB71F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#AB71F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB71F5
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB71F5#FFFFFF#000000##000000
##AB71F51.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8DF9
Deuteranopia (green-blind)
#528DF2
Tritanopia (blue-blind)
#9D8BA8
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ab71f5;
/* rgb */ color: rgb(171, 113, 245);
/* oklch */ color: oklch(66.7% 0.192 301.7);
Tailwind
colors: {
  custom: {
    50: '#c89bf9',
    500: '#ab71f5',
    950: '#000000',
  },
}
SCSS
$custom: #ab71f5;
$custom-light: #c89bf9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab71f5",
  "rgb": {
    "r": 171,
    "g": 113,
    "b": 245
  },
  "hsl": {
    "h": 266.364,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.66723,
    "c": 0.19243,
    "h": 301.7
  },
  "luminance": 0.27061
}

Semantic roles & 50–950 ramp

primary
#AB71F5
secondary
#E3F3CF
accent
#E30280
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB71F5

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

Preview Lab → · Contrast checker → · Palette generator →

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