#7962DC#7962DC

#7962DC is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.0% C 0.179 H 288.2°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7962DC
RGBrgb(121, 98, 220)
HSLhsl(251, 64%, 62%)
HSVhsv(251, 55%, 86%)
CMYKcmyk(45%, 55.5%, 0%, 13.7%)
CIE-LABlab(49.46, 38.94, -59.63)
CIE-LCHlch(49.46, 71.21, 303.14°)
OKLaboklab(58.04% 0.0559 -0.1699)
OKLCHoklch(58.04% 0.179 288.2)
XYZxyz(25.1674, 17.9666, 69.8381)
Luminance0.1797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7962DC #C5DC62
analogous
#6288DC #7962DC #B662DC
triadic
#7962DC #DC7962 #62DC79
tetradic
#7962DC #DC6288 #C5DC62 #62DCB6
square
#7962DC #DC6288 #C5DC62 #62DCB6
split-complementary
#7962DC #DCB662 #88DC62
monochromatic
#3B24A0 #4E30D1 #7962DC #A494E7 #CEC6F2

Accessibility & contrast

On white

4.57
#7962DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#7962DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7962DC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7962DC#FFFFFF#000000##000000
##7962DC1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B78E0
Deuteranopia (green-blind)
#1D72D9
Tritanopia (blue-blind)
#5A7D96
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7962dc;
/* rgb */ color: rgb(121, 98, 220);
/* oklch */ color: oklch(58.0% 0.179 288.2);
Tailwind
colors: {
  custom: {
    50: '#a68fe8',
    500: '#7962dc',
    950: '#000000',
  },
}
SCSS
$custom: #7962dc;
$custom-light: #a68fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#7962dc",
  "rgb": {
    "r": 121,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 251.311,
    "s": 63.542,
    "l": 62.353
  },
  "oklch": {
    "l": 0.58035,
    "c": 0.17889,
    "h": 288.2
  },
  "luminance": 0.17968
}

Semantic roles & 50–950 ramp

primary
#7962DC
secondary
#DBE3B7
accent
#CB1AAA
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7962DC

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

Preview Lab → · Contrast checker → · Palette generator →

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