#978AEF#978AEF

#978AEF is a light, vivid blue. Relative luminance 0.310; OKLCH L 68.8% C 0.146 H 287.8°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#978AEF
RGBrgb(151, 138, 239)
HSLhsl(248, 76%, 74%)
HSVhsv(248, 42%, 94%)
CMYKcmyk(36.8%, 42.3%, 0%, 6.3%)
CIE-LABlab(62.50, 28.13, -49.29)
CIE-LCHlch(62.50, 56.75, 299.72°)
OKLaboklab(68.78% 0.0447 -0.1388)
OKLCHoklch(68.78% 0.146 287.8)
XYZxyz(37.4267, 30.9871, 85.6538)
Luminance0.3099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978AEF #E2EF8A
analogous
#8AB0EF #978AEF #CA8AEF
triadic
#978AEF #EF978A #8AEF97
tetradic
#978AEF #EF8AB0 #E2EF8A #8AEFCA
square
#978AEF #EF8AB0 #E2EF8A #8AEFCA
split-complementary
#978AEF #EFCA8A #B0EF8A
monochromatic
#381FE0 #6754E8 #978AEF #C7C0F6 #E7E4FB

Accessibility & contrast

On white

2.92
#978AEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#978AEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978AEF
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978AEF#FFFFFF#000000##000000
##978AEF1.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#689AF3
Deuteranopia (green-blind)
#6795ED
Tritanopia (blue-blind)
#809EB1
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #978aef;
/* rgb */ color: rgb(151, 138, 239);
/* oklch */ color: oklch(68.8% 0.146 287.8);
Tailwind
colors: {
  custom: {
    50: '#b9acf5',
    500: '#978aef',
    950: '#000000',
  },
}
SCSS
$custom: #978aef;
$custom-light: #b9acf5;
$custom-dark: #000000;
JSON
{
  "hex": "#978aef",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 239
  },
  "hsl": {
    "h": 247.723,
    "s": 75.94,
    "l": 73.922
  },
  "oklch": {
    "l": 0.68779,
    "c": 0.14576,
    "h": 287.8
  },
  "luminance": 0.30988
}

Semantic roles & 50–950 ramp

primary
#978AEF
secondary
#F0F3D8
accent
#D80DBE
background
#FBFAFF
surface
#F6F4FE
border
#D0CED6
text
#121017
muted
#817F85

Preview Lab

Preview with #978AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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