#AB5DC2#AB5DC2

#AB5DC2 is a mid, vivid purple. Relative luminance 0.204; OKLCH L 60.9% C 0.166 H 318.1°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AB5DC2
RGBrgb(171, 93, 194)
HSLhsl(286, 45%, 56%)
HSVhsv(286, 52%, 76%)
CMYKcmyk(11.9%, 52.1%, 0%, 23.9%)
CIE-LABlab(52.27, 47.85, -39.98)
CIE-LCHlch(52.27, 62.36, 320.12°)
OKLaboklab(60.85% 0.1238 -0.1111)
OKLCHoklch(60.85% 0.166 318.1)
XYZxyz(30.4452, 20.3828, 53.3590)
Luminance0.2038 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5DC2 #74C25D
analogous
#795DC2 #AB5DC2 #C25DA7
triadic
#AB5DC2 #C2AB5D #5DC2AB
tetradic
#AB5DC2 #C2795D #74C25D #5DA7C2
square
#AB5DC2 #C2795D #74C25D #5DA7C2
split-complementary
#AB5DC2 #A7C25D #5DC279
monochromatic
#672D78 #8D3EA4 #AB5DC2 #C289D3 #D9B6E3

Accessibility & contrast

On white

4.14
#AB5DC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#AB5DC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5DC2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5DC2#FFFFFF#000000##000000
##AB5DC21.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4978C5
Deuteranopia (green-blind)
#617FBF
Tritanopia (blue-blind)
#AB6C87
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab5dc2;
/* rgb */ color: rgb(171, 93, 194);
/* oklch */ color: oklch(60.9% 0.166 318.1);
Tailwind
colors: {
  custom: {
    50: '#c68ed5',
    500: '#ab5dc2',
    950: '#000000',
  },
}
SCSS
$custom: #ab5dc2;
$custom-light: #c68ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5dc2",
  "rgb": {
    "r": 171,
    "g": 93,
    "b": 194
  },
  "hsl": {
    "h": 286.337,
    "s": 45.291,
    "l": 56.275
  },
  "oklch": {
    "l": 0.6085,
    "c": 0.16628,
    "h": 318.1
  },
  "luminance": 0.20382
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB5DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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