#978EFA#978EFA

#978EFA is a light, vivid blue. Relative luminance 0.328; OKLCH L 70.1% C 0.155 H 285.5°. Best body text is #000000 at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#978EFA
RGBrgb(151, 142, 250)
HSLhsl(245, 92%, 77%)
HSVhsv(245, 43%, 98%)
CMYKcmyk(39.6%, 43.2%, 0%, 2%)
CIE-LABlab(64.02, 28.80, -52.92)
CIE-LCHlch(64.02, 60.25, 298.55°)
OKLaboklab(70.11% 0.0413 -0.1494)
OKLCHoklch(70.11% 0.155 285.5)
XYZxyz(39.6859, 32.8260, 94.6690)
Luminance0.3283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978EFA #F1FA8E
analogous
#8EBBFA #978EFA #CD8EFA
triadic
#978EFA #FA978E #8EFA97
tetradic
#978EFA #FA8EBB #F1FA8E #8EFACD
square
#978EFA #FA8EBB #F1FA8E #8EFACD
split-complementary
#978EFA #FACD8E #BBFA8E
monochromatic
#2B19F5 #6153F7 #978EFA #CDC9FD #E4E2FE

Accessibility & contrast

On white

2.78
#978EFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.57
#978EFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978EFA
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978EFA#FFFFFF#000000##000000
##978EFA1.002.787.577.57
#FFFFFF2.781.0021.0021.00
#0000007.5721.001.001.00
##0000007.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#679EFE
Deuteranopia (green-blind)
#6498F7
Tritanopia (blue-blind)
#7BA3B8
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #978efa;
/* rgb */ color: rgb(151, 142, 250);
/* oklch */ color: oklch(70.1% 0.155 285.5);
Tailwind
colors: {
  custom: {
    50: '#b9affc',
    500: '#978efa',
    950: '#000000',
  },
}
SCSS
$custom: #978efa;
$custom-light: #b9affc;
$custom-dark: #000000;
JSON
{
  "hex": "#978efa",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 250
  },
  "hsl": {
    "h": 245,
    "s": 91.525,
    "l": 76.863
  },
  "oklch": {
    "l": 0.70114,
    "c": 0.15497,
    "h": 285.5
  },
  "luminance": 0.32827
}

Semantic roles & 50–950 ramp

primary
#978EFA
secondary
#F3F6D5
accent
#E600D2
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #978EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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