#978EFB#978EFB

#978EFB is a light, vivid blue. Relative luminance 0.329; OKLCH L 70.2% C 0.156 H 285.4°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#978EFB
RGBrgb(151, 142, 251)
HSLhsl(245, 93%, 77%)
HSVhsv(245, 43%, 98%)
CMYKcmyk(39.8%, 43.4%, 0%, 1.6%)
CIE-LABlab(64.07, 29.07, -53.39)
CIE-LCHlch(64.07, 60.79, 298.57°)
OKLaboklab(70.17% 0.0415 -0.1507)
OKLCHoklch(70.17% 0.156 285.4)
XYZxyz(39.8432, 32.8889, 95.4970)
Luminance0.3289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978EFB #F2FB8E
analogous
#8EBCFB #978EFB #CE8EFB
triadic
#978EFB #FB978E #8EFB97
tetradic
#978EFB #FB8EBC #F2FB8E #8EFBCE
square
#978EFB #FB8EBC #F2FB8E #8EFBCE
split-complementary
#978EFB #FBCE8E #BCFB8E
monochromatic
#2A18F7 #6153F9 #978EFB #CDC9FD #E4E1FE

Accessibility & contrast

On white

2.77
#978EFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#978EFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978EFB
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978EFB#FFFFFF#000000##000000
##978EFB1.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#669EFF
Deuteranopia (green-blind)
#6498F8
Tritanopia (blue-blind)
#7AA4B8
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #978efb;
/* rgb */ color: rgb(151, 142, 251);
/* oklch */ color: oklch(70.2% 0.156 285.4);
Tailwind
colors: {
  custom: {
    50: '#baaffd',
    500: '#978efb',
    950: '#000000',
  },
}
SCSS
$custom: #978efb;
$custom-light: #baaffd;
$custom-dark: #000000;
JSON
{
  "hex": "#978efb",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 251
  },
  "hsl": {
    "h": 244.954,
    "s": 93.162,
    "l": 77.059
  },
  "oklch": {
    "l": 0.7017,
    "c": 0.15632,
    "h": 285.4
  },
  "luminance": 0.3289
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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