#978AFB#978AFB

#978AFB is a light, vivid blue. Relative luminance 0.317; OKLCH L 69.4% C 0.162 H 286.6°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#978AFB
RGBrgb(151, 138, 251)
HSLhsl(247, 93%, 76%)
HSVhsv(247, 45%, 98%)
CMYKcmyk(39.8%, 45%, 0%, 1.6%)
CIE-LABlab(63.11, 31.37, -54.92)
CIE-LCHlch(63.11, 63.24, 299.74°)
OKLaboklab(69.44% 0.0464 -0.1552)
OKLCHoklch(69.44% 0.162 286.6)
XYZxyz(39.2587, 31.7199, 95.3021)
Luminance0.3172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978AFB #EEFB8A
analogous
#8AB6FB #978AFB #D08AFB
triadic
#978AFB #FB978A #8AFB97
tetradic
#978AFB #FB8AB6 #EEFB8A #8AFBD0
square
#978AFB #FB8AB6 #EEFB8A #8AFBD0
split-complementary
#978AFB #FBD08A #B6FB8A
monochromatic
#2E14F7 #624FF9 #978AFB #CCC5FD #E5E1FE

Accessibility & contrast

On white

2.86
#978AFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#978AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978AFB
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978AFB#FFFFFF#000000##000000
##978AFB1.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#609CFF
Deuteranopia (green-blind)
#5E96F8
Tritanopia (blue-blind)
#7BA1B6
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #978afb;
/* rgb */ color: rgb(151, 138, 251);
/* oklch */ color: oklch(69.4% 0.162 286.6);
Tailwind
colors: {
  custom: {
    50: '#baacfd',
    500: '#978afb',
    950: '#000000',
  },
}
SCSS
$custom: #978afb;
$custom-light: #baacfd;
$custom-dark: #000000;
JSON
{
  "hex": "#978afb",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 251
  },
  "hsl": {
    "h": 246.903,
    "s": 93.388,
    "l": 76.275
  },
  "oklch": {
    "l": 0.69443,
    "c": 0.16198,
    "h": 286.6
  },
  "luminance": 0.31721
}

Semantic roles & 50–950 ramp

primary
#978AFB
secondary
#F2F6D5
accent
#E600CB
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121018
muted
#817F86

Preview Lab

Preview with #978AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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