#7976DB#7976DB

#7976DB is a mid, vivid blue. Relative luminance 0.221; OKLCH L 61.5% C 0.150 H 282.4°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#7976DB
RGBrgb(121, 118, 219)
HSLhsl(242, 58%, 66%)
HSVhsv(242, 46%, 86%)
CMYKcmyk(44.7%, 46.1%, 0%, 14.1%)
CIE-LABlab(54.17, 26.82, -51.50)
CIE-LCHlch(54.17, 58.07, 297.51°)
OKLaboklab(61.54% 0.0322 -0.146)
OKLCHoklch(61.54% 0.15 282.4)
XYZxyz(27.1460, 22.1350, 69.8462)
Luminance0.2214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7976DB #D8DB76
analogous
#76A5DB #7976DB #AB76DB
triadic
#7976DB #DB7976 #76DB79
tetradic
#7976DB #DB76A5 #D8DB76 #76DBAB
square
#7976DB #DB76A5 #D8DB76 #76DBAB
split-complementary
#7976DB #DBAB76 #A5DB76
monochromatic
#302DAA #4A46CE #7976DB #A8A6E8 #D8D7F4

Accessibility & contrast

On white

3.87
#7976DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#7976DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7976DB
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7976DB#FFFFFF#000000##000000
##7976DB1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D85DF
Deuteranopia (green-blind)
#487ED9
Tritanopia (blue-blind)
#598B9E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7976db;
/* rgb */ color: rgb(121, 118, 219);
/* oklch */ color: oklch(61.5% 0.150 282.4);
Tailwind
colors: {
  custom: {
    50: '#a59de7',
    500: '#7976db',
    950: '#000000',
  },
}
SCSS
$custom: #7976db;
$custom-light: #a59de7;
$custom-dark: #000000;
JSON
{
  "hex": "#7976db",
  "rgb": {
    "r": 121,
    "g": 118,
    "b": 219
  },
  "hsl": {
    "h": 241.782,
    "s": 58.382,
    "l": 66.078
  },
  "oklch": {
    "l": 0.61544,
    "c": 0.14951,
    "h": 282.4
  },
  "luminance": 0.22136
}

Semantic roles & 50–950 ramp

primary
#7976DB
secondary
#E6E7C6
accent
#C620C1
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7976DB

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

Preview Lab → · Contrast checker → · Palette generator →

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