#7960CD#7960CD

#7960CD is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.7% C 0.162 H 290.9°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7960CD
RGBrgb(121, 96, 205)
HSLhsl(254, 52%, 59%)
HSVhsv(254, 53%, 80%)
CMYKcmyk(41%, 53.2%, 0%, 19.6%)
CIE-LABlab(48.05, 35.86, -53.33)
CIE-LCHlch(48.05, 64.26, 303.92°)
OKLaboklab(56.69% 0.0578 -0.1514)
OKLCHoklch(56.69% 0.162 290.9)
XYZxyz(23.0845, 16.8378, 59.7795)
Luminance0.1684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7960CD #B4CD60
analogous
#607ECD #7960CD #AF60CD
triadic
#7960CD #CD7960 #60CD79
tetradic
#7960CD #CD607E #B4CD60 #60CDAF
square
#7960CD #CD607E #B4CD60 #60CDAF
split-complementary
#7960CD #CDAF60 #7ECD60
monochromatic
#402B88 #5639B6 #7960CD #A08FDC #C7BDEA

Accessibility & contrast

On white

4.81
#7960CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#7960CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7960CD
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7960CD#FFFFFF#000000##FFFFFF
##7960CD1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E74D1
Deuteranopia (green-blind)
#3270CB
Tritanopia (blue-blind)
#62778D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7960cd;
/* rgb */ color: rgb(121, 96, 205);
/* oklch */ color: oklch(56.7% 0.162 290.9);
Tailwind
colors: {
  custom: {
    50: '#a48edd',
    500: '#7960cd',
    950: '#000000',
  },
}
SCSS
$custom: #7960cd;
$custom-light: #a48edd;
$custom-dark: #000000;
JSON
{
  "hex": "#7960cd",
  "rgb": {
    "r": 121,
    "g": 96,
    "b": 205
  },
  "hsl": {
    "h": 253.761,
    "s": 52.153,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56695,
    "c": 0.16208,
    "h": 290.9
  },
  "luminance": 0.16838
}

Semantic roles & 50–950 ramp

primary
#7960CD
secondary
#D0DAAF
accent
#DC4CBB
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7960CD

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

Preview Lab → · Contrast checker → · Palette generator →

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