#978EF2#978EF2

#978EF2 is a light, vivid blue. Relative luminance 0.323; OKLCH L 69.7% C 0.144 H 286.1°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#978EF2
RGBrgb(151, 142, 242)
HSLhsl(245, 79%, 75%)
HSVhsv(245, 41%, 95%)
CMYKcmyk(37.6%, 41.3%, 0%, 5.1%)
CIE-LABlab(63.62, 26.63, -49.17)
CIE-LCHlch(63.62, 55.92, 298.44°)
OKLaboklab(69.68% 0.04 -0.1384)
OKLCHoklch(69.68% 0.144 286.1)
XYZxyz(38.4581, 32.3349, 88.2021)
Luminance0.3234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978EF2 #E9F28E
analogous
#8EB7F2 #978EF2 #C98EF2
triadic
#978EF2 #F2978E #8EF297
tetradic
#978EF2 #F28EB7 #E9F28E #8EF2C9
square
#978EF2 #F28EB7 #E9F28E #8EF2C9
split-complementary
#978EF2 #F2C98E #B7F28E
monochromatic
#3220E5 #6457EC #978EF2 #CAC5F8 #E6E4FC

Accessibility & contrast

On white

2.81
#978EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#978EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #978EF2
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978EF2#FFFFFF#000000##000000
##978EF21.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9DF6
Deuteranopia (green-blind)
#6A97F0
Tritanopia (blue-blind)
#7EA1B4
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #978ef2;
/* rgb */ color: rgb(151, 142, 242);
/* oklch */ color: oklch(69.7% 0.144 286.1);
Tailwind
colors: {
  custom: {
    50: '#b9aff7',
    500: '#978ef2',
    950: '#000000',
  },
}
SCSS
$custom: #978ef2;
$custom-light: #b9aff7;
$custom-dark: #000000;
JSON
{
  "hex": "#978ef2",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 245.4,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.69679,
    "c": 0.14407,
    "h": 286.1
  },
  "luminance": 0.32336
}

Semantic roles & 50–950 ramp

primary
#978EF2
secondary
#F1F4D7
accent
#DC0AC9
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #978EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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