#AB4AE2#AB4AE2

#AB4AE2 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 60.3% C 0.226 H 310.7°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AB4AE2
RGBrgb(171, 74, 226)
HSLhsl(278, 72%, 59%)
HSVhsv(278, 67%, 89%)
CMYKcmyk(24.3%, 67.3%, 0%, 11.4%)
CIE-LABlab(50.74, 63.63, -60.67)
CIE-LCHlch(50.74, 87.92, 316.36°)
OKLaboklab(60.33% 0.1472 -0.1714)
OKLCHoklch(60.33% 0.226 310.7)
XYZxyz(32.9682, 19.0472, 73.8765)
Luminance0.1905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4AE2 #81E24A
analogous
#5F4AE2 #AB4AE2 #E24ACD
triadic
#AB4AE2 #E2AB4A #4AE2AB
tetradic
#AB4AE2 #E25F4A #81E24A #4ACDE2
square
#AB4AE2 #E25F4A #81E24A #4ACDE2
split-complementary
#AB4AE2 #CDE24A #4AE25F
monochromatic
#6B1999 #8F21CE #AB4AE2 #C37FEA #DCB3F3

Accessibility & contrast

On white

4.37
#AB4AE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#AB4AE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4AE2
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4AE2#FFFFFF#000000##000000
##AB4AE21.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E6
Deuteranopia (green-blind)
#357ADF
Tritanopia (blue-blind)
#A46A90
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab4ae2;
/* rgb */ color: rgb(171, 74, 226);
/* oklch */ color: oklch(60.3% 0.226 310.7);
Tailwind
colors: {
  custom: {
    50: '#c883ec',
    500: '#ab4ae2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ae2;
$custom-light: #c883ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ae2",
  "rgb": {
    "r": 171,
    "g": 74,
    "b": 226
  },
  "hsl": {
    "h": 278.289,
    "s": 72.381,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60328,
    "c": 0.22596,
    "h": 310.7
  },
  "luminance": 0.19046
}

Semantic roles & 50–950 ramp

primary
#AB4AE2
secondary
#BCE2A6
accent
#EF397B
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB4AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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