#8978F6#8978F6

#8978F6 is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.8% C 0.181 H 286.3°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8978F6
RGBrgb(137, 120, 246)
HSLhsl(248, 88%, 72%)
HSVhsv(248, 51%, 96%)
CMYKcmyk(44.3%, 51.2%, 0%, 3.5%)
CIE-LABlab(57.47, 37.09, -61.24)
CIE-LCHlch(57.47, 71.60, 301.20°)
OKLaboklab(64.84% 0.0511 -0.1742)
OKLCHoklch(64.84% 0.182 286.3)
XYZxyz(33.6628, 25.4037, 90.3006)
Luminance0.2540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8978F6 #E5F678
analogous
#78A6F6 #8978F6 #C878F6
triadic
#8978F6 #F68978 #78F689
tetradic
#8978F6 #F678A6 #E5F678 #78F6C8
square
#8978F6 #F678A6 #E5F678 #78F6C8
split-complementary
#8978F6 #F6C878 #A6F678
monochromatic
#2C0FE4 #573FF2 #8978F6 #BBB1FA #E6E2FD

Accessibility & contrast

On white

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

On black

6.08
#8978F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8978F6
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8978F6#FFFFFF#000000##000000
##8978F61.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8DFA
Deuteranopia (green-blind)
#3B86F3
Tritanopia (blue-blind)
#6793AC
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8978f6;
/* rgb */ color: rgb(137, 120, 246);
/* oklch */ color: oklch(64.8% 0.181 286.3);
Tailwind
colors: {
  custom: {
    50: '#b19ffa',
    500: '#8978f6',
    950: '#000000',
  },
}
SCSS
$custom: #8978f6;
$custom-light: #b19ffa;
$custom-dark: #000000;
JSON
{
  "hex": "#8978f6",
  "rgb": {
    "r": 137,
    "g": 120,
    "b": 246
  },
  "hsl": {
    "h": 248.095,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.64836,
    "c": 0.1815,
    "h": 286.3
  },
  "luminance": 0.25405
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8978F6

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

Preview Lab → · Contrast checker → · Palette generator →

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