#7962EC#7962EC

#7962EC is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.2% C 0.199 H 286.2°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7962EC
RGBrgb(121, 98, 236)
HSLhsl(250, 78%, 65%)
HSVhsv(250, 58%, 93%)
CMYKcmyk(48.7%, 58.5%, 0%, 7.5%)
CIE-LABlab(50.52, 43.54, -66.93)
CIE-LCHlch(50.52, 79.85, 303.04°)
OKLaboklab(59.16% 0.0557 -0.1914)
OKLCHoklch(59.16% 0.199 286.2)
XYZxyz(27.3887, 18.8552, 81.5369)
Luminance0.1886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7962EC #D5EC62
analogous
#6290EC #7962EC #BE62EC
triadic
#7962EC #EC7962 #62EC79
tetradic
#7962EC #EC6290 #D5EC62 #62ECBE
square
#7962EC #EC6290 #D5EC62 #62ECBE
split-complementary
#7962EC #ECBE62 #90EC62
monochromatic
#3217BD #4A2BE5 #7962EC #A899F3 #D6CFF9

Accessibility & contrast

On white

4.40
#7962EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#7962EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7962EC
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7962EC#FFFFFF#000000##000000
##7962EC1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#0074E9
Tritanopia (blue-blind)
#50829E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7962ec;
/* rgb */ color: rgb(121, 98, 236);
/* oklch */ color: oklch(59.2% 0.199 286.2);
Tailwind
colors: {
  custom: {
    50: '#a88ff3',
    500: '#7962ec',
    950: '#000000',
  },
}
SCSS
$custom: #7962ec;
$custom-light: #a88ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#7962ec",
  "rgb": {
    "r": 121,
    "g": 98,
    "b": 236
  },
  "hsl": {
    "h": 250,
    "s": 78.409,
    "l": 65.49
  },
  "oklch": {
    "l": 0.59156,
    "c": 0.19939,
    "h": 286.2
  },
  "luminance": 0.18856
}

Semantic roles & 50–950 ramp

primary
#7962EC
secondary
#E4ECBE
accent
#DB0BB8
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #7962EC

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

Preview Lab → · Contrast checker → · Palette generator →

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