#978EF5#978EF5

#978EF5 is a light, vivid blue. Relative luminance 0.325; OKLCH L 69.8% C 0.148 H 285.9°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#978EF5
RGBrgb(151, 142, 245)
HSLhsl(245, 84%, 76%)
HSVhsv(245, 42%, 96%)
CMYKcmyk(38.4%, 42%, 0%, 3.9%)
CIE-LABlab(63.77, 27.44, -50.58)
CIE-LCHlch(63.77, 57.54, 298.48°)
OKLaboklab(69.84% 0.0405 -0.1425)
OKLCHoklch(69.84% 0.148 285.9)
XYZxyz(38.9123, 32.5166, 90.5946)
Luminance0.3252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978EF5 #ECF58E
analogous
#8EB8F5 #978EF5 #CA8EF5
triadic
#978EF5 #F5978E #8EF597
tetradic
#978EF5 #F58EB8 #ECF58E #8EF5CA
square
#978EF5 #F58EB8 #ECF58E #8EF5CA
split-complementary
#978EF5 #F5CA8E #B8F58E
monochromatic
#301EEB #6356F0 #978EF5 #CBC6FA #E5E3FD

Accessibility & contrast

On white

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

On black

7.50
#978EF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978EF5
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978EF5#FFFFFF#000000##000000
##978EF51.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9DF9
Deuteranopia (green-blind)
#6898F3
Tritanopia (blue-blind)
#7DA2B6
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #978ef5;
/* rgb */ color: rgb(151, 142, 245);
/* oklch */ color: oklch(69.8% 0.148 285.9);
Tailwind
colors: {
  custom: {
    50: '#b9aff9',
    500: '#978ef5',
    950: '#000000',
  },
}
SCSS
$custom: #978ef5;
$custom-light: #b9aff9;
$custom-dark: #000000;
JSON
{
  "hex": "#978ef5",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 245
  },
  "hsl": {
    "h": 245.243,
    "s": 83.74,
    "l": 75.882
  },
  "oklch": {
    "l": 0.69841,
    "c": 0.14816,
    "h": 285.9
  },
  "luminance": 0.32518
}

Semantic roles & 50–950 ramp

primary
#978EF5
secondary
#F2F4D7
accent
#E005CD
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #978EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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