#978CEB#978CEB

#978CEB is a light, vivid blue. Relative luminance 0.313; OKLCH L 68.9% C 0.137 H 287.5°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#978CEB
RGBrgb(151, 140, 235)
HSLhsl(247, 70%, 74%)
HSVhsv(247, 40%, 92%)
CMYKcmyk(35.7%, 40.4%, 0%, 7.8%)
CIE-LABlab(62.79, 25.91, -46.62)
CIE-LCHlch(62.79, 53.34, 299.07°)
OKLaboklab(68.94% 0.0414 -0.131)
OKLCHoklch(68.94% 0.137 287.5)
XYZxyz(37.1319, 31.3326, 82.6725)
Luminance0.3133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978CEB #E0EB8C
analogous
#8CB0EB #978CEB #C68CEB
triadic
#978CEB #EB978C #8CEB97
tetradic
#978CEB #EB8CB0 #E0EB8C #8CEBC6
square
#978CEB #EB8CB0 #E0EB8C #8CEBC6
split-complementary
#978CEB #EBC68C #B0EB8C
monochromatic
#3A25D7 #6858E2 #978CEB #C6C0F4 #E7E5FA

Accessibility & contrast

On white

2.89
#978CEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#978CEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978CEB
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978CEB#FFFFFF#000000##000000
##978CEB1.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9AEF
Deuteranopia (green-blind)
#6C95E9
Tritanopia (blue-blind)
#819EB0
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #978ceb;
/* rgb */ color: rgb(151, 140, 235);
/* oklch */ color: oklch(68.9% 0.137 287.5);
Tailwind
colors: {
  custom: {
    50: '#b8adf2',
    500: '#978ceb',
    950: '#000000',
  },
}
SCSS
$custom: #978ceb;
$custom-light: #b8adf2;
$custom-dark: #000000;
JSON
{
  "hex": "#978ceb",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 235
  },
  "hsl": {
    "h": 246.947,
    "s": 70.37,
    "l": 73.529
  },
  "oklch": {
    "l": 0.68935,
    "c": 0.13735,
    "h": 287.5
  },
  "luminance": 0.31334
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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