#AB4EE4#AB4EE4

#AB4EE4 is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.9% C 0.223 H 309.8°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AB4EE4
RGBrgb(171, 78, 228)
HSLhsl(277, 74%, 60%)
HSVhsv(277, 66%, 89%)
CMYKcmyk(25%, 65.8%, 0%, 10.6%)
CIE-LABlab(51.51, 62.28, -60.57)
CIE-LCHlch(51.51, 86.88, 315.80°)
OKLaboklab(60.92% 0.1428 -0.1711)
OKLCHoklch(60.92% 0.223 309.8)
XYZxyz(33.5198, 19.7088, 75.4221)
Luminance0.1971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EE4 #87E44E
analogous
#604EE4 #AB4EE4 #E44ED2
triadic
#AB4EE4 #E4AB4E #4EE4AB
tetradic
#AB4EE4 #E4604E #87E44E #4ED2E4
square
#AB4EE4 #E4604E #87E44E #4ED2E4
split-complementary
#AB4EE4 #D2E44E #4EE460
monochromatic
#6C189F #9020D4 #AB4EE4 #C483EC #DDB8F4

Accessibility & contrast

On white

4.25
#AB4EE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#AB4EE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4EE4
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EE4#FFFFFF#000000##000000
##AB4EE41.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E9
Deuteranopia (green-blind)
#377CE1
Tritanopia (blue-blind)
#A36D93
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab4ee4;
/* rgb */ color: rgb(171, 78, 228);
/* oklch */ color: oklch(60.9% 0.223 309.8);
Tailwind
colors: {
  custom: {
    50: '#c886ed',
    500: '#ab4ee4',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ee4;
$custom-light: #c886ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ee4",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 228
  },
  "hsl": {
    "h": 277.2,
    "s": 73.529,
    "l": 60
  },
  "oklch": {
    "l": 0.60917,
    "c": 0.22287,
    "h": 309.8
  },
  "luminance": 0.19708
}

Semantic roles & 50–950 ramp

primary
#AB4EE4
secondary
#C0E4AA
accent
#F0387E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB4EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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