#AB4CE8#AB4CE8

#AB4CE8 is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 61.0% C 0.229 H 309.1°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AB4CE8
RGBrgb(171, 76, 232)
HSLhsl(277, 77%, 60%)
HSVhsv(277, 67%, 91%)
CMYKcmyk(26.3%, 67.2%, 0%, 9%)
CIE-LABlab(51.44, 64.03, -62.93)
CIE-LCHlch(51.44, 89.78, 315.50°)
OKLaboklab(60.95% 0.1446 -0.1781)
OKLCHoklch(60.95% 0.229 309.1)
XYZxyz(33.9416, 19.6536, 78.3338)
Luminance0.1965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CE8 #89E84C
analogous
#5D4CE8 #AB4CE8 #E84CD7
triadic
#AB4CE8 #E8AB4C #4CE8AB
tetradic
#AB4CE8 #E85D4C #89E84C #4CD7E8
square
#AB4CE8 #E85D4C #89E84C #4CD7E8
split-complementary
#AB4CE8 #D7E84C #4CE85D
monochromatic
#6C15A4 #901CDB #AB4CE8 #C482EF #DEB8F6

Accessibility & contrast

On white

4.26
#AB4CE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AB4CE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4CE8
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CE8#FFFFFF#000000##000000
##AB4CE81.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077ED
Deuteranopia (green-blind)
#2E7CE5
Tritanopia (blue-blind)
#A26E94
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab4ce8;
/* rgb */ color: rgb(171, 76, 232);
/* oklch */ color: oklch(61.0% 0.229 309.1);
Tailwind
colors: {
  custom: {
    50: '#c985f0',
    500: '#ab4ce8',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ce8;
$custom-light: #c985f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ce8",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 232
  },
  "hsl": {
    "h": 276.538,
    "s": 77.228,
    "l": 60.392
  },
  "oklch": {
    "l": 0.60954,
    "c": 0.22934,
    "h": 309.1
  },
  "luminance": 0.19653
}

Semantic roles & 50–950 ramp

primary
#AB4CE8
secondary
#C1E6AA
accent
#D90C5C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB4CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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