#AB71CC#AB71CC

#AB71CC is a light, vivid violet. Relative luminance 0.248; OKLCH L 64.5% C 0.144 H 312.3°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AB71CC
RGBrgb(171, 113, 204)
HSLhsl(278, 47%, 62%)
HSVhsv(278, 45%, 80%)
CMYKcmyk(16.2%, 44.6%, 0%, 20%)
CIE-LABlab(56.91, 39.27, -38.39)
CIE-LCHlch(56.91, 54.92, 315.65°)
OKLaboklab(64.46% 0.097 -0.1066)
OKLCHoklch(64.46% 0.144 312.3)
XYZxyz(33.5969, 24.8285, 60.1376)
Luminance0.2483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB71CC #92CC71
analogous
#7E71CC #AB71CC #CC71BF
triadic
#AB71CC #CCAB71 #71CCAB
tetradic
#AB71CC #CC7E71 #92CC71 #71BFCC
square
#AB71CC #CC7E71 #92CC71 #71BFCC
split-complementary
#AB71CC #BFCC71 #71CC7E
monochromatic
#6E338F #9044BC #AB71CC #C69EDC #E0CBEC

Accessibility & contrast

On white

3.52
#AB71CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#AB71CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB71CC
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB71CC#FFFFFF#000000##000000
##AB71CC1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E85CF
Deuteranopia (green-blind)
#6D8AC9
Tritanopia (blue-blind)
#A87F95
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ab71cc;
/* rgb */ color: rgb(171, 113, 204);
/* oklch */ color: oklch(64.5% 0.144 312.3);
Tailwind
colors: {
  custom: {
    50: '#c69bdc',
    500: '#ab71cc',
    950: '#000000',
  },
}
SCSS
$custom: #ab71cc;
$custom-light: #c69bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab71cc",
  "rgb": {
    "r": 171,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 278.242,
    "s": 47.15,
    "l": 62.157
  },
  "oklch": {
    "l": 0.64457,
    "c": 0.1441,
    "h": 312.3
  },
  "luminance": 0.24828
}

Semantic roles & 50–950 ramp

primary
#AB71CC
secondary
#C8DDBC
accent
#BA2B5F
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #AB71CC

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

Preview Lab → · Contrast checker → · Palette generator →

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