#978AF2#978AF2

#978AF2 is a light, vivid blue. Relative luminance 0.312; OKLCH L 68.9% C 0.150 H 287.5°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#978AF2
RGBrgb(151, 138, 242)
HSLhsl(248, 80%, 75%)
HSVhsv(248, 43%, 95%)
CMYKcmyk(37.6%, 43%, 0%, 5.1%)
CIE-LABlab(62.65, 28.94, -50.70)
CIE-LCHlch(62.65, 58.38, 299.71°)
OKLaboklab(68.94% 0.0451 -0.1429)
OKLCHoklch(68.94% 0.15 287.5)
XYZxyz(37.8736, 31.1659, 88.0073)
Luminance0.3117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978AF2 #E5F28A
analogous
#8AB1F2 #978AF2 #CB8AF2
triadic
#978AF2 #F2978A #8AF297
tetradic
#978AF2 #F28AB1 #E5F28A #8AF2CB
square
#978AF2 #F28AB1 #E5F28A #8AF2CB
split-complementary
#978AF2 #F2CB8A #B1F28A
monochromatic
#351CE6 #6653EC #978AF2 #C8C1F8 #E7E3FC

Accessibility & contrast

On white

2.90
#978AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#978AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978AF2
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978AF2#FFFFFF#000000##000000
##978AF21.002.907.237.23
#FFFFFF2.901.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#669AF6
Deuteranopia (green-blind)
#6595F0
Tritanopia (blue-blind)
#7E9EB2
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #978af2;
/* rgb */ color: rgb(151, 138, 242);
/* oklch */ color: oklch(68.9% 0.150 287.5);
Tailwind
colors: {
  custom: {
    50: '#b9acf7',
    500: '#978af2',
    950: '#000000',
  },
}
SCSS
$custom: #978af2;
$custom-light: #b9acf7;
$custom-dark: #000000;
JSON
{
  "hex": "#978af2",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 242
  },
  "hsl": {
    "h": 247.5,
    "s": 80,
    "l": 74.51
  },
  "oklch": {
    "l": 0.68942,
    "c": 0.14983,
    "h": 287.5
  },
  "luminance": 0.31167
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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