#AB4AEB#AB4AEB

#AB4AEB is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.9% C 0.235 H 308.6°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AB4AEB
RGBrgb(171, 74, 235)
HSLhsl(276, 80%, 61%)
HSVhsv(276, 69%, 92%)
CMYKcmyk(27.2%, 68.5%, 0%, 7.8%)
CIE-LABlab(51.33, 65.54, -64.80)
CIE-LCHlch(51.33, 92.17, 315.33°)
OKLaboklab(60.93% 0.1463 -0.1835)
OKLCHoklch(60.93% 0.235 308.6)
XYZxyz(34.2357, 19.5542, 80.5520)
Luminance0.1955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4AEB #8AEB4A
analogous
#5A4AEB #AB4AEB #EB4ADB
triadic
#AB4AEB #EBAB4A #4AEBAB
tetradic
#AB4AEB #EB5A4A #8AEB4A #4ADBEB
square
#AB4AEB #EB5A4A #8AEB4A #4ADBEB
split-complementary
#AB4AEB #DBEB4A #4AEB5A
monochromatic
#6D13A8 #9019DF #AB4AEB #C581F1 #DEB8F7

Accessibility & contrast

On white

4.28
#AB4AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#AB4AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4AEB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4AEB#FFFFFF#000000##000000
##AB4AEB1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F0
Deuteranopia (green-blind)
#267BE8
Tritanopia (blue-blind)
#A16E95
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab4aeb;
/* rgb */ color: rgb(171, 74, 235);
/* oklch */ color: oklch(60.9% 0.235 308.6);
Tailwind
colors: {
  custom: {
    50: '#c984f2',
    500: '#ab4aeb',
    950: '#000000',
  },
}
SCSS
$custom: #ab4aeb;
$custom-light: #c984f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4aeb",
  "rgb": {
    "r": 171,
    "g": 74,
    "b": 235
  },
  "hsl": {
    "h": 276.149,
    "s": 80.1,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60935,
    "c": 0.23471,
    "h": 308.6
  },
  "luminance": 0.19554
}

Semantic roles & 50–950 ramp

primary
#AB4AEB
secondary
#C2E7AA
accent
#DC095D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB4AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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