#8A78E7#8A78E7

#8A78E7 is a light, vivid blue. Relative luminance 0.246; OKLCH L 64.0% C 0.162 H 288.4°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8A78E7
RGBrgb(138, 120, 231)
HSLhsl(250, 70%, 69%)
HSVhsv(250, 48%, 91%)
CMYKcmyk(40.3%, 48.1%, 0%, 9.4%)
CIE-LABlab(56.69, 33.13, -54.14)
CIE-LCHlch(56.69, 63.47, 301.47°)
OKLaboklab(64% 0.0511 -0.1533)
OKLCHoklch(64% 0.162 288.4)
XYZxyz(31.6175, 24.6047, 78.6691)
Luminance0.2461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78E7 #D5E778
analogous
#789EE7 #8A78E7 #C278E7
triadic
#8A78E7 #E78A78 #78E78A
tetradic
#8A78E7 #E7789E #D5E778 #78E7C2
square
#8A78E7 #E7789E #D5E778 #78E7C2
split-complementary
#8A78E7 #E7C278 #9EE778
monochromatic
#3C23C2 #5D44DE #8A78E7 #B7ACF0 #E4E0F9

Accessibility & contrast

On white

3.55
#8A78E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#8A78E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78E7
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78E7#FFFFFF#000000##000000
##8A78E71.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8AEB
Deuteranopia (green-blind)
#4C85E4
Tritanopia (blue-blind)
#708FA5
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a78e7;
/* rgb */ color: rgb(138, 120, 231);
/* oklch */ color: oklch(64.0% 0.162 288.4);
Tailwind
colors: {
  custom: {
    50: '#b09fef',
    500: '#8a78e7',
    950: '#000000',
  },
}
SCSS
$custom: #8a78e7;
$custom-light: #b09fef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78e7",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 231
  },
  "hsl": {
    "h": 249.73,
    "s": 69.811,
    "l": 68.824
  },
  "oklch": {
    "l": 0.63995,
    "c": 0.16158,
    "h": 288.4
  },
  "luminance": 0.24606
}

Semantic roles & 50–950 ramp

primary
#8A78E7
secondary
#E8EECD
accent
#D214B3
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A78E7

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

Preview Lab → · Contrast checker → · Palette generator →

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