#8A78EB#8A78EB

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

Color values

HEX#8A78EB
RGBrgb(138, 120, 235)
HSLhsl(249, 74%, 70%)
HSVhsv(249, 49%, 92%)
CMYKcmyk(41.3%, 48.9%, 0%, 7.8%)
CIE-LABlab(56.91, 34.24, -56.01)
CIE-LCHlch(56.91, 65.65, 301.44°)
OKLaboklab(64.24% 0.0514 -0.1588)
OKLCHoklch(64.24% 0.167 287.9)
XYZxyz(32.1889, 24.8333, 81.6785)
Luminance0.2483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78EB #D9EB78
analogous
#78A0EB #8A78EB #C378EB
triadic
#8A78EB #EB8A78 #78EB8A
tetradic
#8A78EB #EB78A0 #D9EB78 #78EBC3
square
#8A78EB #EB78A0 #D9EB78 #78EBC3
split-complementary
#8A78EB #EBC378 #A0EB78
monochromatic
#391ECB #5C43E3 #8A78EB #B8ADF3 #E6E3FB

Accessibility & contrast

On white

3.52
#8A78EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#8A78EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78EB
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78EB#FFFFFF#000000##000000
##8A78EB1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#498BEF
Deuteranopia (green-blind)
#4886E8
Tritanopia (blue-blind)
#6E90A6
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a78eb;
/* rgb */ color: rgb(138, 120, 235);
/* oklch */ color: oklch(64.2% 0.167 287.9);
Tailwind
colors: {
  custom: {
    50: '#b19ff2',
    500: '#8a78eb',
    950: '#000000',
  },
}
SCSS
$custom: #8a78eb;
$custom-light: #b19ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78eb",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 249.391,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.64236,
    "c": 0.16691,
    "h": 287.9
  },
  "luminance": 0.24834
}

Semantic roles & 50–950 ramp

primary
#8A78EB
secondary
#EBF0CF
accent
#D60FB7
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A78EB

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

Preview Lab → · Contrast checker → · Palette generator →

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