#AB5CCC#AB5CCC

#AB5CCC is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.3% C 0.178 H 314.9°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AB5CCC
RGBrgb(171, 92, 204)
HSLhsl(282, 52%, 58%)
HSVhsv(282, 55%, 80%)
CMYKcmyk(16.2%, 54.9%, 0%, 20%)
CIE-LABlab(52.59, 50.44, -45.20)
CIE-LCHlch(52.59, 67.73, 318.13°)
OKLaboklab(61.26% 0.126 -0.1262)
OKLCHoklch(61.26% 0.178 314.9)
XYZxyz(31.5191, 20.6728, 59.4449)
Luminance0.2067 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CCC #7DCC5C
analogous
#735CCC #AB5CCC #CC5CB5
triadic
#AB5CCC #CCAB5C #5CCCAB
tetradic
#AB5CCC #CC735C #7DCC5C #5CB5CC
square
#AB5CCC #CC735C #7DCC5C #5CB5CC
split-complementary
#AB5CCC #B5CC5C #5CCC73
monochromatic
#692984 #8F38B3 #AB5CCC #C38BDB #DBB9E9

Accessibility & contrast

On white

4.09
#AB5CCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#AB5CCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CCC
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CCC#FFFFFF#000000##000000
##AB5CCC1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4079D0
Deuteranopia (green-blind)
#5B80C9
Tritanopia (blue-blind)
#A96E8B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab5ccc;
/* rgb */ color: rgb(171, 92, 204);
/* oklch */ color: oklch(61.3% 0.178 314.9);
Tailwind
colors: {
  custom: {
    50: '#c68ddc',
    500: '#ab5ccc',
    950: '#000000',
  },
}
SCSS
$custom: #ab5ccc;
$custom-light: #c68ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5ccc",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 204
  },
  "hsl": {
    "h": 282.321,
    "s": 52.336,
    "l": 58.039
  },
  "oklch": {
    "l": 0.61255,
    "c": 0.17835,
    "h": 314.9
  },
  "luminance": 0.20672
}

Semantic roles & 50–950 ramp

primary
#AB5CCC
secondary
#B9D8AC
accent
#DC4C76
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB5CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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