#978EF6#978EF6

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

Color values

HEX#978EF6
RGBrgb(151, 142, 246)
HSLhsl(245, 85%, 76%)
HSVhsv(245, 42%, 96%)
CMYKcmyk(38.6%, 42.3%, 0%, 3.5%)
CIE-LABlab(63.82, 27.71, -51.05)
CIE-LCHlch(63.82, 58.09, 298.50°)
OKLaboklab(69.9% 0.0407 -0.1439)
OKLCHoklch(69.9% 0.15 285.8)
XYZxyz(39.0654, 32.5778, 91.4007)
Luminance0.3258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978EF6 #EDF68E
analogous
#8EB9F6 #978EF6 #CB8EF6
triadic
#978EF6 #F6978E #8EF697
tetradic
#978EF6 #F68EB9 #EDF68E #8EF6CB
square
#978EF6 #F68EB9 #EDF68E #8EF6CB
split-complementary
#978EF6 #F6CB8E #B9F68E
monochromatic
#2F1DED #6355F1 #978EF6 #CBC7FB #E5E3FD

Accessibility & contrast

On white

2.79
#978EF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#978EF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978EF6
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978EF6#FFFFFF#000000##000000
##978EF61.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9EFA
Deuteranopia (green-blind)
#6798F4
Tritanopia (blue-blind)
#7CA2B6
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #978ef6;
/* rgb */ color: rgb(151, 142, 246);
/* oklch */ color: oklch(69.9% 0.150 285.8);
Tailwind
colors: {
  custom: {
    50: '#b9aff9',
    500: '#978ef6',
    950: '#000000',
  },
}
SCSS
$custom: #978ef6;
$custom-light: #b9aff9;
$custom-dark: #000000;
JSON
{
  "hex": "#978ef6",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 246
  },
  "hsl": {
    "h": 245.192,
    "s": 85.246,
    "l": 76.078
  },
  "oklch": {
    "l": 0.69895,
    "c": 0.14953,
    "h": 285.8
  },
  "luminance": 0.32579
}

Semantic roles & 50–950 ramp

primary
#978EF6
secondary
#F2F5D6
accent
#E204CF
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #978EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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