#978EE2#978EE2

#978EE2 is a light, vivid blue. Relative luminance 0.314; OKLCH L 68.8% C 0.122 H 287.7°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#978EE2
RGBrgb(151, 142, 226)
HSLhsl(246, 59%, 72%)
HSVhsv(246, 37%, 89%)
CMYKcmyk(33.2%, 37.2%, 0%, 11.4%)
CIE-LABlab(62.86, 22.40, -41.53)
CIE-LCHlch(62.86, 47.18, 298.34°)
OKLaboklab(68.85% 0.037 -0.1162)
OKLCHoklch(68.85% 0.122 287.7)
XYZxyz(36.1593, 31.4154, 76.0954)
Luminance0.3142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978EE2 #D9E28E
analogous
#8EAFE2 #978EE2 #C18EE2
triadic
#978EE2 #E2978E #8EE297
tetradic
#978EE2 #E28EAF #D9E28E #8EE2C1
square
#978EE2 #E28EAF #D9E28E #8EE2C1
split-complementary
#978EE2 #E2C18E #AFE28E
monochromatic
#4232C3 #6A5DD6 #978EE2 #C4BFEE #E9E7F9

Accessibility & contrast

On white

2.88
#978EE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#978EE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978EE2
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978EE2#FFFFFF#000000##000000
##978EE21.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#749AE5
Deuteranopia (green-blind)
#7496E0
Tritanopia (blue-blind)
#849EAD
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #978ee2;
/* rgb */ color: rgb(151, 142, 226);
/* oklch */ color: oklch(68.8% 0.122 287.7);
Tailwind
colors: {
  custom: {
    50: '#b8afeb',
    500: '#978ee2',
    950: '#000000',
  },
}
SCSS
$custom: #978ee2;
$custom-light: #b8afeb;
$custom-dark: #000000;
JSON
{
  "hex": "#978ee2",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 226
  },
  "hsl": {
    "h": 246.429,
    "s": 59.155,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68849,
    "c": 0.12191,
    "h": 287.7
  },
  "luminance": 0.31416
}

Semantic roles & 50–950 ramp

primary
#978EE2
secondary
#EEF0DB
accent
#C71FB5
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#121016
muted
#817F84

Preview Lab

Preview with #978EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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