#AB4CD7#AB4CD7

#AB4CD7 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 59.8% C 0.213 H 313.3°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AB4CD7
RGBrgb(171, 76, 215)
HSLhsl(281, 63%, 57%)
HSVhsv(281, 65%, 84%)
CMYKcmyk(20.5%, 64.7%, 0%, 15.7%)
CIE-LABlab(50.37, 60.44, -55.02)
CIE-LCHlch(50.37, 81.73, 317.69°)
OKLaboklab(59.85% 0.1458 -0.1548)
OKLCHoklch(59.85% 0.213 313.3)
XYZxyz(31.6426, 18.7340, 66.2260)
Luminance0.1873 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CD7 #78D74C
analogous
#664CD7 #AB4CD7 #D74CBE
triadic
#AB4CD7 #D7AB4C #4CD7AB
tetradic
#AB4CD7 #D7664C #78D74C #4CBED7
square
#AB4CD7 #D7664C #78D74C #4CBED7
split-complementary
#AB4CD7 #BED74C #4CD766
monochromatic
#681F8A #8E2ABC #AB4CD7 #C27EE2 #DAB0ED

Accessibility & contrast

On white

4.42
#AB4CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#AB4CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4CD7
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CD7#FFFFFF#000000##000000
##AB4CD71.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DB
Deuteranopia (green-blind)
#437AD4
Tritanopia (blue-blind)
#A7678B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab4cd7;
/* rgb */ color: rgb(171, 76, 215);
/* oklch */ color: oklch(59.8% 0.213 313.3);
Tailwind
colors: {
  custom: {
    50: '#c884e4',
    500: '#ab4cd7',
    950: '#000000',
  },
}
SCSS
$custom: #ab4cd7;
$custom-light: #c884e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4cd7",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 215
  },
  "hsl": {
    "h": 281.007,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.59845,
    "c": 0.21267,
    "h": 313.3
  },
  "luminance": 0.18733
}

Semantic roles & 50–950 ramp

primary
#AB4CD7
secondary
#B5DCA3
accent
#E64176
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB4CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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