#7960CA#7960CA

#7960CA is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.5% C 0.158 H 291.4°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7960CA
RGBrgb(121, 96, 202)
HSLhsl(254, 50%, 58%)
HSVhsv(254, 52%, 79%)
CMYKcmyk(40.1%, 52.5%, 0%, 20.8%)
CIE-LABlab(47.87, 35.02, -51.90)
CIE-LCHlch(47.87, 62.61, 304.01°)
OKLaboklab(56.5% 0.0576 -0.1472)
OKLCHoklch(56.5% 0.158 291.4)
XYZxyz(22.7258, 16.6943, 57.8906)
Luminance0.1669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7960CA #B1CA60
analogous
#607CCA #7960CA #AE60CA
triadic
#7960CA #CA7960 #60CA79
tetradic
#7960CA #CA607C #B1CA60 #60CAAE
square
#7960CA #CA607C #B1CA60 #60CAAE
split-complementary
#7960CA #CAAE60 #7CCA60
monochromatic
#412C84 #573BB2 #7960CA #A08ED9 #C6BCE9

Accessibility & contrast

On white

4.84
#7960CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#7960CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7960CA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7960CA#FFFFFF#000000##FFFFFF
##7960CA1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3173CE
Deuteranopia (green-blind)
#366FC8
Tritanopia (blue-blind)
#63768C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7960ca;
/* rgb */ color: rgb(121, 96, 202);
/* oklch */ color: oklch(56.5% 0.158 291.4);
Tailwind
colors: {
  custom: {
    50: '#a48edb',
    500: '#7960ca',
    950: '#000000',
  },
}
SCSS
$custom: #7960ca;
$custom-light: #a48edb;
$custom-dark: #000000;
JSON
{
  "hex": "#7960ca",
  "rgb": {
    "r": 121,
    "g": 96,
    "b": 202
  },
  "hsl": {
    "h": 254.151,
    "s": 50,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56501,
    "c": 0.15812,
    "h": 291.4
  },
  "luminance": 0.16695
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7960CA

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

Preview Lab → · Contrast checker → · Palette generator →

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