#AB78F2#AB78F2

#AB78F2 is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.6% C 0.178 H 301.1°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#AB78F2
RGBrgb(171, 120, 242)
HSLhsl(265, 82%, 71%)
HSVhsv(265, 50%, 95%)
CMYKcmyk(29.3%, 50.4%, 0%, 5.1%)
CIE-LABlab(60.34, 44.19, -54.26)
CIE-LCHlch(60.34, 69.97, 309.16°)
OKLaboklab(67.64% 0.092 -0.1528)
OKLCHoklch(67.64% 0.178 301.1)
XYZxyz(39.5344, 28.5015, 87.4057)
Luminance0.2850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB78F2 #BFF278
analogous
#7882F2 #AB78F2 #E878F2
triadic
#AB78F2 #F2AB78 #78F2AB
tetradic
#AB78F2 #F27882 #BFF278 #78F2E8
square
#AB78F2 #F27882 #BFF278 #78F2E8
split-complementary
#AB78F2 #F2E878 #82F278
monochromatic
#6815DB #8840ED #AB78F2 #CEB0F7 #EEE3FC

Accessibility & contrast

On white

3.13
#AB78F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#AB78F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB78F2
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB78F2#FFFFFF#000000##000000
##AB78F21.003.136.706.70
#FFFFFF3.131.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F91F6
Deuteranopia (green-blind)
#5D91EF
Tritanopia (blue-blind)
#9D8FAA
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ab78f2;
/* rgb */ color: rgb(171, 120, 242);
/* oklch */ color: oklch(67.6% 0.178 301.1);
Tailwind
colors: {
  custom: {
    50: '#c7a0f7',
    500: '#ab78f2',
    950: '#000000',
  },
}
SCSS
$custom: #ab78f2;
$custom-light: #c7a0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab78f2",
  "rgb": {
    "r": 171,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 265.082,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.67639,
    "c": 0.17835,
    "h": 301.1
  },
  "luminance": 0.28502
}

Semantic roles & 50–950 ramp

primary
#AB78F2
secondary
#E6F3D3
accent
#DF0784
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130F17
muted
#827E85

Preview Lab

Preview with #AB78F2

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

Preview Lab → · Contrast checker → · Palette generator →

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