#7960DB#7960DB

#7960DB is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.6% C 0.180 H 288.8°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#7960DB
RGBrgb(121, 96, 219)
HSLhsl(252, 63%, 62%)
HSVhsv(252, 56%, 86%)
CMYKcmyk(44.7%, 56.2%, 0%, 14.1%)
CIE-LABlab(48.94, 39.81, -59.89)
CIE-LCHlch(48.94, 71.92, 303.61°)
OKLaboklab(57.63% 0.0581 -0.1707)
OKLCHoklch(57.63% 0.18 288.8)
XYZxyz(24.8506, 17.5442, 69.0811)
Luminance0.1754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7960DB #C2DB60
analogous
#6085DB #7960DB #B760DB
triadic
#7960DB #DB7960 #60DB79
tetradic
#7960DB #DB6085 #C2DB60 #60DBB7
square
#7960DB #DB6085 #C2DB60 #60DBB7
split-complementary
#7960DB #DBB760 #85DB60
monochromatic
#3C249D #4F2FCF #7960DB #A392E6 #CDC4F2

Accessibility & contrast

On white

4.66
#7960DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#7960DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7960DB
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7960DB#FFFFFF#000000##FFFFFF
##7960DB1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1477DF
Deuteranopia (green-blind)
#1871D8
Tritanopia (blue-blind)
#5B7B94
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7960db;
/* rgb */ color: rgb(121, 96, 219);
/* oklch */ color: oklch(57.6% 0.180 288.8);
Tailwind
colors: {
  custom: {
    50: '#a68ee7',
    500: '#7960db',
    950: '#000000',
  },
}
SCSS
$custom: #7960db;
$custom-light: #a68ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#7960db",
  "rgb": {
    "r": 121,
    "g": 96,
    "b": 219
  },
  "hsl": {
    "h": 252.195,
    "s": 63.077,
    "l": 61.765
  },
  "oklch": {
    "l": 0.57633,
    "c": 0.18036,
    "h": 288.8
  },
  "luminance": 0.17545
}

Semantic roles & 50–950 ramp

primary
#7960DB
secondary
#D9E2B5
accent
#CB1BA7
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7960DB

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

Preview Lab → · Contrast checker → · Palette generator →

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