#AB5CC2#AB5CC2

#AB5CC2 is a mid, vivid purple. Relative luminance 0.202; OKLCH L 60.7% C 0.168 H 318.2°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AB5CC2
RGBrgb(171, 92, 194)
HSLhsl(286, 46%, 56%)
HSVhsv(286, 53%, 76%)
CMYKcmyk(11.9%, 52.6%, 0%, 23.9%)
CIE-LABlab(52.07, 48.37, -40.29)
CIE-LCHlch(52.07, 62.95, 320.21°)
OKLaboklab(60.71% 0.1251 -0.112)
OKLCHoklch(60.71% 0.168 318.2)
XYZxyz(30.3580, 20.2084, 53.3299)
Luminance0.2021 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CC2 #73C25C
analogous
#785CC2 #AB5CC2 #C25CA6
triadic
#AB5CC2 #C2AB5C #5CC2AB
tetradic
#AB5CC2 #C2785C #73C25C #5CA6C2
square
#AB5CC2 #C2785C #73C25C #5CA6C2
split-complementary
#AB5CC2 #A6C25C #5CC278
monochromatic
#662D77 #8C3DA4 #AB5CC2 #C289D3 #D9B5E3

Accessibility & contrast

On white

4.17
#AB5CC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#AB5CC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CC2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CC2#FFFFFF#000000##000000
##AB5CC21.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4877C5
Deuteranopia (green-blind)
#617FBF
Tritanopia (blue-blind)
#AB6B86
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab5cc2;
/* rgb */ color: rgb(171, 92, 194);
/* oklch */ color: oklch(60.7% 0.168 318.2);
Tailwind
colors: {
  custom: {
    50: '#c68dd5',
    500: '#ab5cc2',
    950: '#000000',
  },
}
SCSS
$custom: #ab5cc2;
$custom-light: #c68dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5cc2",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 194
  },
  "hsl": {
    "h": 286.471,
    "s": 45.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60706,
    "c": 0.1679,
    "h": 318.2
  },
  "luminance": 0.20207
}

Semantic roles & 50–950 ramp

primary
#AB5CC2
secondary
#B1D2A8
accent
#D55370
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AB5CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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