#978BF2#978BF2

#978BF2 is a light, vivid blue. Relative luminance 0.315; OKLCH L 69.1% C 0.148 H 287.2°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#978BF2
RGBrgb(151, 139, 242)
HSLhsl(247, 80%, 75%)
HSVhsv(247, 43%, 95%)
CMYKcmyk(37.6%, 42.6%, 0%, 5.1%)
CIE-LABlab(62.89, 28.36, -50.32)
CIE-LCHlch(62.89, 57.76, 299.41°)
OKLaboklab(69.13% 0.0439 -0.1418)
OKLCHoklch(69.13% 0.148 287.2)
XYZxyz(38.0177, 31.4542, 88.0554)
Luminance0.3145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978BF2 #E6F28B
analogous
#8BB3F2 #978BF2 #CA8BF2
triadic
#978BF2 #F2978B #8BF297
tetradic
#978BF2 #F28BB3 #E6F28B #8BF2CA
square
#978BF2 #F28BB3 #E6F28B #8BF2CA
split-complementary
#978BF2 #F2CA8B #B3F28B
monochromatic
#341DE6 #6654EC #978BF2 #C8C2F8 #E6E3FC

Accessibility & contrast

On white

2.88
#978BF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.29
#978BF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978BF2
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978BF2#FFFFFF#000000##000000
##978BF21.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#679BF6
Deuteranopia (green-blind)
#6695F0
Tritanopia (blue-blind)
#7E9FB3
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #978bf2;
/* rgb */ color: rgb(151, 139, 242);
/* oklch */ color: oklch(69.1% 0.148 287.2);
Tailwind
colors: {
  custom: {
    50: '#b9adf7',
    500: '#978bf2',
    950: '#000000',
  },
}
SCSS
$custom: #978bf2;
$custom-light: #b9adf7;
$custom-dark: #000000;
JSON
{
  "hex": "#978bf2",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 242
  },
  "hsl": {
    "h": 246.99,
    "s": 79.845,
    "l": 74.706
  },
  "oklch": {
    "l": 0.69125,
    "c": 0.14839,
    "h": 287.2
  },
  "luminance": 0.31455
}

Semantic roles & 50–950 ramp

primary
#978BF2
secondary
#F0F4D7
accent
#DC09C4
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #978BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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