#7962DF#7962DF

#7962DF is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.2% C 0.183 H 287.8°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7962DF
RGBrgb(121, 98, 223)
HSLhsl(251, 66%, 63%)
HSVhsv(251, 56%, 87%)
CMYKcmyk(45.7%, 56.1%, 0%, 12.5%)
CIE-LABlab(49.65, 39.80, -61.01)
CIE-LCHlch(49.65, 72.84, 303.11°)
OKLaboklab(58.24% 0.0559 -0.174)
OKLCHoklch(58.24% 0.183 287.8)
XYZxyz(25.5683, 18.1270, 71.9494)
Luminance0.1813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7962DF #C8DF62
analogous
#6289DF #7962DF #B762DF
triadic
#7962DF #DF7962 #62DF79
tetradic
#7962DF #DF6289 #C8DF62 #62DFB7
square
#7962DF #DF6289 #C8DF62 #62DFB7
split-complementary
#7962DF #DFB762 #89DF62
monochromatic
#3A22A5 #4E2FD5 #7962DF #A495E9 #D0C8F4

Accessibility & contrast

On white

4.54
#7962DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#7962DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7962DF
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7962DF#FFFFFF#000000##000000
##7962DF1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1379E3
Deuteranopia (green-blind)
#1473DC
Tritanopia (blue-blind)
#597E97
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7962df;
/* rgb */ color: rgb(121, 98, 223);
/* oklch */ color: oklch(58.2% 0.183 287.8);
Tailwind
colors: {
  custom: {
    50: '#a68fea',
    500: '#7962df',
    950: '#000000',
  },
}
SCSS
$custom: #7962df;
$custom-light: #a68fea;
$custom-dark: #000000;
JSON
{
  "hex": "#7962df",
  "rgb": {
    "r": 121,
    "g": 98,
    "b": 223
  },
  "hsl": {
    "h": 251.04,
    "s": 66.138,
    "l": 62.941
  },
  "oklch": {
    "l": 0.58241,
    "c": 0.18278,
    "h": 287.8
  },
  "luminance": 0.18128
}

Semantic roles & 50–950 ramp

primary
#7962DF
secondary
#DDE5B8
accent
#CE17AC
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7962DF

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

Preview Lab → · Contrast checker → · Palette generator →

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