#8A78EA#8A78EA

#8A78EA is a light, vivid blue. Relative luminance 0.248; OKLCH L 64.2% C 0.166 H 288.1°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8A78EA
RGBrgb(138, 120, 234)
HSLhsl(249, 73%, 69%)
HSVhsv(249, 49%, 92%)
CMYKcmyk(41%, 48.7%, 0%, 8.2%)
CIE-LABlab(56.86, 33.96, -55.55)
CIE-LCHlch(56.86, 65.11, 301.44°)
OKLaboklab(64.18% 0.0514 -0.1574)
OKLCHoklch(64.18% 0.166 288.1)
XYZxyz(32.0448, 24.7756, 80.9197)
Luminance0.2478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78EA #D8EA78
analogous
#789FEA #8A78EA #C378EA
triadic
#8A78EA #EA8A78 #78EA8A
tetradic
#8A78EA #EA789F #D8EA78 #78EAC3
square
#8A78EA #EA789F #D8EA78 #78EAC3
split-complementary
#8A78EA #EAC378 #9FEA78
monochromatic
#3A1FC8 #5C43E2 #8A78EA #B8ADF2 #E6E2FA

Accessibility & contrast

On white

3.53
#8A78EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#8A78EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78EA
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78EA#FFFFFF#000000##000000
##8A78EA1.003.535.965.96
#FFFFFF3.531.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8BEE
Deuteranopia (green-blind)
#4986E7
Tritanopia (blue-blind)
#6F8FA6
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a78ea;
/* rgb */ color: rgb(138, 120, 234);
/* oklch */ color: oklch(64.2% 0.166 288.1);
Tailwind
colors: {
  custom: {
    50: '#b19ff1',
    500: '#8a78ea',
    950: '#000000',
  },
}
SCSS
$custom: #8a78ea;
$custom-light: #b19ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78ea",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 234
  },
  "hsl": {
    "h": 249.474,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.64175,
    "c": 0.16558,
    "h": 288.1
  },
  "luminance": 0.24777
}

Semantic roles & 50–950 ramp

primary
#8A78EA
secondary
#EAEFCE
accent
#D510B6
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A78EA

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

Preview Lab → · Contrast checker → · Palette generator →

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