#978AF8#978AF8

#978AF8 is a light, vivid blue. Relative luminance 0.315; OKLCH L 69.3% C 0.158 H 286.9°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#978AF8
RGBrgb(151, 138, 248)
HSLhsl(247, 89%, 76%)
HSVhsv(247, 44%, 97%)
CMYKcmyk(39.1%, 44.4%, 0%, 2.7%)
CIE-LABlab(62.95, 30.55, -53.52)
CIE-LCHlch(62.95, 61.63, 299.72°)
OKLaboklab(69.27% 0.046 -0.1511)
OKLCHoklch(69.27% 0.158 286.9)
XYZxyz(38.7895, 31.5323, 92.8313)
Luminance0.3153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978AF8 #EBF88A
analogous
#8AB4F8 #978AF8 #CE8AF8
triadic
#978AF8 #F8978A #8AF897
tetradic
#978AF8 #F88AB4 #EBF88A #8AF8CE
square
#978AF8 #F88AB4 #EBF88A #8AF8CE
split-complementary
#978AF8 #F8CE8A #B4F88A
monochromatic
#3017F1 #6450F5 #978AF8 #CAC4FB #E5E2FD

Accessibility & contrast

On white

2.87
#978AF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#978AF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978AF8
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978AF8#FFFFFF#000000##000000
##978AF81.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#629BFC
Deuteranopia (green-blind)
#6195F5
Tritanopia (blue-blind)
#7CA0B5
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #978af8;
/* rgb */ color: rgb(151, 138, 248);
/* oklch */ color: oklch(69.3% 0.158 286.9);
Tailwind
colors: {
  custom: {
    50: '#b9acfb',
    500: '#978af8',
    950: '#000000',
  },
}
SCSS
$custom: #978af8;
$custom-light: #b9acfb;
$custom-dark: #000000;
JSON
{
  "hex": "#978af8",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 248
  },
  "hsl": {
    "h": 247.091,
    "s": 88.71,
    "l": 75.686
  },
  "oklch": {
    "l": 0.69274,
    "c": 0.15795,
    "h": 286.9
  },
  "luminance": 0.31534
}

Semantic roles & 50–950 ramp

primary
#978AF8
secondary
#F2F5D6
accent
#E500CA
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #978AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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