#7962EA#7962EA

#7962EA is a mid, vivid violet. Relative luminance 0.187; OKLCH L 59.0% C 0.197 H 286.5°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7962EA
RGBrgb(121, 98, 234)
HSLhsl(250, 76%, 65%)
HSVhsv(250, 58%, 92%)
CMYKcmyk(48.3%, 58.1%, 0%, 8.2%)
CIE-LABlab(50.38, 42.96, -66.03)
CIE-LCHlch(50.38, 78.78, 303.05°)
OKLaboklab(59.01% 0.0558 -0.1888)
OKLCHoklch(59.01% 0.197 286.5)
XYZxyz(27.0998, 18.7396, 80.0151)
Luminance0.1874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7962EA #D3EA62
analogous
#628FEA #7962EA #BD62EA
triadic
#7962EA #EA7962 #62EA79
tetradic
#7962EA #EA628F #D3EA62 #62EABD
square
#7962EA #EA628F #D3EA62 #62EABD
split-complementary
#7962EA #EABD62 #8FEA62
monochromatic
#3419B9 #4B2CE3 #7962EA #A798F1 #D5CEF8

Accessibility & contrast

On white

4.42
#7962EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#7962EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7962EA
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7962EA#FFFFFF#000000##000000
##7962EA1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEE
Deuteranopia (green-blind)
#0074E7
Tritanopia (blue-blind)
#52819D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7962ea;
/* rgb */ color: rgb(121, 98, 234);
/* oklch */ color: oklch(59.0% 0.197 286.5);
Tailwind
colors: {
  custom: {
    50: '#a78ff2',
    500: '#7962ea',
    950: '#000000',
  },
}
SCSS
$custom: #7962ea;
$custom-light: #a78ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#7962ea",
  "rgb": {
    "r": 121,
    "g": 98,
    "b": 234
  },
  "hsl": {
    "h": 250.147,
    "s": 76.404,
    "l": 65.098
  },
  "oklch": {
    "l": 0.59013,
    "c": 0.19686,
    "h": 286.5
  },
  "luminance": 0.18741
}

Semantic roles & 50–950 ramp

primary
#7962EA
secondary
#E3EBBD
accent
#D90DB6
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #7962EA

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

Preview Lab → · Contrast checker → · Palette generator →

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