#AB5DEC#AB5DEC

#AB5DEC is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.3% C 0.211 H 306.4°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AB5DEC
RGBrgb(171, 93, 236)
HSLhsl(273, 79%, 65%)
HSVhsv(273, 61%, 93%)
CMYKcmyk(27.5%, 60.6%, 0%, 7.5%)
CIE-LABlab(54.60, 56.94, -60.10)
CIE-LCHlch(54.60, 82.79, 313.46°)
OKLaboklab(63.31% 0.1253 -0.1698)
OKLCHoklch(63.31% 0.211 306.4)
XYZxyz(35.8461, 22.5431, 81.8035)
Luminance0.2254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5DEC #9EEC5D
analogous
#635DEC #AB5DEC #EC5DE6
triadic
#AB5DEC #ECAB5D #5DECAB
tetradic
#AB5DEC #EC635D #9EEC5D #5DE6EC
square
#AB5DEC #EC635D #9EEC5D #5DE6EC
split-complementary
#AB5DEC #E6EC5D #5DEC63
monochromatic
#6F16B9 #8F26E6 #AB5DEC #C794F2 #E4CBF9

Accessibility & contrast

On white

3.81
#AB5DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#AB5DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5DEC
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5DEC#FFFFFF#000000##000000
##AB5DEC1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1180F1
Deuteranopia (green-blind)
#4183E9
Tritanopia (blue-blind)
#A07A9C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ab5dec;
/* rgb */ color: rgb(171, 93, 236);
/* oklch */ color: oklch(63.3% 0.211 306.4);
Tailwind
colors: {
  custom: {
    50: '#c88ff3',
    500: '#ab5dec',
    950: '#000000',
  },
}
SCSS
$custom: #ab5dec;
$custom-light: #c88ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5dec",
  "rgb": {
    "r": 171,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 272.727,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.63309,
    "c": 0.21105,
    "h": 306.4
  },
  "luminance": 0.22543
}

Semantic roles & 50–950 ramp

primary
#AB5DEC
secondary
#D0EBBA
accent
#DB0A69
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AB5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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