#AB4CEB#AB4CEB

#AB4CEB is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 61.2% C 0.232 H 308.4°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AB4CEB
RGBrgb(171, 76, 235)
HSLhsl(276, 80%, 61%)
HSVhsv(276, 68%, 92%)
CMYKcmyk(27.2%, 67.7%, 0%, 7.8%)
CIE-LABlab(51.64, 64.67, -64.30)
CIE-LCHlch(51.64, 91.20, 315.17°)
OKLaboklab(61.16% 0.1442 -0.1821)
OKLCHoklch(61.16% 0.232 308.4)
XYZxyz(34.3714, 19.8255, 80.5972)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CEB #8CEB4C
analogous
#5B4CEB #AB4CEB #EB4CDB
triadic
#AB4CEB #EBAB4C #4CEBAB
tetradic
#AB4CEB #EB5B4C #8CEB4C #4CDBEB
square
#AB4CEB #EB5B4C #8CEB4C #4CDBEB
split-complementary
#AB4CEB #DBEB4C #4CEB5B
monochromatic
#6D13AA #9019E1 #AB4CEB #C583F1 #DFBAF7

Accessibility & contrast

On white

4.23
#AB4CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#AB4CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4CEB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CEB#FFFFFF#000000##000000
##AB4CEB1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F0
Deuteranopia (green-blind)
#297CE8
Tritanopia (blue-blind)
#A16F96
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab4ceb;
/* rgb */ color: rgb(171, 76, 235);
/* oklch */ color: oklch(61.2% 0.232 308.4);
Tailwind
colors: {
  custom: {
    50: '#c985f2',
    500: '#ab4ceb',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ceb;
$custom-light: #c985f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ceb",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 235
  },
  "hsl": {
    "h": 275.849,
    "s": 79.899,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61156,
    "c": 0.23229,
    "h": 308.4
  },
  "luminance": 0.19825
}

Semantic roles & 50–950 ramp

primary
#AB4CEB
secondary
#C4E7AB
accent
#DC095E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B17
muted
#827C85

Preview Lab

Preview with #AB4CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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