#AB78EC#AB78EC

#AB78EC is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.3% C 0.171 H 302.3°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#AB78EC
RGBrgb(171, 120, 236)
HSLhsl(266, 75%, 70%)
HSVhsv(266, 49%, 93%)
CMYKcmyk(27.5%, 49.2%, 0%, 7.5%)
CIE-LABlab(60.02, 42.75, -51.43)
CIE-LCHlch(60.02, 66.88, 309.73°)
OKLaboklab(67.3% 0.0915 -0.1445)
OKLCHoklch(67.3% 0.171 302.3)
XYZxyz(38.6480, 28.1470, 82.7374)
Luminance0.2815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB78EC #B9EC78
analogous
#787FEC #AB78EC #E578EC
triadic
#AB78EC #ECAB78 #78ECAB
tetradic
#AB78EC #EC787F #B9EC78 #78ECE5
square
#AB78EC #EC787F #B9EC78 #78ECE5
split-complementary
#AB78EC #ECE578 #7FEC78
monochromatic
#6A1DCD #8A42E4 #AB78EC #CCAEF4 #EEE3FB

Accessibility & contrast

On white

3.17
#AB78EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#AB78EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB78EC
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB78EC#FFFFFF#000000##000000
##AB78EC1.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5490F0
Deuteranopia (green-blind)
#6190E9
Tritanopia (blue-blind)
#9F8DA7
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ab78ec;
/* rgb */ color: rgb(171, 120, 236);
/* oklch */ color: oklch(67.3% 0.171 302.3);
Tailwind
colors: {
  custom: {
    50: '#c7a0f3',
    500: '#ab78ec',
    950: '#000000',
  },
}
SCSS
$custom: #ab78ec;
$custom-light: #c7a0f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab78ec",
  "rgb": {
    "r": 171,
    "g": 120,
    "b": 236
  },
  "hsl": {
    "h": 266.379,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.67299,
    "c": 0.17106,
    "h": 302.3
  },
  "luminance": 0.28147
}

Semantic roles & 50–950 ramp

primary
#AB78EC
secondary
#E2F0D0
accent
#D70E7F
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130F17
muted
#827E85

Preview Lab

Preview with #AB78EC

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

Preview Lab → · Contrast checker → · Palette generator →

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