#978DFB#978DFB

#978DFB is a light, vivid blue. Relative luminance 0.326; OKLCH L 70.0% C 0.158 H 285.7°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#978DFB
RGBrgb(151, 141, 251)
HSLhsl(245, 93%, 77%)
HSVhsv(245, 44%, 98%)
CMYKcmyk(39.8%, 43.8%, 0%, 1.6%)
CIE-LABlab(63.83, 29.65, -53.77)
CIE-LCHlch(63.83, 61.40, 298.87°)
OKLaboklab(69.99% 0.0427 -0.1518)
OKLCHoklch(69.99% 0.158 285.7)
XYZxyz(39.6950, 32.5927, 95.4476)
Luminance0.3259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978DFB #F1FB8D
analogous
#8DBAFB #978DFB #CE8DFB
triadic
#978DFB #FB978D #8DFB97
tetradic
#978DFB #FB8DBA #F1FB8D #8DFBCE
square
#978DFB #FB8DBA #F1FB8D #8DFBCE
split-complementary
#978DFB #FBCE8D #BAFB8D
monochromatic
#2B17F7 #6152F9 #978DFB #CDC8FD #E4E1FE

Accessibility & contrast

On white

2.79
#978DFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#978DFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978DFB
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978DFB#FFFFFF#000000##000000
##978DFB1.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#659EFF
Deuteranopia (green-blind)
#6297F8
Tritanopia (blue-blind)
#7AA3B8
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #978dfb;
/* rgb */ color: rgb(151, 141, 251);
/* oklch */ color: oklch(70.0% 0.158 285.7);
Tailwind
colors: {
  custom: {
    50: '#baaefd',
    500: '#978dfb',
    950: '#000000',
  },
}
SCSS
$custom: #978dfb;
$custom-light: #baaefd;
$custom-dark: #000000;
JSON
{
  "hex": "#978dfb",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 251
  },
  "hsl": {
    "h": 245.455,
    "s": 93.22,
    "l": 76.863
  },
  "oklch": {
    "l": 0.69987,
    "c": 0.15773,
    "h": 285.7
  },
  "luminance": 0.32594
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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