#AB78F6#AB78F6

#AB78F6 is a light, vivid violet. Relative luminance 0.287; OKLCH L 67.9% C 0.183 H 300.3°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#AB78F6
RGBrgb(171, 120, 246)
HSLhsl(264, 88%, 72%)
HSVhsv(264, 51%, 96%)
CMYKcmyk(30.5%, 51.2%, 0%, 3.5%)
CIE-LABlab(60.56, 45.16, -56.12)
CIE-LCHlch(60.56, 72.03, 308.82°)
OKLaboklab(67.87% 0.0923 -0.1582)
OKLCHoklch(67.87% 0.183 300.3)
XYZxyz(40.1417, 28.7445, 90.6043)
Luminance0.2874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB78F6 #C3F678
analogous
#7884F6 #AB78F6 #EA78F6
triadic
#AB78F6 #F6AB78 #78F6AB
tetradic
#AB78F6 #F67884 #C3F678 #78F6EA
square
#AB78F6 #F67884 #C3F678 #78F6EA
split-complementary
#AB78F6 #F6EA78 #84F678
monochromatic
#660FE4 #873FF2 #AB78F6 #CFB1FA #EDE2FD

Accessibility & contrast

On white

3.11
#AB78F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#AB78F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB78F6
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB78F6#FFFFFF#000000##000000
##AB78F61.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B92FA
Deuteranopia (green-blind)
#5A91F3
Tritanopia (blue-blind)
#9C90AC
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ab78f6;
/* rgb */ color: rgb(171, 120, 246);
/* oklch */ color: oklch(67.9% 0.183 300.3);
Tailwind
colors: {
  custom: {
    50: '#c7a0fa',
    500: '#ab78f6',
    950: '#000000',
  },
}
SCSS
$custom: #ab78f6;
$custom-light: #c7a0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab78f6",
  "rgb": {
    "r": 171,
    "g": 120,
    "b": 246
  },
  "hsl": {
    "h": 264.286,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.6787,
    "c": 0.18321,
    "h": 300.3
  },
  "luminance": 0.28745
}

Semantic roles & 50–950 ramp

primary
#AB78F6
secondary
#E8F5D5
accent
#E40188
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130F17
muted
#827E85

Preview Lab

Preview with #AB78F6

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

Preview Lab → · Contrast checker → · Palette generator →

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