#AB4DE2#AB4DE2

#AB4DE2 is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.7% C 0.222 H 310.4°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AB4DE2
RGBrgb(171, 77, 226)
HSLhsl(278, 72%, 59%)
HSVhsv(278, 66%, 89%)
CMYKcmyk(24.3%, 65.9%, 0%, 11.4%)
CIE-LABlab(51.22, 62.30, -59.90)
CIE-LCHlch(51.22, 86.43, 316.12°)
OKLaboklab(60.67% 0.144 -0.1692)
OKLCHoklch(60.67% 0.222 310.4)
XYZxyz(33.1733, 19.4574, 73.9449)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4DE2 #84E24D
analogous
#604DE2 #AB4DE2 #E24DCF
triadic
#AB4DE2 #E2AB4D #4DE2AB
tetradic
#AB4DE2 #E2604D #84E24D #4DCFE2
square
#AB4DE2 #E2604D #84E24D #4DCFE2
split-complementary
#AB4DE2 #CFE24D #4DE260
monochromatic
#6B199B #9022D0 #AB4DE2 #C482EB #DDB6F3

Accessibility & contrast

On white

4.29
#AB4DE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#AB4DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4DE2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4DE2#FFFFFF#000000##000000
##AB4DE21.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E6
Deuteranopia (green-blind)
#387CDF
Tritanopia (blue-blind)
#A46C91
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab4de2;
/* rgb */ color: rgb(171, 77, 226);
/* oklch */ color: oklch(60.7% 0.222 310.4);
Tailwind
colors: {
  custom: {
    50: '#c885ec',
    500: '#ab4de2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4de2;
$custom-light: #c885ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4de2",
  "rgb": {
    "r": 171,
    "g": 77,
    "b": 226
  },
  "hsl": {
    "h": 277.852,
    "s": 71.981,
    "l": 59.412
  },
  "oklch": {
    "l": 0.6067,
    "c": 0.22217,
    "h": 310.4
  },
  "luminance": 0.19457
}

Semantic roles & 50–950 ramp

primary
#AB4DE2
secondary
#BEE2A8
accent
#EF397C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB4DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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