#7962CB#7962CB

#7962CB is a mid, vivid violet. Relative luminance 0.171; OKLCH L 56.9% C 0.157 H 290.6°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7962CB
RGBrgb(121, 98, 203)
HSLhsl(253, 50%, 59%)
HSVhsv(253, 52%, 80%)
CMYKcmyk(40.4%, 51.7%, 0%, 20.4%)
CIE-LABlab(48.40, 34.12, -51.63)
CIE-LCHlch(48.40, 61.89, 303.46°)
OKLaboklab(56.91% 0.0552 -0.1464)
OKLCHoklch(56.91% 0.157 290.6)
XYZxyz(23.0294, 17.1114, 58.5778)
Luminance0.1711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7962CB #B4CB62
analogous
#6280CB #7962CB #AE62CB
triadic
#7962CB #CB7962 #62CB79
tetradic
#7962CB #CB6280 #B4CB62 #62CBAE
square
#7962CB #CB6280 #B4CB62 #62CBAE
split-complementary
#7962CB #CBAE62 #80CB62
monochromatic
#402C86 #563CB4 #7962CB #A090DA #C7BEE9

Accessibility & contrast

On white

4.75
#7962CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7962CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7962CB
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7962CB#FFFFFF#000000##FFFFFF
##7962CB1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3575CF
Deuteranopia (green-blind)
#3871C9
Tritanopia (blue-blind)
#63788D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7962cb;
/* rgb */ color: rgb(121, 98, 203);
/* oklch */ color: oklch(56.9% 0.157 290.6);
Tailwind
colors: {
  custom: {
    50: '#a48fdb',
    500: '#7962cb',
    950: '#000000',
  },
}
SCSS
$custom: #7962cb;
$custom-light: #a48fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7962cb",
  "rgb": {
    "r": 121,
    "g": 98,
    "b": 203
  },
  "hsl": {
    "h": 253.143,
    "s": 50.239,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56913,
    "c": 0.1565,
    "h": 290.6
  },
  "luminance": 0.17112
}

Semantic roles & 50–950 ramp

primary
#7962CB
secondary
#D0D9B0
accent
#DA4EBB
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7962CB

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

Preview Lab → · Contrast checker → · Palette generator →

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