#8A78F9#8A78F9

#8A78F9 is a light, vivid blue. Relative luminance 0.257; OKLCH L 65.1% C 0.185 H 286.4°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#8A78F9
RGBrgb(138, 120, 249)
HSLhsl(248, 91%, 72%)
HSVhsv(248, 52%, 98%)
CMYKcmyk(44.6%, 51.8%, 0%, 2.4%)
CIE-LABlab(57.73, 38.16, -62.48)
CIE-LCHlch(57.73, 73.21, 301.42°)
OKLaboklab(65.11% 0.0525 -0.1778)
OKLCHoklch(65.11% 0.185 286.4)
XYZxyz(34.2917, 25.6744, 92.7530)
Luminance0.2568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78F9 #E7F978
analogous
#78A7F9 #8A78F9 #CA78F9
triadic
#8A78F9 #F98A78 #78F98A
tetradic
#8A78F9 #F978A7 #E7F978 #78F9CA
square
#8A78F9 #F978A7 #E7F978 #78F9CA
split-complementary
#8A78F9 #F9CA78 #A7F978
monochromatic
#2A0AEC #573DF6 #8A78F9 #BDB3FC #E6E2FE

Accessibility & contrast

On white

3.42
#8A78F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#8A78F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78F9
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78F9#FFFFFF#000000##000000
##8A78F91.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8EFD
Deuteranopia (green-blind)
#3887F6
Tritanopia (blue-blind)
#6794AD
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a78f9;
/* rgb */ color: rgb(138, 120, 249);
/* oklch */ color: oklch(65.1% 0.185 286.4);
Tailwind
colors: {
  custom: {
    50: '#b29ffc',
    500: '#8a78f9',
    950: '#000000',
  },
}
SCSS
$custom: #8a78f9;
$custom-light: #b29ffc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78f9",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 249
  },
  "hsl": {
    "h": 248.372,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.65107,
    "c": 0.18535,
    "h": 286.4
  },
  "luminance": 0.25676
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A78F9

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

Preview Lab → · Contrast checker → · Palette generator →

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