#8A78EC#8A78EC

#8A78EC is a light, vivid blue. Relative luminance 0.249; OKLCH L 64.3% C 0.168 H 287.8°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8A78EC
RGBrgb(138, 120, 236)
HSLhsl(249, 75%, 70%)
HSVhsv(249, 49%, 93%)
CMYKcmyk(41.5%, 49.2%, 0%, 7.5%)
CIE-LABlab(56.97, 34.52, -56.48)
CIE-LCHlch(56.97, 66.19, 301.43°)
OKLaboklab(64.3% 0.0515 -0.1602)
OKLCHoklch(64.3% 0.168 287.8)
XYZxyz(32.3338, 24.8912, 82.4415)
Luminance0.2489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78EC #DAEC78
analogous
#78A0EC #8A78EC #C478EC
triadic
#8A78EC #EC8A78 #78EC8A
tetradic
#8A78EC #EC78A0 #DAEC78 #78ECC4
square
#8A78EC #EC78A0 #DAEC78 #78ECC4
split-complementary
#8A78EC #ECC478 #A0EC78
monochromatic
#381DCD #5C42E4 #8A78EC #B8AEF4 #E7E3FB

Accessibility & contrast

On white

3.51
#8A78EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#8A78EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78EC
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78EC#FFFFFF#000000##000000
##8A78EC1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#488BF0
Deuteranopia (green-blind)
#4786E9
Tritanopia (blue-blind)
#6E90A7
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a78ec;
/* rgb */ color: rgb(138, 120, 236);
/* oklch */ color: oklch(64.3% 0.168 287.8);
Tailwind
colors: {
  custom: {
    50: '#b19ff3',
    500: '#8a78ec',
    950: '#000000',
  },
}
SCSS
$custom: #8a78ec;
$custom-light: #b19ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78ec",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 236
  },
  "hsl": {
    "h": 249.31,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.64297,
    "c": 0.16825,
    "h": 287.8
  },
  "luminance": 0.24892
}

Semantic roles & 50–950 ramp

primary
#8A78EC
secondary
#EBF0D0
accent
#D70EB8
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A78EC

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

Preview Lab → · Contrast checker → · Palette generator →

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