#7976CB#7976CB

#7976CB is a mid, vivid blue. Relative luminance 0.213; OKLCH L 60.6% C 0.127 H 283.5°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7976CB
RGBrgb(121, 118, 203)
HSLhsl(242, 45%, 63%)
HSVhsv(242, 42%, 80%)
CMYKcmyk(40.4%, 41.9%, 0%, 20.4%)
CIE-LABlab(53.31, 22.20, -43.81)
CIE-LCHlch(53.31, 49.11, 296.87°)
OKLaboklab(60.61% 0.0297 -0.1235)
OKLCHoklch(60.61% 0.127 283.5)
XYZxyz(25.1400, 21.3326, 59.2813)
Luminance0.2133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7976CB #C8CB76
analogous
#769DCB #7976CB #A476CB
triadic
#7976CB #CB7976 #76CB79
tetradic
#7976CB #CB769D #C8CB76 #76CBA4
square
#7976CB #CB769D #C8CB76 #76CBA4
split-complementary
#7976CB #CBA476 #9DCB76
monochromatic
#3A3790 #4E4ABA #7976CB #A4A2DC #D0CFED

Accessibility & contrast

On white

3.99
#7976CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#7976CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7976CB
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7976CB#FFFFFF#000000##000000
##7976CB1.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5882CE
Deuteranopia (green-blind)
#557DC9
Tritanopia (blue-blind)
#618797
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7976cb;
/* rgb */ color: rgb(121, 118, 203);
/* oklch */ color: oklch(60.6% 0.127 283.5);
Tailwind
colors: {
  custom: {
    50: '#a39ddb',
    500: '#7976cb',
    950: '#000000',
  },
}
SCSS
$custom: #7976cb;
$custom-light: #a39ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#7976cb",
  "rgb": {
    "r": 121,
    "g": 118,
    "b": 203
  },
  "hsl": {
    "h": 242.118,
    "s": 44.974,
    "l": 62.941
  },
  "oklch": {
    "l": 0.60614,
    "c": 0.12703,
    "h": 283.5
  },
  "luminance": 0.21334
}

Semantic roles & 50–950 ramp

primary
#7976CB
secondary
#DDDEBF
accent
#B82DB3
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7976CB

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

Preview Lab → · Contrast checker → · Palette generator →

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