#8A78DC#8A78DC

#8A78DC is a light, vivid violet. Relative luminance 0.240; OKLCH L 63.4% C 0.147 H 289.8°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8A78DC
RGBrgb(138, 120, 220)
HSLhsl(251, 59%, 67%)
HSVhsv(251, 45%, 86%)
CMYKcmyk(37.3%, 45.5%, 0%, 13.7%)
CIE-LABlab(56.09, 30.12, -48.93)
CIE-LCHlch(56.09, 57.46, 301.62°)
OKLaboklab(63.35% 0.0498 -0.138)
OKLCHoklch(63.35% 0.147 289.8)
XYZxyz(30.1125, 24.0027, 70.7427)
Luminance0.2400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78DC #CADC78
analogous
#7898DC #8A78DC #BC78DC
triadic
#8A78DC #DC8A78 #78DC8A
tetradic
#8A78DC #DC7898 #CADC78 #78DCBC
square
#8A78DC #DC7898 #CADC78 #78DCBC
split-complementary
#8A78DC #DCBC78 #98DC78
monochromatic
#442DAD #6047CF #8A78DC #B4A9E9 #DED9F5

Accessibility & contrast

On white

3.62
#8A78DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#8A78DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78DC
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78DC#FFFFFF#000000##000000
##8A78DC1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5588E0
Deuteranopia (green-blind)
#5584DA
Tritanopia (blue-blind)
#758C9F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a78dc;
/* rgb */ color: rgb(138, 120, 220);
/* oklch */ color: oklch(63.4% 0.147 289.8);
Tailwind
colors: {
  custom: {
    50: '#b09fe7',
    500: '#8a78dc',
    950: '#000000',
  },
}
SCSS
$custom: #8a78dc;
$custom-light: #b09fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78dc",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 220
  },
  "hsl": {
    "h": 250.8,
    "s": 58.824,
    "l": 66.667
  },
  "oklch": {
    "l": 0.63351,
    "c": 0.14673,
    "h": 289.8
  },
  "luminance": 0.24004
}

Semantic roles & 50–950 ramp

primary
#8A78DC
secondary
#E2E8C8
accent
#C61FA8
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A78DC

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

Preview Lab → · Contrast checker → · Palette generator →

#8A78DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva