#AB5BC2#AB5BC2

#AB5BC2 is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.6% C 0.170 H 318.3°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AB5BC2
RGBrgb(171, 91, 194)
HSLhsl(287, 46%, 56%)
HSVhsv(287, 53%, 76%)
CMYKcmyk(11.9%, 53.1%, 0%, 23.9%)
CIE-LABlab(51.88, 48.88, -40.59)
CIE-LCHlch(51.88, 63.54, 320.29°)
OKLaboklab(60.56% 0.1265 -0.1128)
OKLCHoklch(60.56% 0.17 318.3)
XYZxyz(30.2720, 20.0363, 53.3013)
Luminance0.2004 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5BC2 #72C25B
analogous
#775BC2 #AB5BC2 #C25BA5
triadic
#AB5BC2 #C2AB5B #5BC2AB
tetradic
#AB5BC2 #C2775B #72C25B #5BA5C2
square
#AB5BC2 #C2775B #72C25B #5BA5C2
split-complementary
#AB5BC2 #A5C25B #5BC277
monochromatic
#662C77 #8C3DA3 #AB5BC2 #C288D3 #D9B4E3

Accessibility & contrast

On white

4.19
#AB5BC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#AB5BC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5BC2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5BC2#FFFFFF#000000##000000
##AB5BC21.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4676C5
Deuteranopia (green-blind)
#607EBF
Tritanopia (blue-blind)
#AB6A86
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab5bc2;
/* rgb */ color: rgb(171, 91, 194);
/* oklch */ color: oklch(60.6% 0.170 318.3);
Tailwind
colors: {
  custom: {
    50: '#c68dd5',
    500: '#ab5bc2',
    950: '#000000',
  },
}
SCSS
$custom: #ab5bc2;
$custom-light: #c68dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5bc2",
  "rgb": {
    "r": 171,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 286.602,
    "s": 45.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60563,
    "c": 0.16951,
    "h": 318.3
  },
  "luminance": 0.20035
}

Semantic roles & 50–950 ramp

primary
#AB5BC2
secondary
#B1D2A7
accent
#D55270
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AB5BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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