#978AEB#978AEB

#978AEB is a light, vivid blue. Relative luminance 0.308; OKLCH L 68.6% C 0.140 H 288.3°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#978AEB
RGBrgb(151, 138, 235)
HSLhsl(248, 71%, 73%)
HSVhsv(248, 41%, 92%)
CMYKcmyk(35.7%, 41.3%, 0%, 7.8%)
CIE-LABlab(62.30, 27.07, -47.39)
CIE-LCHlch(62.30, 54.57, 299.73°)
OKLaboklab(68.56% 0.044 -0.1332)
OKLCHoklch(68.56% 0.14 288.3)
XYZxyz(36.8423, 30.7534, 82.5760)
Luminance0.3075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978AEB #DEEB8A
analogous
#8AADEB #978AEB #C78AEB
triadic
#978AEB #EB978A #8AEB97
tetradic
#978AEB #EB8AAD #DEEB8A #8AEBC7
square
#978AEB #EB8AAD #DEEB8A #8AEBC7
split-complementary
#978AEB #EBC78A #ADEB8A
monochromatic
#3C25D6 #6956E2 #978AEB #C5BEF4 #E8E5FB

Accessibility & contrast

On white

2.94
#978AEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.15
#978AEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978AEB
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978AEB#FFFFFF#000000##000000
##978AEB1.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A99EF
Deuteranopia (green-blind)
#6A94E9
Tritanopia (blue-blind)
#819DAF
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #978aeb;
/* rgb */ color: rgb(151, 138, 235);
/* oklch */ color: oklch(68.6% 0.140 288.3);
Tailwind
colors: {
  custom: {
    50: '#b8acf2',
    500: '#978aeb',
    950: '#000000',
  },
}
SCSS
$custom: #978aeb;
$custom-light: #b8acf2;
$custom-dark: #000000;
JSON
{
  "hex": "#978aeb",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 235
  },
  "hsl": {
    "h": 248.041,
    "s": 70.803,
    "l": 73.137
  },
  "oklch": {
    "l": 0.68564,
    "c": 0.14029,
    "h": 288.3
  },
  "luminance": 0.30754
}

Semantic roles & 50–950 ramp

primary
#978AEB
secondary
#EFF2D9
accent
#D313B9
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#121017
muted
#817F85

Preview Lab

Preview with #978AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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