#8978F5#8978F5

#8978F5 is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.8% C 0.180 H 286.5°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8978F5
RGBrgb(137, 120, 245)
HSLhsl(248, 86%, 72%)
HSVhsv(248, 51%, 96%)
CMYKcmyk(44.1%, 51%, 0%, 3.9%)
CIE-LABlab(57.41, 36.81, -60.78)
CIE-LCHlch(57.41, 71.06, 301.20°)
OKLaboklab(64.77% 0.051 -0.1728)
OKLCHoklch(64.77% 0.18 286.5)
XYZxyz(33.5097, 25.3425, 89.4945)
Luminance0.2534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8978F5 #E4F578
analogous
#78A6F5 #8978F5 #C878F5
triadic
#8978F5 #F58978 #78F589
tetradic
#8978F5 #F578A6 #E4F578 #78F5C8
square
#8978F5 #F578A6 #E4F578 #78F5C8
split-complementary
#8978F5 #F5C878 #A6F578
monochromatic
#2D11E2 #573FF1 #8978F5 #BBB1F9 #E6E3FD

Accessibility & contrast

On white

3.46
#8978F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#8978F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8978F5
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8978F5#FFFFFF#000000##000000
##8978F51.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8DF9
Deuteranopia (green-blind)
#3C86F2
Tritanopia (blue-blind)
#6793AB
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8978f5;
/* rgb */ color: rgb(137, 120, 245);
/* oklch */ color: oklch(64.8% 0.180 286.5);
Tailwind
colors: {
  custom: {
    50: '#b19ff9',
    500: '#8978f5',
    950: '#000000',
  },
}
SCSS
$custom: #8978f5;
$custom-light: #b19ff9;
$custom-dark: #000000;
JSON
{
  "hex": "#8978f5",
  "rgb": {
    "r": 137,
    "g": 120,
    "b": 245
  },
  "hsl": {
    "h": 248.16,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.64773,
    "c": 0.18019,
    "h": 286.5
  },
  "luminance": 0.25344
}

Semantic roles & 50–950 ramp

primary
#8978F5
secondary
#F0F4D4
accent
#E303C4
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8978F5

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

Preview Lab → · Contrast checker → · Palette generator →

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