#978CFB#978CFB

#978CFB is a light, vivid blue. Relative luminance 0.323; OKLCH L 69.8% C 0.159 H 286.0°. Best body text is #000000 at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#978CFB
RGBrgb(151, 140, 251)
HSLhsl(246, 93%, 77%)
HSVhsv(246, 44%, 98%)
CMYKcmyk(39.8%, 44.2%, 0%, 1.6%)
CIE-LABlab(63.59, 30.22, -54.15)
CIE-LCHlch(63.59, 62.02, 299.16°)
OKLaboklab(69.8% 0.0439 -0.153)
OKLCHoklch(69.8% 0.159 286)
XYZxyz(39.5483, 32.2991, 95.3987)
Luminance0.3230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978CFB #F0FB8C
analogous
#8CB9FB #978CFB #CF8CFB
triadic
#978CFB #FB978C #8CFB97
tetradic
#978CFB #FB8CB9 #F0FB8C #8CFBCF
square
#978CFB #FB8CB9 #F0FB8C #8CFBCF
split-complementary
#978CFB #FBCF8C #B9FB8C
monochromatic
#2C16F7 #6251F9 #978CFB #CCC7FD #E4E1FE

Accessibility & contrast

On white

2.81
#978CFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.46
#978CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978CFB
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978CFB#FFFFFF#000000##000000
##978CFB1.002.817.467.46
#FFFFFF2.811.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#639DFF
Deuteranopia (green-blind)
#6197F8
Tritanopia (blue-blind)
#7AA2B7
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #978cfb;
/* rgb */ color: rgb(151, 140, 251);
/* oklch */ color: oklch(69.8% 0.159 286.0);
Tailwind
colors: {
  custom: {
    50: '#baadfd',
    500: '#978cfb',
    950: '#000000',
  },
}
SCSS
$custom: #978cfb;
$custom-light: #baadfd;
$custom-dark: #000000;
JSON
{
  "hex": "#978cfb",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 251
  },
  "hsl": {
    "h": 245.946,
    "s": 93.277,
    "l": 76.667
  },
  "oklch": {
    "l": 0.69805,
    "c": 0.15915,
    "h": 286
  },
  "luminance": 0.32301
}

Semantic roles & 50–950 ramp

primary
#978CFB
secondary
#F3F6D5
accent
#E600CF
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121018
muted
#817F86

Preview Lab

Preview with #978CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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