#AB71CD#AB71CD

#AB71CD is a light, vivid violet. Relative luminance 0.249; OKLCH L 64.5% C 0.145 H 312.0°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#AB71CD
RGBrgb(171, 113, 205)
HSLhsl(278, 48%, 62%)
HSVhsv(278, 45%, 80%)
CMYKcmyk(16.6%, 44.9%, 0%, 19.6%)
CIE-LABlab(56.95, 39.49, -38.88)
CIE-LCHlch(56.95, 55.42, 315.44°)
OKLaboklab(64.51% 0.0971 -0.108)
OKLCHoklch(64.51% 0.145 312)
XYZxyz(33.7172, 24.8766, 60.7712)
Luminance0.2488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB71CD #93CD71
analogous
#7D71CD #AB71CD #CD71C1
triadic
#AB71CD #CDAB71 #71CDAB
tetradic
#AB71CD #CD7D71 #93CD71 #71C1CD
square
#AB71CD #CD7D71 #93CD71 #71C1CD
split-complementary
#AB71CD #C1CD71 #71CD7D
monochromatic
#6E3391 #9044BD #AB71CD #C69EDD #E1CCED

Accessibility & contrast

On white

3.51
#AB71CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#AB71CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB71CD
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB71CD#FFFFFF#000000##000000
##AB71CD1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab71cd;
/* rgb */ color: rgb(171, 113, 205);
/* oklch */ color: oklch(64.5% 0.145 312.0);
Tailwind
colors: {
  custom: {
    50: '#c69bdc',
    500: '#ab71cd',
    950: '#000000',
  },
}
SCSS
$custom: #ab71cd;
$custom-light: #c69bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab71cd",
  "rgb": {
    "r": 171,
    "g": 113,
    "b": 205
  },
  "hsl": {
    "h": 277.826,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.64508,
    "c": 0.14527,
    "h": 312
  },
  "luminance": 0.24876
}

Semantic roles & 50–950 ramp

primary
#AB71CD
secondary
#C9DEBC
accent
#BB2A60
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #AB71CD

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

Preview Lab → · Contrast checker → · Palette generator →

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