#978CFA#978CFA

#978CFA is a light, vivid blue. Relative luminance 0.322; OKLCH L 69.7% C 0.158 H 286.1°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#978CFA
RGBrgb(151, 140, 250)
HSLhsl(246, 92%, 76%)
HSVhsv(246, 44%, 98%)
CMYKcmyk(39.6%, 44%, 0%, 2%)
CIE-LABlab(63.54, 29.95, -53.69)
CIE-LCHlch(63.54, 61.48, 299.15°)
OKLaboklab(69.75% 0.0438 -0.1516)
OKLCHoklch(69.75% 0.158 286.1)
XYZxyz(39.3910, 32.2362, 94.5707)
Luminance0.3224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978CFA #EFFA8C
analogous
#8CB8FA #978CFA #CE8CFA
triadic
#978CFA #FA978C #8CFA97
tetradic
#978CFA #FA8CB8 #EFFA8C #8CFACE
square
#978CFA #FA8CB8 #EFFA8C #8CFACE
split-complementary
#978CFA #FACE8C #B8FA8C
monochromatic
#2D17F5 #6251F7 #978CFA #CCC7FD #E4E2FE

Accessibility & contrast

On white

2.82
#978CFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.45
#978CFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978CFA
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978CFA#FFFFFF#000000##000000
##978CFA1.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#649DFE
Deuteranopia (green-blind)
#6297F7
Tritanopia (blue-blind)
#7BA2B7
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #978cfa;
/* rgb */ color: rgb(151, 140, 250);
/* oklch */ color: oklch(69.7% 0.158 286.1);
Tailwind
colors: {
  custom: {
    50: '#baadfc',
    500: '#978cfa',
    950: '#000000',
  },
}
SCSS
$custom: #978cfa;
$custom-light: #baadfc;
$custom-dark: #000000;
JSON
{
  "hex": "#978cfa",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 250
  },
  "hsl": {
    "h": 246,
    "s": 91.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.69749,
    "c": 0.1578,
    "h": 286.1
  },
  "luminance": 0.32238
}

Semantic roles & 50–950 ramp

primary
#978CFA
secondary
#F3F6D5
accent
#E600CF
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #978CFA

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

Preview Lab → · Contrast checker → · Palette generator →

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