#AB4CE5#AB4CE5

#AB4CE5 is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.8% C 0.226 H 309.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AB4CE5
RGBrgb(171, 76, 229)
HSLhsl(277, 75%, 60%)
HSVhsv(277, 67%, 90%)
CMYKcmyk(25.3%, 66.8%, 0%, 10.2%)
CIE-LABlab(51.25, 63.39, -61.55)
CIE-LCHlch(51.25, 88.35, 315.84°)
OKLaboklab(60.75% 0.1448 -0.174)
OKLCHoklch(60.75% 0.226 309.8)
XYZxyz(33.5191, 19.4846, 76.1087)
Luminance0.1948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CE5 #86E54C
analogous
#5F4CE5 #AB4CE5 #E54CD2
triadic
#AB4CE5 #E5AB4C #4CE5AB
tetradic
#AB4CE5 #E55F4C #86E54C #4CD2E5
square
#AB4CE5 #E55F4C #86E54C #4CD2E5
split-complementary
#AB4CE5 #D2E54C #4CE55F
monochromatic
#6C179F #901FD5 #AB4CE5 #C481ED #DDB7F5

Accessibility & contrast

On white

4.29
#AB4CE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#AB4CE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4CE5
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CE5#FFFFFF#000000##000000
##AB4CE51.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076EA
Deuteranopia (green-blind)
#337CE2
Tritanopia (blue-blind)
#A36C93
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab4ce5;
/* rgb */ color: rgb(171, 76, 229);
/* oklch */ color: oklch(60.8% 0.226 309.8);
Tailwind
colors: {
  custom: {
    50: '#c885ee',
    500: '#ab4ce5',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ce5;
$custom-light: #c885ee;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ce5",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 229
  },
  "hsl": {
    "h": 277.255,
    "s": 74.634,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60753,
    "c": 0.22639,
    "h": 309.8
  },
  "luminance": 0.19484
}

Semantic roles & 50–950 ramp

primary
#AB4CE5
secondary
#BFE4A9
accent
#F1377D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB4CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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