#AB78EB#AB78EB

#AB78EB is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.2% C 0.170 H 302.6°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#AB78EB
RGBrgb(171, 120, 235)
HSLhsl(267, 74%, 70%)
HSVhsv(267, 49%, 92%)
CMYKcmyk(27.2%, 48.9%, 0%, 7.8%)
CIE-LABlab(59.97, 42.51, -50.96)
CIE-LCHlch(59.97, 66.36, 309.83°)
OKLaboklab(67.24% 0.0914 -0.1431)
OKLCHoklch(67.24% 0.17 302.6)
XYZxyz(38.5031, 28.0890, 81.9744)
Luminance0.2809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB78EB #B8EB78
analogous
#787EEB #AB78EB #E578EB
triadic
#AB78EB #EBAB78 #78EBAB
tetradic
#AB78EB #EB787E #B8EB78 #78EBE5
square
#AB78EB #EB787E #B8EB78 #78EBE5
split-complementary
#AB78EB #EBE578 #7EEB78
monochromatic
#6B1ECB #8A43E3 #AB78EB #CCADF3 #EDE3FB

Accessibility & contrast

On white

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

On black

6.62
#AB78EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB78EB
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB78EB#FFFFFF#000000##000000
##AB78EB1.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#548FEF
Deuteranopia (green-blind)
#6290E8
Tritanopia (blue-blind)
#9F8DA7
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ab78eb;
/* rgb */ color: rgb(171, 120, 235);
/* oklch */ color: oklch(67.2% 0.170 302.6);
Tailwind
colors: {
  custom: {
    50: '#c7a0f2',
    500: '#ab78eb',
    950: '#000000',
  },
}
SCSS
$custom: #ab78eb;
$custom-light: #c7a0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab78eb",
  "rgb": {
    "r": 171,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 266.609,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.67244,
    "c": 0.16984,
    "h": 302.6
  },
  "luminance": 0.28089
}

Semantic roles & 50–950 ramp

primary
#AB78EB
secondary
#E1F0CF
accent
#D60F7E
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130F17
muted
#827E85

Preview Lab

Preview with #AB78EB

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

Preview Lab → · Contrast checker → · Palette generator →

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