#7978CA#7978CA

#7978CA is a mid, vivid blue. Relative luminance 0.218; OKLCH L 60.9% C 0.123 H 282.7°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7978CA
RGBrgb(121, 120, 202)
HSLhsl(241, 44%, 63%)
HSVhsv(241, 41%, 79%)
CMYKcmyk(40.1%, 40.6%, 0%, 20.8%)
CIE-LABlab(53.77, 20.72, -42.51)
CIE-LCHlch(53.77, 47.29, 295.98°)
OKLaboklab(60.95% 0.027 -0.1197)
OKLCHoklch(60.95% 0.123 282.7)
XYZxyz(25.2592, 21.7612, 58.7351)
Luminance0.2176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7978CA #C9CA78
analogous
#78A0CA #7978CA #A278CA
triadic
#7978CA #CA7978 #78CA79
tetradic
#7978CA #CA78A0 #C9CA78 #78CAA2
square
#7978CA #CA78A0 #C9CA78 #78CAA2
split-complementary
#7978CA #CAA278 #A0CA78
monochromatic
#39388F #4D4CB9 #7978CA #A5A4DB #D0D0ED

Accessibility & contrast

On white

3.92
#7978CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#7978CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7978CA
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7978CA#FFFFFF#000000##000000
##7978CA1.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B83CD
Deuteranopia (green-blind)
#587EC8
Tritanopia (blue-blind)
#618897
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7978ca;
/* rgb */ color: rgb(121, 120, 202);
/* oklch */ color: oklch(60.9% 0.123 282.7);
Tailwind
colors: {
  custom: {
    50: '#a39fda',
    500: '#7978ca',
    950: '#000000',
  },
}
SCSS
$custom: #7978ca;
$custom-light: #a39fda;
$custom-dark: #000000;
JSON
{
  "hex": "#7978ca",
  "rgb": {
    "r": 121,
    "g": 120,
    "b": 202
  },
  "hsl": {
    "h": 240.732,
    "s": 43.617,
    "l": 63.137
  },
  "oklch": {
    "l": 0.60948,
    "c": 0.1227,
    "h": 282.7
  },
  "luminance": 0.21762
}

Semantic roles & 50–950 ramp

primary
#7978CA
secondary
#DDDEC0
accent
#B72FB5
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7978CA

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

Preview Lab → · Contrast checker → · Palette generator →

#7978CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva