#7960CC#7960CC

#7960CC is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.6% C 0.161 H 291.0°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7960CC
RGBrgb(121, 96, 204)
HSLhsl(254, 51%, 59%)
HSVhsv(254, 53%, 80%)
CMYKcmyk(40.7%, 52.9%, 0%, 20%)
CIE-LABlab(47.99, 35.58, -52.85)
CIE-LCHlch(47.99, 63.71, 303.95°)
OKLaboklab(56.63% 0.0577 -0.15)
OKLCHoklch(56.63% 0.161 291)
XYZxyz(22.9641, 16.7896, 59.1458)
Luminance0.1679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7960CC #B3CC60
analogous
#607DCC #7960CC #AF60CC
triadic
#7960CC #CC7960 #60CC79
tetradic
#7960CC #CC607D #B3CC60 #60CCAF
square
#7960CC #CC607D #B3CC60 #60CCAF
split-complementary
#7960CC #CCAF60 #7DCC60
monochromatic
#402B86 #563AB5 #7960CC #A08EDB #C7BDEA

Accessibility & contrast

On white

4.82
#7960CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#7960CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7960CC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7960CC#FFFFFF#000000##FFFFFF
##7960CC1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F74D0
Deuteranopia (green-blind)
#3370CA
Tritanopia (blue-blind)
#62778D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7960cc;
/* rgb */ color: rgb(121, 96, 204);
/* oklch */ color: oklch(56.6% 0.161 291.0);
Tailwind
colors: {
  custom: {
    50: '#a48edc',
    500: '#7960cc',
    950: '#000000',
  },
}
SCSS
$custom: #7960cc;
$custom-light: #a48edc;
$custom-dark: #000000;
JSON
{
  "hex": "#7960cc",
  "rgb": {
    "r": 121,
    "g": 96,
    "b": 204
  },
  "hsl": {
    "h": 253.889,
    "s": 51.429,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5663,
    "c": 0.16077,
    "h": 291
  },
  "luminance": 0.1679
}

Semantic roles & 50–950 ramp

primary
#7960CC
secondary
#CFD9AF
accent
#DB4DBA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7960CC

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

Preview Lab → · Contrast checker → · Palette generator →

#7960CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva