#AB4CDC#AB4CDC

#AB4CDC is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 60.2% C 0.218 H 312.0°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#AB4CDC
RGBrgb(171, 76, 220)
HSLhsl(280, 67%, 58%)
HSVhsv(280, 65%, 86%)
CMYKcmyk(22.3%, 65.5%, 0%, 13.7%)
CIE-LABlab(50.68, 61.48, -57.37)
CIE-LCHlch(50.68, 84.09, 316.98°)
OKLaboklab(60.16% 0.1455 -0.1617)
OKLCHoklch(60.16% 0.218 312)
XYZxyz(32.2949, 18.9950, 69.6614)
Luminance0.1899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CDC #7DDC4C
analogous
#634CDC #AB4CDC #DC4CC5
triadic
#AB4CDC #DCAB4C #4CDCAB
tetradic
#AB4CDC #DC634C #7DDC4C #4CC5DC
square
#AB4CDC #DC634C #7DDC4C #4CC5DC
split-complementary
#AB4CDC #C5DC4C #4CDC63
monochromatic
#691C91 #8F26C4 #AB4CDC #C37FE6 #DBB2F0

Accessibility & contrast

On white

4.38
#AB4CDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#AB4CDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4CDC
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CDC#FFFFFF#000000##000000
##AB4CDC1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E0
Deuteranopia (green-blind)
#3E7BD9
Tritanopia (blue-blind)
#A5698E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab4cdc;
/* rgb */ color: rgb(171, 76, 220);
/* oklch */ color: oklch(60.2% 0.218 312.0);
Tailwind
colors: {
  custom: {
    50: '#c884e8',
    500: '#ab4cdc',
    950: '#000000',
  },
}
SCSS
$custom: #ab4cdc;
$custom-light: #c884e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4cdc",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 220
  },
  "hsl": {
    "h": 279.583,
    "s": 67.29,
    "l": 58.039
  },
  "oklch": {
    "l": 0.60164,
    "c": 0.21756,
    "h": 312
  },
  "luminance": 0.18994
}

Semantic roles & 50–950 ramp

primary
#AB4CDC
secondary
#B9DFA5
accent
#EA3E78
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB4CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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