#8A78F7#8A78F7

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

Color values

HEX#8A78F7
RGBrgb(138, 120, 247)
HSLhsl(249, 89%, 72%)
HSVhsv(249, 51%, 97%)
CMYKcmyk(44.1%, 51.4%, 0%, 3.1%)
CIE-LABlab(57.61, 37.60, -61.56)
CIE-LCHlch(57.61, 72.13, 301.41°)
OKLaboklab(64.98% 0.0524 -0.1751)
OKLCHoklch(64.98% 0.183 286.6)
XYZxyz(33.9814, 25.5502, 91.1189)
Luminance0.2555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78F7 #E5F778
analogous
#78A6F7 #8A78F7 #CA78F7
triadic
#8A78F7 #F78A78 #78F78A
tetradic
#8A78F7 #F778A6 #E5F778 #78F7CA
square
#8A78F7 #F778A6 #E5F778 #78F7CA
split-complementary
#8A78F7 #F7CA78 #A6F778
monochromatic
#2C0EE7 #583EF4 #8A78F7 #BCB2FA #E6E2FD

Accessibility & contrast

On white

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

On black

6.11
#8A78F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78F7
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78F7#FFFFFF#000000##000000
##8A78F71.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C8EFB
Deuteranopia (green-blind)
#3A87F4
Tritanopia (blue-blind)
#6893AC
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a78f7;
/* rgb */ color: rgb(138, 120, 247);
/* oklch */ color: oklch(65.0% 0.183 286.6);
Tailwind
colors: {
  custom: {
    50: '#b29ffa',
    500: '#8a78f7',
    950: '#000000',
  },
}
SCSS
$custom: #8a78f7;
$custom-light: #b29ffa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78f7",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 247
  },
  "hsl": {
    "h": 248.504,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.6498,
    "c": 0.18274,
    "h": 286.6
  },
  "luminance": 0.25552
}

Semantic roles & 50–950 ramp

primary
#8A78F7
secondary
#F1F5D5
accent
#E500C5
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A78F7

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

Preview Lab → · Contrast checker → · Palette generator →

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