#AB6DEC#AB6DEC

#AB6DEC is a light, vivid violet. Relative luminance 0.257; OKLCH L 65.6% C 0.188 H 304.2°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#AB6DEC
RGBrgb(171, 109, 236)
HSLhsl(269, 77%, 68%)
HSVhsv(269, 54%, 93%)
CMYKcmyk(27.5%, 53.8%, 0%, 7.5%)
CIE-LABlab(57.70, 48.70, -55.12)
CIE-LCHlch(57.70, 73.55, 311.46°)
OKLaboklab(65.58% 0.1057 -0.1553)
OKLCHoklch(65.58% 0.188 304.2)
XYZxyz(37.4002, 25.6515, 82.3215)
Luminance0.2565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB6DEC #AEEC6D
analogous
#6D6FEC #AB6DEC #EA6DEC
triadic
#AB6DEC #ECAB6D #6DECAB
tetradic
#AB6DEC #EC6D6F #AEEC6D #6DECEA
square
#AB6DEC #EC6D6F #AEEC6D #6DECEA
split-complementary
#AB6DEC #ECEA6D #6FEC6D
monochromatic
#6D1AC5 #8C37E5 #AB6DEC #CAA3F3 #E9D9FA

Accessibility & contrast

On white

3.43
#AB6DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#AB6DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB6DEC
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB6DEC#FFFFFF#000000##000000
##AB6DEC1.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4089F0
Deuteranopia (green-blind)
#558BE9
Tritanopia (blue-blind)
#A085A2
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ab6dec;
/* rgb */ color: rgb(171, 109, 236);
/* oklch */ color: oklch(65.6% 0.188 304.2);
Tailwind
colors: {
  custom: {
    50: '#c799f3',
    500: '#ab6dec',
    950: '#000000',
  },
}
SCSS
$custom: #ab6dec;
$custom-light: #c799f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab6dec",
  "rgb": {
    "r": 171,
    "g": 109,
    "b": 236
  },
  "hsl": {
    "h": 269.291,
    "s": 76.97,
    "l": 67.647
  },
  "oklch": {
    "l": 0.65583,
    "c": 0.18786,
    "h": 304.2
  },
  "luminance": 0.25651
}

Semantic roles & 50–950 ramp

primary
#AB6DEC
secondary
#DBEEC7
accent
#D90C75
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AB6DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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