#8978EC#8978EC

#8978EC is a light, vivid blue. Relative luminance 0.248; OKLCH L 64.2% C 0.168 H 287.4°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8978EC
RGBrgb(137, 120, 236)
HSLhsl(249, 75%, 70%)
HSVhsv(249, 49%, 93%)
CMYKcmyk(41.9%, 49.2%, 0%, 7.5%)
CIE-LABlab(56.89, 34.28, -56.62)
CIE-LCHlch(56.89, 66.19, 301.20°)
OKLaboklab(64.21% 0.0503 -0.1606)
OKLCHoklch(64.21% 0.168 287.4)
XYZxyz(32.1690, 24.8063, 82.4337)
Luminance0.2481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8978EC #DBEC78
analogous
#78A1EC #8978EC #C378EC
triadic
#8978EC #EC8978 #78EC89
tetradic
#8978EC #EC78A1 #DBEC78 #78ECC3
square
#8978EC #EC78A1 #DBEC78 #78ECC3
split-complementary
#8978EC #ECC378 #A1EC78
monochromatic
#371DCD #5A42E4 #8978EC #B8AEF4 #E7E3FB

Accessibility & contrast

On white

3.52
#8978EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#8978EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8978EC
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8978EC#FFFFFF#000000##000000
##8978EC1.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#488BF0
Deuteranopia (green-blind)
#4785E9
Tritanopia (blue-blind)
#6C90A7
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8978ec;
/* rgb */ color: rgb(137, 120, 236);
/* oklch */ color: oklch(64.2% 0.168 287.4);
Tailwind
colors: {
  custom: {
    50: '#b09ff3',
    500: '#8978ec',
    950: '#000000',
  },
}
SCSS
$custom: #8978ec;
$custom-light: #b09ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#8978ec",
  "rgb": {
    "r": 137,
    "g": 120,
    "b": 236
  },
  "hsl": {
    "h": 248.793,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.64214,
    "c": 0.1683,
    "h": 287.4
  },
  "luminance": 0.24807
}

Semantic roles & 50–950 ramp

primary
#8978EC
secondary
#EBF0D0
accent
#D70EBA
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E17
muted
#807E85

Preview Lab

Preview with #8978EC

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

Preview Lab → · Contrast checker → · Palette generator →

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