#8A78F4#8A78F4

#8A78F4 is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.8% C 0.179 H 287.0°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8A78F4
RGBrgb(138, 120, 244)
HSLhsl(249, 85%, 71%)
HSVhsv(249, 51%, 96%)
CMYKcmyk(43.4%, 50.8%, 0%, 4.3%)
CIE-LABlab(57.43, 36.75, -60.18)
CIE-LCHlch(57.43, 70.52, 301.41°)
OKLaboklab(64.79% 0.0522 -0.171)
OKLCHoklch(64.79% 0.179 287)
XYZxyz(33.5222, 25.3666, 88.7004)
Luminance0.2537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78F4 #E2F478
analogous
#78A4F4 #8A78F4 #C878F4
triadic
#8A78F4 #F48A78 #78F48A
tetradic
#8A78F4 #F478A4 #E2F478 #78F4C8
square
#8A78F4 #F478A4 #E2F478 #78F4C8
split-complementary
#8A78F4 #F4C878 #A4F478
monochromatic
#3012DF #593FEF #8A78F4 #BBB1F9 #E6E3FD

Accessibility & contrast

On white

3.46
#8A78F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#8A78F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78F4
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78F4#FFFFFF#000000##000000
##8A78F41.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#408DF8
Deuteranopia (green-blind)
#3E87F1
Tritanopia (blue-blind)
#6A92AB
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a78f4;
/* rgb */ color: rgb(138, 120, 244);
/* oklch */ color: oklch(64.8% 0.179 287.0);
Tailwind
colors: {
  custom: {
    50: '#b29ff8',
    500: '#8a78f4',
    950: '#000000',
  },
}
SCSS
$custom: #8a78f4;
$custom-light: #b29ff8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78f4",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 244
  },
  "hsl": {
    "h": 248.71,
    "s": 84.932,
    "l": 71.373
  },
  "oklch": {
    "l": 0.64791,
    "c": 0.17881,
    "h": 287
  },
  "luminance": 0.25368
}

Semantic roles & 50–950 ramp

primary
#8A78F4
secondary
#EFF4D4
accent
#E104C1
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A78F4

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

Preview Lab → · Contrast checker → · Palette generator →

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