#978AF7#978AF7

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

Color values

HEX#978AF7
RGBrgb(151, 138, 247)
HSLhsl(247, 87%, 75%)
HSVhsv(247, 44%, 97%)
CMYKcmyk(38.9%, 44.1%, 0%, 3.1%)
CIE-LABlab(62.90, 30.28, -53.05)
CIE-LCHlch(62.90, 61.08, 299.72°)
OKLaboklab(69.22% 0.0459 -0.1497)
OKLCHoklch(69.22% 0.157 287)
XYZxyz(38.6348, 31.4704, 92.0164)
Luminance0.3147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978AF7 #EAF78A
analogous
#8AB3F7 #978AF7 #CD8AF7
triadic
#978AF7 #F7978A #8AF797
tetradic
#978AF7 #F78AB3 #EAF78A #8AF7CD
square
#978AF7 #F78AB3 #EAF78A #8AF7CD
split-complementary
#978AF7 #F7CD8A #B3F78A
monochromatic
#3117EF #6451F3 #978AF7 #CAC3FB #E6E2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978AF7#FFFFFF#000000##000000
##978AF71.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)
#639BFB
Deuteranopia (green-blind)
#6195F4
Tritanopia (blue-blind)
#7CA0B5
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #978af7;
/* rgb */ color: rgb(151, 138, 247);
/* oklch */ color: oklch(69.2% 0.157 287.0);
Tailwind
colors: {
  custom: {
    50: '#b9acfa',
    500: '#978af7',
    950: '#000000',
  },
}
SCSS
$custom: #978af7;
$custom-light: #b9acfa;
$custom-dark: #000000;
JSON
{
  "hex": "#978af7",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 247
  },
  "hsl": {
    "h": 247.156,
    "s": 87.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.69218,
    "c": 0.15661,
    "h": 287
  },
  "luminance": 0.31472
}

Semantic roles & 50–950 ramp

primary
#978AF7
secondary
#F1F5D6
accent
#E402C9
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #978AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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