#978AFA#978AFA

#978AFA is a light, vivid blue. Relative luminance 0.317; OKLCH L 69.4% C 0.161 H 286.7°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#978AFA
RGBrgb(151, 138, 250)
HSLhsl(247, 92%, 76%)
HSVhsv(247, 45%, 98%)
CMYKcmyk(39.6%, 44.8%, 0%, 2%)
CIE-LABlab(63.06, 31.10, -54.45)
CIE-LCHlch(63.06, 62.70, 299.73°)
OKLaboklab(69.39% 0.0463 -0.1538)
OKLCHoklch(69.39% 0.161 286.7)
XYZxyz(39.1015, 31.6570, 94.4742)
Luminance0.3166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978AFA #EDFA8A
analogous
#8AB5FA #978AFA #CF8AFA
triadic
#978AFA #FA978A #8AFA97
tetradic
#978AFA #FA8AB5 #EDFA8A #8AFACF
square
#978AFA #FA8AB5 #EDFA8A #8AFACF
split-complementary
#978AFA #FACF8A #B5FA8A
monochromatic
#2F15F5 #634FF7 #978AFA #CBC5FD #E5E2FE

Accessibility & contrast

On white

2.86
#978AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.33
#978AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978AFA
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978AFA#FFFFFF#000000##000000
##978AFA1.002.867.337.33
#FFFFFF2.861.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#619CFE
Deuteranopia (green-blind)
#5F96F7
Tritanopia (blue-blind)
#7BA0B6
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #978afa;
/* rgb */ color: rgb(151, 138, 250);
/* oklch */ color: oklch(69.4% 0.161 286.7);
Tailwind
colors: {
  custom: {
    50: '#baacfc',
    500: '#978afa',
    950: '#000000',
  },
}
SCSS
$custom: #978afa;
$custom-light: #baacfc;
$custom-dark: #000000;
JSON
{
  "hex": "#978afa",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 250
  },
  "hsl": {
    "h": 246.964,
    "s": 91.803,
    "l": 76.078
  },
  "oklch": {
    "l": 0.69387,
    "c": 0.16064,
    "h": 286.7
  },
  "luminance": 0.31658
}

Semantic roles & 50–950 ramp

primary
#978AFA
secondary
#F2F6D5
accent
#E600CB
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #978AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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