#8A78E8#8A78E8

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

Color values

HEX#8A78E8
RGBrgb(138, 120, 232)
HSLhsl(250, 71%, 69%)
HSVhsv(250, 48%, 91%)
CMYKcmyk(40.5%, 48.3%, 0%, 9%)
CIE-LABlab(56.74, 33.41, -54.61)
CIE-LCHlch(56.74, 64.02, 301.46°)
OKLaboklab(64.05% 0.0512 -0.1547)
OKLCHoklch(64.05% 0.163 288.3)
XYZxyz(31.7591, 24.6613, 79.4151)
Luminance0.2466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78E8 #D6E878
analogous
#789EE8 #8A78E8 #C278E8
triadic
#8A78E8 #E88A78 #78E88A
tetradic
#8A78E8 #E8789E #D6E878 #78E8C2
square
#8A78E8 #E8789E #D6E878 #78E8C2
split-complementary
#8A78E8 #E8C278 #9EE878
monochromatic
#3C21C4 #5D44DF #8A78E8 #B7ACF1 #E5E1FA

Accessibility & contrast

On white

3.54
#8A78E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#8A78E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78E8
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78E8#FFFFFF#000000##000000
##8A78E81.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a78e8;
/* rgb */ color: rgb(138, 120, 232);
/* oklch */ color: oklch(64.1% 0.163 288.3);
Tailwind
colors: {
  custom: {
    50: '#b19ff0',
    500: '#8a78e8',
    950: '#000000',
  },
}
SCSS
$custom: #8a78e8;
$custom-light: #b19ff0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78e8",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 232
  },
  "hsl": {
    "h": 249.643,
    "s": 70.886,
    "l": 69.02
  },
  "oklch": {
    "l": 0.64055,
    "c": 0.16292,
    "h": 288.3
  },
  "luminance": 0.24662
}

Semantic roles & 50–950 ramp

primary
#8A78E8
secondary
#E9EECD
accent
#D313B4
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A78E8

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

Preview Lab → · Contrast checker → · Palette generator →

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