#AB7DEC#AB7DEC

#AB7DEC is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.1% C 0.163 H 301.3°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#AB7DEC
RGBrgb(171, 125, 236)
HSLhsl(265, 74%, 71%)
HSVhsv(265, 47%, 93%)
CMYKcmyk(27.5%, 47%, 0%, 7.5%)
CIE-LABlab(61.12, 39.99, -49.70)
CIE-LCHlch(61.12, 63.79, 308.82°)
OKLaboklab(68.12% 0.0849 -0.1395)
OKLCHoklch(68.12% 0.163 301.3)
XYZxyz(39.2651, 29.3812, 82.9431)
Luminance0.2938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB7DEC #BEEC7D
analogous
#7D86EC #AB7DEC #E37DEC
triadic
#AB7DEC #ECAB7D #7DECAB
tetradic
#AB7DEC #EC7D86 #BEEC7D #7DECE3
square
#AB7DEC #EC7D86 #BEEC7D #7DECE3
split-complementary
#AB7DEC #ECE37D #86EC7D
monochromatic
#681ED0 #8848E4 #AB7DEC #CEB2F4 #EEE4FB

Accessibility & contrast

On white

3.05
#AB7DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.88
#AB7DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB7DEC
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB7DEC#FFFFFF#000000##000000
##AB7DEC1.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C93F0
Deuteranopia (green-blind)
#6793E9
Tritanopia (blue-blind)
#9F91A9
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ab7dec;
/* rgb */ color: rgb(171, 125, 236);
/* oklch */ color: oklch(68.1% 0.163 301.3);
Tailwind
colors: {
  custom: {
    50: '#c6a3f2',
    500: '#ab7dec',
    950: '#000000',
  },
}
SCSS
$custom: #ab7dec;
$custom-light: #c6a3f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab7dec",
  "rgb": {
    "r": 171,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 264.865,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.68117,
    "c": 0.16327,
    "h": 301.3
  },
  "luminance": 0.29381
}

Semantic roles & 50–950 ramp

primary
#AB7DEC
secondary
#E5F1D3
accent
#D70F84
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AB7DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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