#7962CA#7962CA

#7962CA is a mid, vivid violet. Relative luminance 0.171; OKLCH L 56.8% C 0.155 H 290.8°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7962CA
RGBrgb(121, 98, 202)
HSLhsl(253, 50%, 59%)
HSVhsv(253, 51%, 79%)
CMYKcmyk(40.1%, 51.5%, 0%, 20.8%)
CIE-LABlab(48.34, 33.84, -51.15)
CIE-LCHlch(48.34, 61.33, 303.49°)
OKLaboklab(56.85% 0.0551 -0.1451)
OKLCHoklch(56.85% 0.155 290.8)
XYZxyz(22.9106, 17.0639, 57.9522)
Luminance0.1706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7962CA #B3CA62
analogous
#627FCA #7962CA #AD62CA
triadic
#7962CA #CA7962 #62CA79
tetradic
#7962CA #CA627F #B3CA62 #62CAAD
square
#7962CA #CA627F #B3CA62 #62CAAD
split-complementary
#7962CA #CAAD62 #7FCA62
monochromatic
#402D85 #563CB3 #7962CA #A090D9 #C7BEE9

Accessibility & contrast

On white

4.76
#7962CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#7962CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7962CA
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7962CA#FFFFFF#000000##FFFFFF
##7962CA1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3675CE
Deuteranopia (green-blind)
#3971C8
Tritanopia (blue-blind)
#63778D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7962ca;
/* rgb */ color: rgb(121, 98, 202);
/* oklch */ color: oklch(56.8% 0.155 290.8);
Tailwind
colors: {
  custom: {
    50: '#a48fdb',
    500: '#7962ca',
    950: '#000000',
  },
}
SCSS
$custom: #7962ca;
$custom-light: #a48fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7962ca",
  "rgb": {
    "r": 121,
    "g": 98,
    "b": 202
  },
  "hsl": {
    "h": 253.269,
    "s": 49.524,
    "l": 58.824
  },
  "oklch": {
    "l": 0.56849,
    "c": 0.15517,
    "h": 290.8
  },
  "luminance": 0.17065
}

Semantic roles & 50–950 ramp

primary
#7962CA
secondary
#CFD8AF
accent
#D94FBA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7962CA

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

Preview Lab → · Contrast checker → · Palette generator →

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