#978DFA#978DFA

#978DFA is a light, vivid blue. Relative luminance 0.325; OKLCH L 69.9% C 0.156 H 285.8°. Best body text is #000000 at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#978DFA
RGBrgb(151, 141, 250)
HSLhsl(246, 92%, 77%)
HSVhsv(246, 44%, 98%)
CMYKcmyk(39.6%, 43.6%, 0%, 2%)
CIE-LABlab(63.78, 29.37, -53.31)
CIE-LCHlch(63.78, 60.86, 298.86°)
OKLaboklab(69.93% 0.0426 -0.1505)
OKLCHoklch(69.93% 0.156 285.8)
XYZxyz(39.5378, 32.5298, 94.6196)
Luminance0.3253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978DFA #F0FA8D
analogous
#8DBAFA #978DFA #CE8DFA
triadic
#978DFA #FA978D #8DFA97
tetradic
#978DFA #FA8DBA #F0FA8D #8DFACE
square
#978DFA #FA8DBA #F0FA8D #8DFACE
split-complementary
#978DFA #FACE8D #BAFA8D
monochromatic
#2C18F5 #6252F7 #978DFA #CCC8FD #E4E2FE

Accessibility & contrast

On white

2.80
#978DFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.51
#978DFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978DFA
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978DFA#FFFFFF#000000##000000
##978DFA1.002.807.517.51
#FFFFFF2.801.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#669EFE
Deuteranopia (green-blind)
#6397F7
Tritanopia (blue-blind)
#7BA3B7
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #978dfa;
/* rgb */ color: rgb(151, 141, 250);
/* oklch */ color: oklch(69.9% 0.156 285.8);
Tailwind
colors: {
  custom: {
    50: '#baaefc',
    500: '#978dfa',
    950: '#000000',
  },
}
SCSS
$custom: #978dfa;
$custom-light: #baaefc;
$custom-dark: #000000;
JSON
{
  "hex": "#978dfa",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 250
  },
  "hsl": {
    "h": 245.505,
    "s": 91.597,
    "l": 76.667
  },
  "oklch": {
    "l": 0.69931,
    "c": 0.15638,
    "h": 285.8
  },
  "luminance": 0.32531
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978DFA

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

Preview Lab → · Contrast checker → · Palette generator →

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