#978BFB#978BFB

#978BFB is a light, vivid blue. Relative luminance 0.320; OKLCH L 69.6% C 0.161 H 286.3°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#978BFB
RGBrgb(151, 139, 251)
HSLhsl(246, 93%, 76%)
HSVhsv(246, 45%, 98%)
CMYKcmyk(39.8%, 44.6%, 0%, 1.6%)
CIE-LABlab(63.35, 30.80, -54.54)
CIE-LCHlch(63.35, 62.63, 299.45°)
OKLaboklab(69.62% 0.0452 -0.1541)
OKLCHoklch(69.62% 0.161 286.3)
XYZxyz(39.4028, 32.0082, 95.3502)
Luminance0.3201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978BFB #EFFB8B
analogous
#8BB7FB #978BFB #CF8BFB
triadic
#978BFB #FB978B #8BFB97
tetradic
#978BFB #FB8BB7 #EFFB8B #8BFBCF
square
#978BFB #FB8BB7 #EFFB8B #8BFBCF
split-complementary
#978BFB #FBCF8B #B7FB8B
monochromatic
#2D15F7 #6250F9 #978BFB #CCC6FD #E4E1FE

Accessibility & contrast

On white

2.84
#978BFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.40
#978BFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978BFB
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978BFB#FFFFFF#000000##000000
##978BFB1.002.847.407.40
#FFFFFF2.841.0021.0021.00
#0000007.4021.001.001.00
##0000007.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#629CFF
Deuteranopia (green-blind)
#6096F8
Tritanopia (blue-blind)
#7AA1B7
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #978bfb;
/* rgb */ color: rgb(151, 139, 251);
/* oklch */ color: oklch(69.6% 0.161 286.3);
Tailwind
colors: {
  custom: {
    50: '#baadfd',
    500: '#978bfb',
    950: '#000000',
  },
}
SCSS
$custom: #978bfb;
$custom-light: #baadfd;
$custom-dark: #000000;
JSON
{
  "hex": "#978bfb",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 251
  },
  "hsl": {
    "h": 246.429,
    "s": 93.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.69624,
    "c": 0.16056,
    "h": 286.3
  },
  "luminance": 0.3201
}

Semantic roles & 50–950 ramp

primary
#978BFB
secondary
#F3F6D5
accent
#E600CD
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121018
muted
#817F86

Preview Lab

Preview with #978BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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