#978EFD#978EFD

#978EFD is a light, vivid blue. Relative luminance 0.330; OKLCH L 70.3% C 0.159 H 285.2°. Best body text is #000000 at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#978EFD
RGBrgb(151, 142, 253)
HSLhsl(245, 97%, 77%)
HSVhsv(245, 44%, 99%)
CMYKcmyk(40.3%, 43.9%, 0%, 0.8%)
CIE-LABlab(64.17, 29.62, -54.32)
CIE-LCHlch(64.17, 61.87, 298.60°)
OKLaboklab(70.28% 0.0418 -0.1534)
OKLCHoklch(70.28% 0.159 285.2)
XYZxyz(40.1601, 33.0157, 97.1661)
Luminance0.3302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978EFD #F4FD8E
analogous
#8EBCFD #978EFD #CF8EFD
triadic
#978EFD #FD978E #8EFD97
tetradic
#978EFD #FD8EBC #F4FD8E #8EFDCF
square
#978EFD #FD8EBC #F4FD8E #8EFDCF
split-complementary
#978EFD #FDCF8E #BCFD8E
monochromatic
#2816FB #6052FC #978EFD #CECAFE #E3E1FE

Accessibility & contrast

On white

2.76
#978EFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.60
#978EFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978EFD
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978EFD#FFFFFF#000000##000000
##978EFD1.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#659FFF
Deuteranopia (green-blind)
#6298FA
Tritanopia (blue-blind)
#79A4B9
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #978efd;
/* rgb */ color: rgb(151, 142, 253);
/* oklch */ color: oklch(70.3% 0.159 285.2);
Tailwind
colors: {
  custom: {
    50: '#baaffe',
    500: '#978efd',
    950: '#000000',
  },
}
SCSS
$custom: #978efd;
$custom-light: #baaffe;
$custom-dark: #000000;
JSON
{
  "hex": "#978efd",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 253
  },
  "hsl": {
    "h": 244.865,
    "s": 96.522,
    "l": 77.451
  },
  "oklch": {
    "l": 0.70281,
    "c": 0.15903,
    "h": 285.2
  },
  "luminance": 0.33017
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978EFD

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

Preview Lab → · Contrast checker → · Palette generator →

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