#AB4CE9#AB4CE9

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

Color values

HEX#AB4CE9
RGBrgb(171, 76, 233)
HSLhsl(276, 78%, 61%)
HSVhsv(276, 67%, 91%)
CMYKcmyk(26.6%, 67.4%, 0%, 8.6%)
CIE-LABlab(51.51, 64.24, -63.39)
CIE-LCHlch(51.51, 90.25, 315.39°)
OKLaboklab(61.02% 0.1445 -0.1794)
OKLCHoklch(61.02% 0.23 308.8)
XYZxyz(34.0840, 19.7106, 79.0840)
Luminance0.1971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CE9 #8AE94C
analogous
#5D4CE9 #AB4CE9 #E94CD8
triadic
#AB4CE9 #E9AB4C #4CE9AB
tetradic
#AB4CE9 #E95D4C #8AE94C #4CD8E9
square
#AB4CE9 #E95D4C #8AE94C #4CD8E9
split-complementary
#AB4CE9 #D8E94C #4CE95D
monochromatic
#6D14A6 #901BDD #AB4CE9 #C583F0 #DEB9F6

Accessibility & contrast

On white

4.25
#AB4CE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#AB4CE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4CE9
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CE9#FFFFFF#000000##000000
##AB4CE91.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077EE
Deuteranopia (green-blind)
#2D7CE6
Tritanopia (blue-blind)
#A26E95
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab4ce9;
/* rgb */ color: rgb(171, 76, 233);
/* oklch */ color: oklch(61.0% 0.230 308.8);
Tailwind
colors: {
  custom: {
    50: '#c985f1',
    500: '#ab4ce9',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ce9;
$custom-light: #c985f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ce9",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 233
  },
  "hsl": {
    "h": 276.306,
    "s": 78.109,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61021,
    "c": 0.23032,
    "h": 308.8
  },
  "luminance": 0.1971
}

Semantic roles & 50–950 ramp

primary
#AB4CE9
secondary
#C2E6AB
accent
#DA0B5D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB4CE9

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

Preview Lab → · Contrast checker → · Palette generator →

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