#7962DB#7962DB

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

Color values

HEX#7962DB
RGBrgb(121, 98, 219)
HSLhsl(251, 63%, 62%)
HSVhsv(251, 55%, 86%)
CMYKcmyk(44.7%, 55.3%, 0%, 14.1%)
CIE-LABlab(49.39, 38.65, -59.16)
CIE-LCHlch(49.39, 70.67, 303.16°)
OKLaboklab(57.97% 0.0558 -0.1686)
OKLCHoklch(57.97% 0.178 288.3)
XYZxyz(25.0354, 17.9138, 69.1427)
Luminance0.1792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7962DB #C4DB62
analogous
#6288DB #7962DB #B662DB
triadic
#7962DB #DB7962 #62DB79
tetradic
#7962DB #DB6288 #C4DB62 #62DBB6
square
#7962DB #DB6288 #C4DB62 #62DBB6
split-complementary
#7962DB #DBB662 #88DB62
monochromatic
#3B249E #4F30D0 #7962DB #A394E6 #CEC6F2

Accessibility & contrast

On white

4.58
#7962DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#7962DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7962DB
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7962DB#FFFFFF#000000##000000
##7962DB1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D78DF
Deuteranopia (green-blind)
#1F72D8
Tritanopia (blue-blind)
#5B7C95
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7962db;
/* rgb */ color: rgb(121, 98, 219);
/* oklch */ color: oklch(58.0% 0.178 288.3);
Tailwind
colors: {
  custom: {
    50: '#a68fe7',
    500: '#7962db',
    950: '#000000',
  },
}
SCSS
$custom: #7962db;
$custom-light: #a68fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#7962db",
  "rgb": {
    "r": 121,
    "g": 98,
    "b": 219
  },
  "hsl": {
    "h": 251.405,
    "s": 62.694,
    "l": 62.157
  },
  "oklch": {
    "l": 0.57967,
    "c": 0.1776,
    "h": 288.3
  },
  "luminance": 0.17915
}

Semantic roles & 50–950 ramp

primary
#7962DB
secondary
#DAE3B6
accent
#CA1BA9
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7962DB

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

Preview Lab → · Contrast checker → · Palette generator →

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