#978DF7#978DF7

#978DF7 is a light, vivid blue. Relative luminance 0.323; OKLCH L 69.8% C 0.152 H 286.0°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#978DF7
RGBrgb(151, 141, 247)
HSLhsl(246, 87%, 76%)
HSVhsv(246, 43%, 97%)
CMYKcmyk(38.9%, 42.9%, 0%, 3.1%)
CIE-LABlab(63.63, 28.56, -51.90)
CIE-LCHlch(63.63, 59.24, 298.82°)
OKLaboklab(69.77% 0.0421 -0.1464)
OKLCHoklch(69.77% 0.152 286)
XYZxyz(39.0712, 32.3431, 92.1619)
Luminance0.3234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978DF7 #EDF78D
analogous
#8DB8F7 #978DF7 #CC8DF7
triadic
#978DF7 #F7978D #8DF797
tetradic
#978DF7 #F78DB8 #EDF78D #8DF7CC
square
#978DF7 #F78DB8 #EDF78D #8DF7CC
split-complementary
#978DF7 #F7CC8D #B8F78D
monochromatic
#2F1BEF #6354F3 #978DF7 #CBC6FB #E5E2FD

Accessibility & contrast

On white

2.81
#978DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#978DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978DF7
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978DF7#FFFFFF#000000##000000
##978DF71.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#679DFB
Deuteranopia (green-blind)
#6597F5
Tritanopia (blue-blind)
#7CA2B6
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #978df7;
/* rgb */ color: rgb(151, 141, 247);
/* oklch */ color: oklch(69.8% 0.152 286.0);
Tailwind
colors: {
  custom: {
    50: '#b9aefa',
    500: '#978df7',
    950: '#000000',
  },
}
SCSS
$custom: #978df7;
$custom-light: #b9aefa;
$custom-dark: #000000;
JSON
{
  "hex": "#978df7",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 247
  },
  "hsl": {
    "h": 245.66,
    "s": 86.885,
    "l": 76.078
  },
  "oklch": {
    "l": 0.69766,
    "c": 0.15232,
    "h": 286
  },
  "luminance": 0.32344
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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