#7962CD#7962CD

#7962CD is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.0% C 0.159 H 290.3°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7962CD
RGBrgb(121, 98, 205)
HSLhsl(253, 52%, 59%)
HSVhsv(253, 52%, 80%)
CMYKcmyk(41%, 52.2%, 0%, 19.6%)
CIE-LABlab(48.52, 34.68, -52.58)
CIE-LCHlch(48.52, 62.99, 303.41°)
OKLaboklab(57.04% 0.0553 -0.1492)
OKLCHoklch(57.04% 0.159 290.3)
XYZxyz(23.2693, 17.2074, 59.8411)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7962CD #B6CD62
analogous
#6281CD #7962CD #AF62CD
triadic
#7962CD #CD7962 #62CD79
tetradic
#7962CD #CD6281 #B6CD62 #62CDAF
square
#7962CD #CD6281 #B6CD62 #62CDAF
split-complementary
#7962CD #CDAF62 #81CD62
monochromatic
#402C89 #553AB7 #7962CD #A190DC #C8BFEB

Accessibility & contrast

On white

4.73
#7962CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#7962CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7962CD
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7962CD#FFFFFF#000000##FFFFFF
##7962CD1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3375D1
Deuteranopia (green-blind)
#3571CB
Tritanopia (blue-blind)
#62788E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7962cd;
/* rgb */ color: rgb(121, 98, 205);
/* oklch */ color: oklch(57.0% 0.159 290.3);
Tailwind
colors: {
  custom: {
    50: '#a48fdd',
    500: '#7962cd',
    950: '#000000',
  },
}
SCSS
$custom: #7962cd;
$custom-light: #a48fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7962cd",
  "rgb": {
    "r": 121,
    "g": 98,
    "b": 205
  },
  "hsl": {
    "h": 252.897,
    "s": 51.691,
    "l": 59.412
  },
  "oklch": {
    "l": 0.57041,
    "c": 0.15917,
    "h": 290.3
  },
  "luminance": 0.17208
}

Semantic roles & 50–950 ramp

primary
#7962CD
secondary
#D1DAB1
accent
#DB4DBD
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7962CD

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

Preview Lab → · Contrast checker → · Palette generator →

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