#AB4EE8#AB4EE8

#AB4EE8 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 61.2% C 0.227 H 308.9°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AB4EE8
RGBrgb(171, 78, 232)
HSLhsl(276, 77%, 61%)
HSVhsv(276, 66%, 91%)
CMYKcmyk(26.3%, 66.4%, 0%, 9%)
CIE-LABlab(51.76, 63.14, -62.41)
CIE-LCHlch(51.76, 88.78, 315.33°)
OKLaboklab(61.18% 0.1424 -0.1766)
OKLCHoklch(61.18% 0.227 308.9)
XYZxyz(34.0815, 19.9335, 78.3804)
Luminance0.1993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EE8 #8BE84E
analogous
#5E4EE8 #AB4EE8 #E84ED8
triadic
#AB4EE8 #E8AB4E #4EE8AB
tetradic
#AB4EE8 #E85E4E #8BE84E #4ED8E8
square
#AB4EE8 #E85E4E #8BE84E #4ED8E8
split-complementary
#AB4EE8 #D8E84E #4EE85E
monochromatic
#6D16A6 #901DDC #AB4EE8 #C584EF #DEBAF6

Accessibility & contrast

On white

4.21
#AB4EE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#AB4EE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4EE8
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EE8#FFFFFF#000000##000000
##AB4EE81.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078ED
Deuteranopia (green-blind)
#317DE5
Tritanopia (blue-blind)
#A26F95
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab4ee8;
/* rgb */ color: rgb(171, 78, 232);
/* oklch */ color: oklch(61.2% 0.227 308.9);
Tailwind
colors: {
  custom: {
    50: '#c886f0',
    500: '#ab4ee8',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ee8;
$custom-light: #c886f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ee8",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 232
  },
  "hsl": {
    "h": 276.234,
    "s": 77,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61182,
    "c": 0.22684,
    "h": 308.9
  },
  "luminance": 0.19933
}

Semantic roles & 50–950 ramp

primary
#AB4EE8
secondary
#C3E6AC
accent
#D90C5D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB4EE8

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

Preview Lab → · Contrast checker → · Palette generator →

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