#978CF7#978CF7

#978CF7 is a light, vivid blue. Relative luminance 0.321; OKLCH L 69.6% C 0.154 H 286.4°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#978CF7
RGBrgb(151, 140, 247)
HSLhsl(246, 87%, 76%)
HSVhsv(246, 43%, 97%)
CMYKcmyk(38.9%, 43.3%, 0%, 3.1%)
CIE-LABlab(63.38, 29.13, -52.29)
CIE-LCHlch(63.38, 59.85, 299.13°)
OKLaboklab(69.58% 0.0434 -0.1475)
OKLCHoklch(69.58% 0.154 286.4)
XYZxyz(38.9244, 32.0496, 92.1130)
Luminance0.3205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978CF7 #ECF78C
analogous
#8CB6F7 #978CF7 #CC8CF7
triadic
#978CF7 #F7978C #8CF797
tetradic
#978CF7 #F78CB6 #ECF78C #8CF7CC
square
#978CF7 #F78CB6 #ECF78C #8CF7CC
split-complementary
#978CF7 #F7CC8C #B6F78C
monochromatic
#301AEF #6353F3 #978CF7 #CBC5FB #E5E2FD

Accessibility & contrast

On white

2.83
#978CF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.41
#978CF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978CF7
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978CF7#FFFFFF#000000##000000
##978CF71.002.837.417.41
#FFFFFF2.831.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#669CFB
Deuteranopia (green-blind)
#6496F4
Tritanopia (blue-blind)
#7CA1B6
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #978cf7;
/* rgb */ color: rgb(151, 140, 247);
/* oklch */ color: oklch(69.6% 0.154 286.4);
Tailwind
colors: {
  custom: {
    50: '#b9adfa',
    500: '#978cf7',
    950: '#000000',
  },
}
SCSS
$custom: #978cf7;
$custom-light: #b9adfa;
$custom-dark: #000000;
JSON
{
  "hex": "#978cf7",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 247
  },
  "hsl": {
    "h": 246.168,
    "s": 86.992,
    "l": 75.882
  },
  "oklch": {
    "l": 0.69583,
    "c": 0.15374,
    "h": 286.4
  },
  "luminance": 0.32051
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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