#8A78E9#8A78E9

#8A78E9 is a light, vivid blue. Relative luminance 0.247; OKLCH L 64.1% C 0.164 H 288.2°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8A78E9
RGBrgb(138, 120, 233)
HSLhsl(250, 72%, 69%)
HSVhsv(250, 48%, 91%)
CMYKcmyk(40.8%, 48.5%, 0%, 8.6%)
CIE-LABlab(56.80, 33.69, -55.08)
CIE-LCHlch(56.80, 64.56, 301.45°)
OKLaboklab(64.11% 0.0513 -0.156)
OKLCHoklch(64.11% 0.164 288.2)
XYZxyz(31.9016, 24.7183, 80.1653)
Luminance0.2472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78E9 #D7E978
analogous
#789EE9 #8A78E9 #C378E9
triadic
#8A78E9 #E98A78 #78E98A
tetradic
#8A78E9 #E9789E #D7E978 #78E9C3
square
#8A78E9 #E9789E #D7E978 #78E9C3
split-complementary
#8A78E9 #E9C378 #9EE978
monochromatic
#3B20C6 #5C43E0 #8A78E9 #B8ADF2 #E5E1FA

Accessibility & contrast

On white

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

On black

5.94
#8A78E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78E9
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78E9#FFFFFF#000000##000000
##8A78E91.003.535.945.94
#FFFFFF3.531.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8BED
Deuteranopia (green-blind)
#4A85E6
Tritanopia (blue-blind)
#6F8FA5
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a78e9;
/* rgb */ color: rgb(138, 120, 233);
/* oklch */ color: oklch(64.1% 0.164 288.2);
Tailwind
colors: {
  custom: {
    50: '#b19ff0',
    500: '#8a78e9',
    950: '#000000',
  },
}
SCSS
$custom: #8a78e9;
$custom-light: #b19ff0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78e9",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 233
  },
  "hsl": {
    "h": 249.558,
    "s": 71.975,
    "l": 69.216
  },
  "oklch": {
    "l": 0.64115,
    "c": 0.16425,
    "h": 288.2
  },
  "luminance": 0.24719
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A78E9

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

Preview Lab → · Contrast checker → · Palette generator →

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