#7978CB#7978CB

#7978CB is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.0% C 0.124 H 282.6°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7978CB
RGBrgb(121, 120, 203)
HSLhsl(241, 44%, 63%)
HSVhsv(241, 41%, 80%)
CMYKcmyk(40.4%, 40.9%, 0%, 20.4%)
CIE-LABlab(53.82, 21.00, -43.00)
CIE-LCHlch(53.82, 47.85, 296.03°)
OKLaboklab(61% 0.0271 -0.1211)
OKLCHoklch(61% 0.124 282.6)
XYZxyz(25.3780, 21.8087, 59.3607)
Luminance0.2181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7978CB #CACB78
analogous
#78A0CB #7978CB #A278CB
triadic
#7978CB #CB7978 #78CB79
tetradic
#7978CB #CB78A0 #CACB78 #78CBA2
square
#7978CB #CB78A0 #CACB78 #78CBA2
split-complementary
#7978CB #CBA278 #A0CB78
monochromatic
#393891 #4D4CBA #7978CB #A5A4DC #D1D0ED

Accessibility & contrast

On white

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

On black

5.36
#7978CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7978CB
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7978CB#FFFFFF#000000##000000
##7978CB1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B83CE
Deuteranopia (green-blind)
#577EC9
Tritanopia (blue-blind)
#618898
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7978cb;
/* rgb */ color: rgb(121, 120, 203);
/* oklch */ color: oklch(61.0% 0.124 282.6);
Tailwind
colors: {
  custom: {
    50: '#a39fdb',
    500: '#7978cb',
    950: '#000000',
  },
}
SCSS
$custom: #7978cb;
$custom-light: #a39fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7978cb",
  "rgb": {
    "r": 121,
    "g": 120,
    "b": 203
  },
  "hsl": {
    "h": 240.723,
    "s": 44.385,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61004,
    "c": 0.12413,
    "h": 282.6
  },
  "luminance": 0.2181
}

Semantic roles & 50–950 ramp

primary
#7978CB
secondary
#DEDEC1
accent
#B82EB6
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7978CB

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

Preview Lab → · Contrast checker → · Palette generator →

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