#AB4CD2#AB4CD2

#AB4CD2 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.5% C 0.208 H 314.6°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AB4CD2
RGBrgb(171, 76, 210)
HSLhsl(283, 60%, 56%)
HSVhsv(283, 64%, 82%)
CMYKcmyk(18.6%, 63.8%, 0%, 17.6%)
CIE-LABlab(50.07, 59.41, -52.64)
CIE-LCHlch(50.07, 79.38, 318.46°)
OKLaboklab(59.53% 0.146 -0.1479)
OKLCHoklch(59.53% 0.208 314.6)
XYZxyz(31.0100, 18.4810, 62.8939)
Luminance0.1848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CD2 #73D24C
analogous
#684CD2 #AB4CD2 #D24CB6
triadic
#AB4CD2 #D2AB4C #4CD2AB
tetradic
#AB4CD2 #D2684C #73D24C #4CB6D2
square
#AB4CD2 #D2684C #73D24C #4CB6D2
split-complementary
#AB4CD2 #B6D24C #4CD268
monochromatic
#662183 #8C2DB4 #AB4CD2 #C27DDE #D9AEEB

Accessibility & contrast

On white

4.47
#AB4CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#AB4CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4CD2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CD2#FFFFFF#000000##000000
##AB4CD21.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1272D6
Deuteranopia (green-blind)
#487ACF
Tritanopia (blue-blind)
#A86588
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab4cd2;
/* rgb */ color: rgb(171, 76, 210);
/* oklch */ color: oklch(59.5% 0.208 314.6);
Tailwind
colors: {
  custom: {
    50: '#c784e0',
    500: '#ab4cd2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4cd2;
$custom-light: #c784e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4cd2",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 210
  },
  "hsl": {
    "h": 282.537,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.59532,
    "c": 0.20779,
    "h": 314.6
  },
  "luminance": 0.1848
}

Semantic roles & 50–950 ramp

primary
#AB4CD2
secondary
#B1D9A1
accent
#E34573
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB4CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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