#978AFD#978AFD

#978AFD is a light, vivid blue. Relative luminance 0.318; OKLCH L 69.6% C 0.165 H 286.5°. Best body text is #000000 at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#978AFD
RGBrgb(151, 138, 253)
HSLhsl(247, 97%, 77%)
HSVhsv(247, 45%, 99%)
CMYKcmyk(40.3%, 45.5%, 0%, 0.8%)
CIE-LABlab(63.22, 31.92, -55.84)
CIE-LCHlch(63.22, 64.32, 299.75°)
OKLaboklab(69.56% 0.0467 -0.1579)
OKLCHoklch(69.56% 0.165 286.5)
XYZxyz(39.5756, 31.8467, 96.9713)
Luminance0.3185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978AFD #F0FD8A
analogous
#8AB7FD #978AFD #D18AFD
triadic
#978AFD #FD978A #8AFD97
tetradic
#978AFD #FD8AB7 #F0FD8A #8AFDD1
square
#978AFD #FD8AB7 #F0FD8A #8AFDD1
split-complementary
#978AFD #FDD18A #B7FD8A
monochromatic
#2C12FB #624EFC #978AFD #CCC6FE #E4E1FE

Accessibility & contrast

On white

2.85
#978AFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.37
#978AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978AFD
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978AFD#FFFFFF#000000##000000
##978AFD1.002.857.377.37
#FFFFFF2.851.0021.0021.00
#0000007.3721.001.001.00
##0000007.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9CFF
Deuteranopia (green-blind)
#5D96FA
Tritanopia (blue-blind)
#7AA1B7
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #978afd;
/* rgb */ color: rgb(151, 138, 253);
/* oklch */ color: oklch(69.6% 0.165 286.5);
Tailwind
colors: {
  custom: {
    50: '#baacfe',
    500: '#978afd',
    950: '#000000',
  },
}
SCSS
$custom: #978afd;
$custom-light: #baacfe;
$custom-dark: #000000;
JSON
{
  "hex": "#978afd",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 253
  },
  "hsl": {
    "h": 246.783,
    "s": 96.639,
    "l": 76.667
  },
  "oklch": {
    "l": 0.69557,
    "c": 0.16466,
    "h": 286.5
  },
  "luminance": 0.31848
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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