#AB71F8#AB71F8

#AB71F8 is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.9% C 0.196 H 301.1°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#AB71F8
RGBrgb(171, 113, 248)
HSLhsl(266, 91%, 71%)
HSVhsv(266, 54%, 97%)
CMYKcmyk(31%, 54.4%, 0%, 2.7%)
CIE-LABlab(59.20, 49.42, -59.39)
CIE-LCHlch(59.20, 77.27, 309.76°)
OKLaboklab(66.9% 0.1012 -0.1678)
OKLCHoklch(66.9% 0.196 301.1)
XYZxyz(39.6390, 27.2453, 91.9593)
Luminance0.2725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB71F8 #BEF871
analogous
#717AF8 #AB71F8 #EF71F8
triadic
#AB71F8 #F8AB71 #71F8AB
tetradic
#AB71F8 #F8717A #BEF871 #71F8EF
square
#AB71F8 #F8717A #BEF871 #71F8EF
split-complementary
#AB71F8 #F8EF71 #7AF871
monochromatic
#680BE3 #8837F5 #AB71F8 #CEABFB #EEE2FE

Accessibility & contrast

On white

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

On black

6.45
#AB71F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB71F8
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB71F8#FFFFFF#000000##000000
##AB71F81.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8EFD
Deuteranopia (green-blind)
#4F8EF5
Tritanopia (blue-blind)
#9C8CAA
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ab71f8;
/* rgb */ color: rgb(171, 113, 248);
/* oklch */ color: oklch(66.9% 0.196 301.1);
Tailwind
colors: {
  custom: {
    50: '#c89cfb',
    500: '#ab71f8',
    950: '#000000',
  },
}
SCSS
$custom: #ab71f8;
$custom-light: #c89cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab71f8",
  "rgb": {
    "r": 171,
    "g": 113,
    "b": 248
  },
  "hsl": {
    "h": 265.778,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.66904,
    "c": 0.19595,
    "h": 301.1
  },
  "luminance": 0.27245
}

Semantic roles & 50–950 ramp

primary
#AB71F8
secondary
#E5F5D0
accent
#E60083
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB71F8

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

Preview Lab → · Contrast checker → · Palette generator →

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