#8978F7#8978F7

#8978F7 is a light, vivid blue. Relative luminance 0.255; OKLCH L 64.9% C 0.183 H 286.3°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8978F7
RGBrgb(137, 120, 247)
HSLhsl(248, 89%, 72%)
HSVhsv(248, 51%, 97%)
CMYKcmyk(44.5%, 51.4%, 0%, 3.1%)
CIE-LABlab(57.53, 37.37, -61.70)
CIE-LCHlch(57.53, 72.13, 301.21°)
OKLaboklab(64.9% 0.0512 -0.1755)
OKLCHoklch(64.9% 0.183 286.3)
XYZxyz(33.8166, 25.4653, 91.1111)
Luminance0.2547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8978F7 #E6F778
analogous
#78A7F7 #8978F7 #C878F7
triadic
#8978F7 #F78978 #78F789
tetradic
#8978F7 #F778A7 #E6F778 #78F7C8
square
#8978F7 #F778A7 #E6F778 #78F7C8
split-complementary
#8978F7 #F7C878 #A7F778
monochromatic
#2B0EE7 #563EF4 #8978F7 #BCB2FA #E6E2FD

Accessibility & contrast

On white

3.45
#8978F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#8978F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8978F7
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8978F7#FFFFFF#000000##000000
##8978F71.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)
#3C8EFB
Deuteranopia (green-blind)
#3987F4
Tritanopia (blue-blind)
#6693AC
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8978f7;
/* rgb */ color: rgb(137, 120, 247);
/* oklch */ color: oklch(64.9% 0.183 286.3);
Tailwind
colors: {
  custom: {
    50: '#b19ffa',
    500: '#8978f7',
    950: '#000000',
  },
}
SCSS
$custom: #8978f7;
$custom-light: #b19ffa;
$custom-dark: #000000;
JSON
{
  "hex": "#8978f7",
  "rgb": {
    "r": 137,
    "g": 120,
    "b": 247
  },
  "hsl": {
    "h": 248.031,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.64899,
    "c": 0.18281,
    "h": 286.3
  },
  "luminance": 0.25467
}

Semantic roles & 50–950 ramp

primary
#8978F7
secondary
#F1F5D5
accent
#E500C7
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8978F7

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

Preview Lab → · Contrast checker → · Palette generator →

#8978F7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva