#978AFE#978AFE

#978AFE is a light, vivid blue. Relative luminance 0.319; OKLCH L 69.6% C 0.166 H 286.4°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#978AFE
RGBrgb(151, 138, 254)
HSLhsl(247, 98%, 77%)
HSVhsv(247, 46%, 100%)
CMYKcmyk(40.6%, 45.7%, 0%, 0.4%)
CIE-LABlab(63.27, 32.19, -56.31)
CIE-LCHlch(63.27, 64.86, 299.76°)
OKLaboklab(69.61% 0.0468 -0.1593)
OKLCHoklch(69.61% 0.166 286.4)
XYZxyz(39.7353, 31.9106, 97.8125)
Luminance0.3191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978AFE #F1FE8A
analogous
#8AB7FE #978AFE #D18AFE
triadic
#978AFE #FE978A #8AFE97
tetradic
#978AFE #FE8AB7 #F1FE8A #8AFED1
square
#978AFE #FE8AB7 #F1FE8A #8AFED1
split-complementary
#978AFE #FED18A #B7FE8A
monochromatic
#2B11FD #614DFD #978AFE #CDC7FF #E4E1FF

Accessibility & contrast

On white

2.84
#978AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#978AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978AFE
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978AFE#FFFFFF#000000##000000
##978AFE1.002.847.387.38
#FFFFFF2.841.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9CFF
Deuteranopia (green-blind)
#5C96FB
Tritanopia (blue-blind)
#79A1B8
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #978afe;
/* rgb */ color: rgb(151, 138, 254);
/* oklch */ color: oklch(69.6% 0.166 286.4);
Tailwind
colors: {
  custom: {
    50: '#baacff',
    500: '#978afe',
    950: '#000000',
  },
}
SCSS
$custom: #978afe;
$custom-light: #baacff;
$custom-dark: #000000;
JSON
{
  "hex": "#978afe",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 254
  },
  "hsl": {
    "h": 246.724,
    "s": 98.305,
    "l": 76.863
  },
  "oklch": {
    "l": 0.69614,
    "c": 0.166,
    "h": 286.4
  },
  "luminance": 0.31912
}

Semantic roles & 50–950 ramp

primary
#978AFE
secondary
#F3F7D4
accent
#E600CC
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121018
muted
#817F86

Preview Lab

Preview with #978AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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