#AB4EE5#AB4EE5

#AB4EE5 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 61.0% C 0.224 H 309.6°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AB4EE5
RGBrgb(171, 78, 229)
HSLhsl(277, 74%, 60%)
HSVhsv(277, 66%, 90%)
CMYKcmyk(25.3%, 65.9%, 0%, 10.2%)
CIE-LABlab(51.57, 62.50, -61.03)
CIE-LCHlch(51.57, 87.35, 315.68°)
OKLaboklab(60.98% 0.1427 -0.1725)
OKLCHoklch(60.98% 0.224 309.6)
XYZxyz(33.6591, 19.7645, 76.1553)
Luminance0.1976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EE5 #88E54E
analogous
#604EE5 #AB4EE5 #E54ED3
triadic
#AB4EE5 #E5AB4E #4EE5AB
tetradic
#AB4EE5 #E5604E #88E54E #4ED3E5
square
#AB4EE5 #E5604E #88E54E #4ED3E5
split-complementary
#AB4EE5 #D3E54E #4EE560
monochromatic
#6C18A1 #901FD6 #AB4EE5 #C483ED #DEB9F5

Accessibility & contrast

On white

4.24
#AB4EE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#AB4EE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4EE5
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EE5#FFFFFF#000000##000000
##AB4EE51.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077EA
Deuteranopia (green-blind)
#367CE2
Tritanopia (blue-blind)
#A36E93
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab4ee5;
/* rgb */ color: rgb(171, 78, 229);
/* oklch */ color: oklch(61.0% 0.224 309.6);
Tailwind
colors: {
  custom: {
    50: '#c886ee',
    500: '#ab4ee5',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ee5;
$custom-light: #c886ee;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ee5",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 229
  },
  "hsl": {
    "h": 276.954,
    "s": 74.384,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60983,
    "c": 0.22386,
    "h": 309.6
  },
  "luminance": 0.19764
}

Semantic roles & 50–950 ramp

primary
#AB4EE5
secondary
#C1E4AA
accent
#D70F5C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB4EE5

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

Preview Lab → · Contrast checker → · Palette generator →

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