#978CEF#978CEF

#978CEF is a light, vivid blue. Relative luminance 0.316; OKLCH L 69.1% C 0.143 H 287.1°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#978CEF
RGBrgb(151, 140, 239)
HSLhsl(247, 76%, 74%)
HSVhsv(247, 41%, 94%)
CMYKcmyk(36.8%, 41.4%, 0%, 6.3%)
CIE-LABlab(62.98, 26.98, -48.52)
CIE-LCHlch(62.98, 55.52, 299.08°)
OKLaboklab(69.15% 0.0421 -0.1365)
OKLCHoklch(69.15% 0.143 287.1)
XYZxyz(37.7163, 31.5663, 85.7503)
Luminance0.3157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978CEF #E4EF8C
analogous
#8CB3EF #978CEF #C98CEF
triadic
#978CEF #EF978C #8CEF97
tetradic
#978CEF #EF8CB3 #E4EF8C #8CEFC9
square
#978CEF #EF8CB3 #E4EF8C #8CEFC9
split-complementary
#978CEF #EFC98C #B3EF8C
monochromatic
#3621E0 #6656E8 #978CEF #C8C2F6 #E7E4FB

Accessibility & contrast

On white

2.87
#978CEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#978CEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978CEF
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978CEF#FFFFFF#000000##000000
##978CEF1.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9BF3
Deuteranopia (green-blind)
#6996ED
Tritanopia (blue-blind)
#809FB2
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #978cef;
/* rgb */ color: rgb(151, 140, 239);
/* oklch */ color: oklch(69.1% 0.143 287.1);
Tailwind
colors: {
  custom: {
    50: '#b9adf5',
    500: '#978cef',
    950: '#000000',
  },
}
SCSS
$custom: #978cef;
$custom-light: #b9adf5;
$custom-dark: #000000;
JSON
{
  "hex": "#978cef",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 239
  },
  "hsl": {
    "h": 246.667,
    "s": 75.573,
    "l": 74.314
  },
  "oklch": {
    "l": 0.69148,
    "c": 0.14284,
    "h": 287.1
  },
  "luminance": 0.31567
}

Semantic roles & 50–950 ramp

primary
#978CEF
secondary
#F0F3D8
accent
#D80EC1
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#121017
muted
#817F85

Preview Lab

Preview with #978CEF

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

Preview Lab → · Contrast checker → · Palette generator →

#978CEF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva