#8A78EF#8A78EF

#8A78EF is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.5% C 0.172 H 287.5°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#8A78EF
RGBrgb(138, 120, 239)
HSLhsl(249, 79%, 70%)
HSVhsv(249, 50%, 94%)
CMYKcmyk(42.3%, 49.8%, 0%, 6.3%)
CIE-LABlab(57.14, 35.35, -57.87)
CIE-LCHlch(57.14, 67.82, 301.42°)
OKLaboklab(64.48% 0.0518 -0.1642)
OKLCHoklch(64.48% 0.172 287.5)
XYZxyz(32.7733, 25.0670, 84.7562)
Luminance0.2507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78EF #DDEF78
analogous
#78A1EF #8A78EF #C678EF
triadic
#8A78EF #EF8A78 #78EF8A
tetradic
#8A78EF #EF78A1 #DDEF78 #78EFC6
square
#8A78EF #EF78A1 #DDEF78 #78EFC6
split-complementary
#8A78EF #EFC678 #A1EF78
monochromatic
#3519D4 #5B41E9 #8A78EF #B9AFF5 #E7E4FC

Accessibility & contrast

On white

3.49
#8A78EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#8A78EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78EF
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78EF#FFFFFF#000000##000000
##8A78EF1.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#458CF3
Deuteranopia (green-blind)
#4486EC
Tritanopia (blue-blind)
#6C91A8
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a78ef;
/* rgb */ color: rgb(138, 120, 239);
/* oklch */ color: oklch(64.5% 0.172 287.5);
Tailwind
colors: {
  custom: {
    50: '#b19ff5',
    500: '#8a78ef',
    950: '#000000',
  },
}
SCSS
$custom: #8a78ef;
$custom-light: #b19ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78ef",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 249.076,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.64481,
    "c": 0.17222,
    "h": 287.5
  },
  "luminance": 0.25068
}

Semantic roles & 50–950 ramp

primary
#8A78EF
secondary
#EDF2D1
accent
#DB0ABC
background
#FBF9FF
surface
#F6F2FE
border
#D0CCD6
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A78EF

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

Preview Lab → · Contrast checker → · Palette generator →

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