#7960CB#7960CB

#7960CB is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.6% C 0.159 H 291.2°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7960CB
RGBrgb(121, 96, 203)
HSLhsl(254, 51%, 59%)
HSVhsv(254, 53%, 80%)
CMYKcmyk(40.4%, 52.7%, 0%, 20.4%)
CIE-LABlab(47.93, 35.30, -52.38)
CIE-LCHlch(47.93, 63.16, 303.98°)
OKLaboklab(56.57% 0.0577 -0.1486)
OKLCHoklch(56.57% 0.159 291.2)
XYZxyz(22.8446, 16.7418, 58.5162)
Luminance0.1674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7960CB #B2CB60
analogous
#607CCB #7960CB #AE60CB
triadic
#7960CB #CB7960 #60CB79
tetradic
#7960CB #CB607C #B2CB60 #60CBAE
square
#7960CB #CB607C #B2CB60 #60CBAE
split-complementary
#7960CB #CBAE60 #7CCB60
monochromatic
#402C85 #573BB3 #7960CB #A08EDA #C7BCE9

Accessibility & contrast

On white

4.83
#7960CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7960CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7960CB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7960CB#FFFFFF#000000##FFFFFF
##7960CB1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3074CF
Deuteranopia (green-blind)
#3470C9
Tritanopia (blue-blind)
#63768C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7960cb;
/* rgb */ color: rgb(121, 96, 203);
/* oklch */ color: oklch(56.6% 0.159 291.2);
Tailwind
colors: {
  custom: {
    50: '#a48edb',
    500: '#7960cb',
    950: '#000000',
  },
}
SCSS
$custom: #7960cb;
$custom-light: #a48edb;
$custom-dark: #000000;
JSON
{
  "hex": "#7960cb",
  "rgb": {
    "r": 121,
    "g": 96,
    "b": 203
  },
  "hsl": {
    "h": 254.019,
    "s": 50.711,
    "l": 58.627
  },
  "oklch": {
    "l": 0.56565,
    "c": 0.15944,
    "h": 291.2
  },
  "luminance": 0.16742
}

Semantic roles & 50–950 ramp

primary
#7960CB
secondary
#CFD9AE
accent
#DA4EB9
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7960CB

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

Preview Lab → · Contrast checker → · Palette generator →

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