#8A78F6#8A78F6

#8A78F6 is a light, vivid blue. Relative luminance 0.255; OKLCH L 64.9% C 0.181 H 286.7°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#8A78F6
RGBrgb(138, 120, 246)
HSLhsl(249, 88%, 72%)
HSVhsv(249, 51%, 96%)
CMYKcmyk(43.9%, 51.2%, 0%, 3.5%)
CIE-LABlab(57.55, 37.32, -61.10)
CIE-LCHlch(57.55, 71.60, 301.41°)
OKLaboklab(64.92% 0.0523 -0.1737)
OKLCHoklch(64.92% 0.181 286.7)
XYZxyz(33.8275, 25.4887, 90.3084)
Luminance0.2549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78F6 #E4F678
analogous
#78A5F6 #8A78F6 #C978F6
triadic
#8A78F6 #F68A78 #78F68A
tetradic
#8A78F6 #F678A5 #E4F678 #78F6C9
square
#8A78F6 #F678A5 #E4F678 #78F6C9
split-complementary
#8A78F6 #F6C978 #A5F678
monochromatic
#2E0FE4 #583FF2 #8A78F6 #BCB1FA #E6E2FD

Accessibility & contrast

On white

3.44
#8A78F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#8A78F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78F6
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78F6#FFFFFF#000000##000000
##8A78F61.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8DFA
Deuteranopia (green-blind)
#3C87F3
Tritanopia (blue-blind)
#6993AC
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a78f6;
/* rgb */ color: rgb(138, 120, 246);
/* oklch */ color: oklch(64.9% 0.181 286.7);
Tailwind
colors: {
  custom: {
    50: '#b29ffa',
    500: '#8a78f6',
    950: '#000000',
  },
}
SCSS
$custom: #8a78f6;
$custom-light: #b29ffa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78f6",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 246
  },
  "hsl": {
    "h": 248.571,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.64917,
    "c": 0.18144,
    "h": 286.7
  },
  "luminance": 0.2549
}

Semantic roles & 50–950 ramp

primary
#8A78F6
secondary
#F0F5D5
accent
#E401C4
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A78F6

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

Preview Lab → · Contrast checker → · Palette generator →

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