#8978FB#8978FB

#8978FB is a light, vivid blue. Relative luminance 0.257; OKLCH L 65.2% C 0.188 H 285.9°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#8978FB
RGBrgb(137, 120, 251)
HSLhsl(248, 94%, 73%)
HSVhsv(248, 52%, 98%)
CMYKcmyk(45.4%, 52.2%, 0%, 1.6%)
CIE-LABlab(57.77, 38.51, -63.52)
CIE-LCHlch(57.77, 74.28, 301.22°)
OKLaboklab(65.15% 0.0514 -0.1809)
OKLCHoklch(65.15% 0.188 285.9)
XYZxyz(34.4405, 25.7149, 94.3969)
Luminance0.2572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8978FB #EAFB78
analogous
#78A9FB #8978FB #CA78FB
triadic
#8978FB #FB8978 #78FB89
tetradic
#8978FB #FB78A9 #EAFB78 #78FBCA
square
#8978FB #FB78A9 #EAFB78 #78FBCA
split-complementary
#8978FB #FBCA78 #A9FB78
monochromatic
#2607F1 #553DF9 #8978FB #BDB3FD #E5E1FE

Accessibility & contrast

On white

3.42
#8978FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#8978FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8978FB
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8978FB#FFFFFF#000000##000000
##8978FB1.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#378EFF
Deuteranopia (green-blind)
#3387F8
Tritanopia (blue-blind)
#6494AE
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8978fb;
/* rgb */ color: rgb(137, 120, 251);
/* oklch */ color: oklch(65.2% 0.188 285.9);
Tailwind
colors: {
  custom: {
    50: '#b29ffd',
    500: '#8978fb',
    950: '#000000',
  },
}
SCSS
$custom: #8978fb;
$custom-light: #b29ffd;
$custom-dark: #000000;
JSON
{
  "hex": "#8978fb",
  "rgb": {
    "r": 137,
    "g": 120,
    "b": 251
  },
  "hsl": {
    "h": 247.786,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.65154,
    "c": 0.18803,
    "h": 285.9
  },
  "luminance": 0.25716
}

Semantic roles & 50–950 ramp

primary
#8978FB
secondary
#F2F6D5
accent
#E600C8
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #8978FB

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

Preview Lab → · Contrast checker → · Palette generator →

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