#AB4CDE#AB4CDE

#AB4CDE is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 60.3% C 0.220 H 311.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AB4CDE
RGBrgb(171, 76, 222)
HSLhsl(279, 69%, 58%)
HSVhsv(279, 66%, 87%)
CMYKcmyk(23%, 65.8%, 0%, 12.9%)
CIE-LABlab(50.81, 61.90, -58.30)
CIE-LCHlch(50.81, 85.04, 316.72°)
OKLaboklab(60.29% 0.1454 -0.1645)
OKLCHoklch(60.29% 0.22 311.5)
XYZxyz(32.5614, 19.1015, 71.0648)
Luminance0.1910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CDE #7FDE4C
analogous
#624CDE #AB4CDE #DE4CC8
triadic
#AB4CDE #DEAB4C #4CDEAB
tetradic
#AB4CDE #DE624C #7FDE4C #4CC8DE
square
#AB4CDE #DE624C #7FDE4C #4CC8DE
split-complementary
#AB4CDE #C8DE4C #4CDE62
monochromatic
#6A1B94 #8F25C8 #AB4CDE #C380E8 #DBB3F1

Accessibility & contrast

On white

4.36
#AB4CDE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#AB4CDE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4CDE
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CDE#FFFFFF#000000##000000
##AB4CDE1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E2
Deuteranopia (green-blind)
#3C7BDB
Tritanopia (blue-blind)
#A56A8F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab4cde;
/* rgb */ color: rgb(171, 76, 222);
/* oklch */ color: oklch(60.3% 0.220 311.5);
Tailwind
colors: {
  custom: {
    50: '#c884e9',
    500: '#ab4cde',
    950: '#000000',
  },
}
SCSS
$custom: #ab4cde;
$custom-light: #c884e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4cde",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 222
  },
  "hsl": {
    "h": 279.041,
    "s": 68.868,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60293,
    "c": 0.21952,
    "h": 311.5
  },
  "luminance": 0.19101
}

Semantic roles & 50–950 ramp

primary
#AB4CDE
secondary
#BAE0A6
accent
#EC3C79
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB4CDE

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

Preview Lab → · Contrast checker → · Palette generator →

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