#AB5DCC#AB5DCC

#AB5DCC is a mid, vivid purple. Relative luminance 0.208; OKLCH L 61.4% C 0.177 H 314.8°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#AB5DCC
RGBrgb(171, 93, 204)
HSLhsl(282, 52%, 58%)
HSVhsv(282, 54%, 80%)
CMYKcmyk(16.2%, 54.4%, 0%, 20%)
CIE-LABlab(52.78, 49.93, -44.90)
CIE-LCHlch(52.78, 67.15, 318.04°)
OKLaboklab(61.4% 0.1247 -0.1254)
OKLCHoklch(61.4% 0.177 314.8)
XYZxyz(31.6063, 20.8472, 59.4740)
Luminance0.2085 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5DCC #7ECC5D
analogous
#735DCC #AB5DCC #CC5DB5
triadic
#AB5DCC #CCAB5D #5DCCAB
tetradic
#AB5DCC #CC735D #7ECC5D #5DB5CC
square
#AB5DCC #CC735D #7ECC5D #5DB5CC
split-complementary
#AB5DCC #B5CC5D #5DCC73
monochromatic
#6A2A85 #8F38B3 #AB5DCC #C38CDB #DBBAE9

Accessibility & contrast

On white

4.06
#AB5DCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#AB5DCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5DCC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5DCC#FFFFFF#000000##000000
##AB5DCC1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4179D0
Deuteranopia (green-blind)
#5C80C9
Tritanopia (blue-blind)
#A96F8C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab5dcc;
/* rgb */ color: rgb(171, 93, 204);
/* oklch */ color: oklch(61.4% 0.177 314.8);
Tailwind
colors: {
  custom: {
    50: '#c68edc',
    500: '#ab5dcc',
    950: '#000000',
  },
}
SCSS
$custom: #ab5dcc;
$custom-light: #c68edc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5dcc",
  "rgb": {
    "r": 171,
    "g": 93,
    "b": 204
  },
  "hsl": {
    "h": 282.162,
    "s": 52.113,
    "l": 58.235
  },
  "oklch": {
    "l": 0.61396,
    "c": 0.17679,
    "h": 314.8
  },
  "luminance": 0.20846
}

Semantic roles & 50–950 ramp

primary
#AB5DCC
secondary
#B9D9AC
accent
#DC4C77
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB5DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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