#978EFE#978EFE

#978EFE is a light, vivid blue. Relative luminance 0.331; OKLCH L 70.3% C 0.160 H 285.1°. Best body text is #000000 at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#978EFE
RGBrgb(151, 142, 254)
HSLhsl(245, 98%, 78%)
HSVhsv(245, 44%, 100%)
CMYKcmyk(40.6%, 44.1%, 0%, 0.4%)
CIE-LABlab(64.23, 29.89, -54.79)
CIE-LCHlch(64.23, 62.41, 298.62°)
OKLaboklab(70.34% 0.0419 -0.1548)
OKLCHoklch(70.34% 0.16 285.1)
XYZxyz(40.3198, 33.0796, 98.0073)
Luminance0.3308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978EFE #F5FE8E
analogous
#8EBDFE #978EFE #CF8EFE
triadic
#978EFE #FE978E #8EFE97
tetradic
#978EFE #FE8EBD #F5FE8E #8EFECF
square
#978EFE #FE8EBD #F5FE8E #8EFECF
split-complementary
#978EFE #FECF8E #BDFE8E
monochromatic
#2715FD #5F51FD #978EFE #CFCBFF #E3E1FF

Accessibility & contrast

On white

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

On black

7.62
#978EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978EFE
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978EFE#FFFFFF#000000##000000
##978EFE1.002.767.627.62
#FFFFFF2.761.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#659FFF
Deuteranopia (green-blind)
#6198FB
Tritanopia (blue-blind)
#79A5BA
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #978efe;
/* rgb */ color: rgb(151, 142, 254);
/* oklch */ color: oklch(70.3% 0.160 285.1);
Tailwind
colors: {
  custom: {
    50: '#baafff',
    500: '#978efe',
    950: '#000000',
  },
}
SCSS
$custom: #978efe;
$custom-light: #baafff;
$custom-dark: #000000;
JSON
{
  "hex": "#978efe",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 254
  },
  "hsl": {
    "h": 244.821,
    "s": 98.246,
    "l": 77.647
  },
  "oklch": {
    "l": 0.70337,
    "c": 0.16038,
    "h": 285.1
  },
  "luminance": 0.33081
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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