#7960BF#7960BF

#7960BF is a mid, vivid violet. Relative luminance 0.162; OKLCH L 55.8% C 0.143 H 293.3°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7960BF
RGBrgb(121, 96, 191)
HSLhsl(256, 43%, 56%)
HSVhsv(256, 50%, 75%)
CMYKcmyk(36.6%, 49.7%, 0%, 25.1%)
CIE-LABlab(47.23, 31.99, -46.59)
CIE-LCHlch(47.23, 56.51, 304.47°)
OKLaboklab(55.81% 0.0568 -0.1317)
OKLCHoklch(55.81% 0.143 293.3)
XYZxyz(21.4695, 16.1918, 51.2743)
Luminance0.1619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7960BF #A6BF60
analogous
#6077BF #7960BF #A960BF
triadic
#7960BF #BF7960 #60BF79
tetradic
#7960BF #BF6077 #A6BF60 #60BFA9
square
#7960BF #BF6077 #A6BF60 #60BFA9
split-complementary
#7960BF #BFA960 #77BF60
monochromatic
#422F75 #5A41A1 #7960BF #9E8CD1 #C3B7E2

Accessibility & contrast

On white

4.95
#7960BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#7960BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7960BF
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7960BF#FFFFFF#000000##FFFFFF
##7960BF1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C71C2
Deuteranopia (green-blind)
#416EBD
Tritanopia (blue-blind)
#687386
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7960bf;
/* rgb */ color: rgb(121, 96, 191);
/* oklch */ color: oklch(55.8% 0.143 293.3);
Tailwind
colors: {
  custom: {
    50: '#a38dd3',
    500: '#7960bf',
    950: '#000000',
  },
}
SCSS
$custom: #7960bf;
$custom-light: #a38dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7960bf",
  "rgb": {
    "r": 121,
    "g": 96,
    "b": 191
  },
  "hsl": {
    "h": 255.789,
    "s": 42.601,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55809,
    "c": 0.1434,
    "h": 293.3
  },
  "luminance": 0.16192
}

Semantic roles & 50–950 ramp

primary
#7960BF
secondary
#C7D1AA
accent
#D255B1
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83

Preview Lab

Preview with #7960BF

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

Preview Lab → · Contrast checker → · Palette generator →

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