#7960DC#7960DC

#7960DC is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.7% C 0.182 H 288.7°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7960DC
RGBrgb(121, 96, 220)
HSLhsl(252, 64%, 62%)
HSVhsv(252, 56%, 86%)
CMYKcmyk(45%, 56.4%, 0%, 13.7%)
CIE-LABlab(49.00, 40.10, -60.35)
CIE-LCHlch(49.00, 72.46, 303.60°)
OKLaboklab(57.7% 0.0581 -0.1721)
OKLCHoklch(57.7% 0.182 288.7)
XYZxyz(24.9826, 17.5970, 69.7765)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7960DC #C3DC60
analogous
#6085DC #7960DC #B760DC
triadic
#7960DC #DC7960 #60DC79
tetradic
#7960DC #DC6085 #C3DC60 #60DCB7
square
#7960DC #DC6085 #C3DC60 #60DCB7
split-complementary
#7960DC #DCB760 #85DC60
monochromatic
#3C239F #4F2ED1 #7960DC #A392E7 #CEC4F2

Accessibility & contrast

On white

4.65
#7960DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#7960DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7960DC
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7960DC#FFFFFF#000000##FFFFFF
##7960DC1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1177E0
Deuteranopia (green-blind)
#1571D9
Tritanopia (blue-blind)
#5A7B95
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7960dc;
/* rgb */ color: rgb(121, 96, 220);
/* oklch */ color: oklch(57.7% 0.182 288.7);
Tailwind
colors: {
  custom: {
    50: '#a68ee8',
    500: '#7960dc',
    950: '#000000',
  },
}
SCSS
$custom: #7960dc;
$custom-light: #a68ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#7960dc",
  "rgb": {
    "r": 121,
    "g": 96,
    "b": 220
  },
  "hsl": {
    "h": 252.097,
    "s": 63.918,
    "l": 61.961
  },
  "oklch": {
    "l": 0.57701,
    "c": 0.18165,
    "h": 288.7
  },
  "luminance": 0.17598
}

Semantic roles & 50–950 ramp

primary
#7960DC
secondary
#DAE3B5
accent
#CC1AA8
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7960DC

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

Preview Lab → · Contrast checker → · Palette generator →

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