#7966EB#7966EB

#7966EB is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.7% C 0.193 H 285.5°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7966EB
RGBrgb(121, 102, 235)
HSLhsl(249, 77%, 66%)
HSVhsv(249, 57%, 92%)
CMYKcmyk(48.5%, 56.6%, 0%, 7.8%)
CIE-LABlab(51.34, 40.95, -65.04)
CIE-LCHlch(51.34, 76.86, 302.19°)
OKLaboklab(59.74% 0.0515 -0.1859)
OKLCHoklch(59.74% 0.193 285.5)
XYZxyz(27.6275, 19.5645, 80.9018)
Luminance0.1957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7966EB #D8EB66
analogous
#6695EB #7966EB #BB66EB
triadic
#7966EB #EB7966 #66EB79
tetradic
#7966EB #EB6695 #D8EB66 #66EBBB
square
#7966EB #EB6695 #D8EB66 #66EBBB
split-complementary
#7966EB #EBBB66 #95EB66
monochromatic
#3019BE #4A30E4 #7966EB #A89CF2 #D8D2F9

Accessibility & contrast

On white

4.27
#7966EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#7966EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7966EB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7966EB#FFFFFF#000000##000000
##7966EB1.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EEF
Deuteranopia (green-blind)
#0076E8
Tritanopia (blue-blind)
#51849F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7966eb;
/* rgb */ color: rgb(121, 102, 235);
/* oklch */ color: oklch(59.7% 0.193 285.5);
Tailwind
colors: {
  custom: {
    50: '#a792f2',
    500: '#7966eb',
    950: '#000000',
  },
}
SCSS
$custom: #7966eb;
$custom-light: #a792f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7966eb",
  "rgb": {
    "r": 121,
    "g": 102,
    "b": 235
  },
  "hsl": {
    "h": 248.571,
    "s": 76.879,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59742,
    "c": 0.19286,
    "h": 285.5
  },
  "luminance": 0.19566
}

Semantic roles & 50–950 ramp

primary
#7966EB
secondary
#E6ECC1
accent
#D90CBC
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #7966EB

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

Preview Lab → · Contrast checker → · Palette generator →

#7966EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva