#AB5CEA#AB5CEA

#AB5CEA is a light, highly saturated violet. Relative luminance 0.223; OKLCH L 63.0% C 0.210 H 307.0°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#AB5CEA
RGBrgb(171, 92, 234)
HSLhsl(273, 77%, 64%)
HSVhsv(273, 61%, 92%)
CMYKcmyk(26.9%, 60.7%, 0%, 8.2%)
CIE-LABlab(54.29, 56.99, -59.46)
CIE-LCHlch(54.29, 82.36, 313.78°)
OKLaboklab(63.05% 0.1266 -0.1679)
OKLCHoklch(63.05% 0.21 307)
XYZxyz(35.4699, 22.2531, 80.2527)
Luminance0.2225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CEA #9BEA5C
analogous
#645CEA #AB5CEA #EA5CE2
triadic
#AB5CEA #EAAB5C #5CEAAB
tetradic
#AB5CEA #EA645C #9BEA5C #5CE2EA
square
#AB5CEA #EA645C #9BEA5C #5CE2EA
split-complementary
#AB5CEA #E2EA5C #5CEA64
monochromatic
#6F17B4 #8F26E3 #AB5CEA #C792F1 #E3C8F8

Accessibility & contrast

On white

3.85
#AB5CEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#AB5CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CEA
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CEA#FFFFFF#000000##000000
##AB5CEA1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#127FEE
Deuteranopia (green-blind)
#4282E7
Tritanopia (blue-blind)
#A1789B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ab5cea;
/* rgb */ color: rgb(171, 92, 234);
/* oklch */ color: oklch(63.0% 0.210 307.0);
Tailwind
colors: {
  custom: {
    50: '#c88ef1',
    500: '#ab5cea',
    950: '#000000',
  },
}
SCSS
$custom: #ab5cea;
$custom-light: #c88ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5cea",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 273.38,
    "s": 77.174,
    "l": 63.922
  },
  "oklch": {
    "l": 0.6305,
    "c": 0.2103,
    "h": 307
  },
  "luminance": 0.22253
}

Semantic roles & 50–950 ramp

primary
#AB5CEA
secondary
#CEEAB8
accent
#D90C67
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D17
muted
#827D85

Preview Lab

Preview with #AB5CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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