#AB4DCA#AB4DCA

#AB4DCA is a mid, vivid purple. Relative luminance 0.182; OKLCH L 59.2% C 0.199 H 316.8°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AB4DCA
RGBrgb(171, 77, 202)
HSLhsl(285, 54%, 55%)
HSVhsv(285, 62%, 79%)
CMYKcmyk(15.3%, 61.9%, 0%, 20.8%)
CIE-LABlab(49.78, 57.33, -48.53)
CIE-LCHlch(49.78, 75.11, 319.75°)
OKLaboklab(59.17% 0.1449 -0.1359)
OKLCHoklch(59.17% 0.199 316.8)
XYZxyz(30.1076, 18.2311, 57.7987)
Luminance0.1823 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4DCA #6CCA4D
analogous
#6D4DCA #AB4DCA #CA4DAB
triadic
#AB4DCA #CAAB4D #4DCAAB
tetradic
#AB4DCA #CA6D4D #6CCA4D #4DABCA
square
#AB4DCA #CA6D4D #6CCA4D #4DABCA
split-complementary
#AB4DCA #ABCA4D #4DCA6D
monochromatic
#642479 #8B32A8 #AB4DCA #C17CD8 #D8ABE6

Accessibility & contrast

On white

4.52
#AB4DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#AB4DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4DCA
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4DCA#FFFFFF#000000##000000
##AB4DCA1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2671CE
Deuteranopia (green-blind)
#4F79C7
Tritanopia (blue-blind)
#AA6385
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab4dca;
/* rgb */ color: rgb(171, 77, 202);
/* oklch */ color: oklch(59.2% 0.199 316.8);
Tailwind
colors: {
  custom: {
    50: '#c784db',
    500: '#ab4dca',
    950: '#000000',
  },
}
SCSS
$custom: #ab4dca;
$custom-light: #c784db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4dca",
  "rgb": {
    "r": 171,
    "g": 77,
    "b": 202
  },
  "hsl": {
    "h": 285.12,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.59166,
    "c": 0.19864,
    "h": 316.8
  },
  "luminance": 0.1823
}

Semantic roles & 50–950 ramp

primary
#AB4DCA
secondary
#ACD49F
accent
#DD4A6F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB4DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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