#8A78F5#8A78F5

#8A78F5 is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.9% C 0.180 H 286.9°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8A78F5
RGBrgb(138, 120, 245)
HSLhsl(249, 86%, 72%)
HSVhsv(249, 51%, 96%)
CMYKcmyk(43.7%, 51%, 0%, 3.9%)
CIE-LABlab(57.49, 37.03, -60.64)
CIE-LCHlch(57.49, 71.06, 301.41°)
OKLaboklab(64.85% 0.0522 -0.1724)
OKLCHoklch(64.85% 0.18 286.9)
XYZxyz(33.6744, 25.4275, 89.5022)
Luminance0.2543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78F5 #E3F578
analogous
#78A5F5 #8A78F5 #C978F5
triadic
#8A78F5 #F58A78 #78F58A
tetradic
#8A78F5 #F578A5 #E3F578 #78F5C9
square
#8A78F5 #F578A5 #E3F578 #78F5C9
split-complementary
#8A78F5 #F5C978 #A5F578
monochromatic
#2F11E2 #593FF1 #8A78F5 #BBB1F9 #E6E3FD

Accessibility & contrast

On white

3.45
#8A78F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#8A78F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78F5
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78F5#FFFFFF#000000##000000
##8A78F51.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8DF9
Deuteranopia (green-blind)
#3D87F2
Tritanopia (blue-blind)
#6993AB
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a78f5;
/* rgb */ color: rgb(138, 120, 245);
/* oklch */ color: oklch(64.9% 0.180 286.9);
Tailwind
colors: {
  custom: {
    50: '#b29ff9',
    500: '#8a78f5',
    950: '#000000',
  },
}
SCSS
$custom: #8a78f5;
$custom-light: #b29ff9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78f5",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 245
  },
  "hsl": {
    "h": 248.64,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.64854,
    "c": 0.18013,
    "h": 286.9
  },
  "luminance": 0.25429
}

Semantic roles & 50–950 ramp

primary
#8A78F5
secondary
#F0F4D4
accent
#E303C2
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A78F5

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

Preview Lab → · Contrast checker → · Palette generator →

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