#AB5DCA#AB5DCA

#AB5DCA is a mid, vivid purple. Relative luminance 0.208; OKLCH L 61.3% C 0.175 H 315.5°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AB5DCA
RGBrgb(171, 93, 202)
HSLhsl(283, 51%, 58%)
HSVhsv(283, 54%, 79%)
CMYKcmyk(15.3%, 54%, 0%, 20.8%)
CIE-LABlab(52.68, 49.51, -43.92)
CIE-LCHlch(52.68, 66.18, 318.42°)
OKLaboklab(61.29% 0.1245 -0.1225)
OKLCHoklch(61.29% 0.175 315.5)
XYZxyz(31.3680, 20.7519, 58.2188)
Luminance0.2075 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5DCA #7CCA5D
analogous
#745DCA #AB5DCA #CA5DB2
triadic
#AB5DCA #CAAB5D #5DCAAB
tetradic
#AB5DCA #CA745D #7CCA5D #5DB2CA
square
#AB5DCA #CA745D #7CCA5D #5DB2CA
split-complementary
#AB5DCA #B2CA5D #5DCA74
monochromatic
#692B82 #8E3AB0 #AB5DCA #C38BD9 #DBB9E8

Accessibility & contrast

On white

4.08
#AB5DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#AB5DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5DCA
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5DCA#FFFFFF#000000##000000
##AB5DCA1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4379CE
Deuteranopia (green-blind)
#5D80C7
Tritanopia (blue-blind)
#A96E8B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab5dca;
/* rgb */ color: rgb(171, 93, 202);
/* oklch */ color: oklch(61.3% 0.175 315.5);
Tailwind
colors: {
  custom: {
    50: '#c68eda',
    500: '#ab5dca',
    950: '#000000',
  },
}
SCSS
$custom: #ab5dca;
$custom-light: #c68eda;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5dca",
  "rgb": {
    "r": 171,
    "g": 93,
    "b": 202
  },
  "hsl": {
    "h": 282.936,
    "s": 50.698,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61285,
    "c": 0.17468,
    "h": 315.5
  },
  "luminance": 0.20751
}

Semantic roles & 50–950 ramp

primary
#AB5DCA
secondary
#B8D7AC
accent
#DA4E76
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB5DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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