#8A78F8#8A78F8

#8A78F8 is a light, vivid blue. Relative luminance 0.256; OKLCH L 65.0% C 0.184 H 286.5°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8A78F8
RGBrgb(138, 120, 248)
HSLhsl(248, 90%, 72%)
HSVhsv(248, 52%, 97%)
CMYKcmyk(44.4%, 51.6%, 0%, 2.7%)
CIE-LABlab(57.67, 37.88, -62.02)
CIE-LCHlch(57.67, 72.67, 301.41°)
OKLaboklab(65.04% 0.0524 -0.1764)
OKLCHoklch(65.04% 0.184 286.5)
XYZxyz(34.1361, 25.6121, 91.9337)
Luminance0.2561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78F8 #E6F878
analogous
#78A6F8 #8A78F8 #CA78F8
triadic
#8A78F8 #F88A78 #78F88A
tetradic
#8A78F8 #F878A6 #E6F878 #78F8CA
square
#8A78F8 #F878A6 #E6F878 #78F8CA
split-complementary
#8A78F8 #F8CA78 #A6F878
monochromatic
#2B0CE9 #583EF5 #8A78F8 #BCB2FB #E6E2FD

Accessibility & contrast

On white

3.43
#8A78F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#8A78F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78F8
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78F8#FFFFFF#000000##000000
##8A78F81.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8EFC
Deuteranopia (green-blind)
#3987F5
Tritanopia (blue-blind)
#6793AD
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a78f8;
/* rgb */ color: rgb(138, 120, 248);
/* oklch */ color: oklch(65.0% 0.184 286.5);
Tailwind
colors: {
  custom: {
    50: '#b29ffb',
    500: '#8a78f8',
    950: '#000000',
  },
}
SCSS
$custom: #8a78f8;
$custom-light: #b29ffb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78f8",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 248
  },
  "hsl": {
    "h": 248.438,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.65043,
    "c": 0.18405,
    "h": 286.5
  },
  "luminance": 0.25614
}

Semantic roles & 50–950 ramp

primary
#8A78F8
secondary
#F1F6D5
accent
#E600C5
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A78F8

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

Preview Lab → · Contrast checker → · Palette generator →

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