#7942CA#7942CA

#7942CA is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.9% C 0.200 H 297.5°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#7942CA
RGBrgb(121, 66, 202)
HSLhsl(264, 56%, 53%)
HSVhsv(264, 67%, 79%)
CMYKcmyk(40.1%, 67.3%, 0%, 20.8%)
CIE-LABlab(41.57, 51.66, -62.06)
CIE-LCHlch(41.57, 80.75, 309.77°)
OKLaboklab(51.9% 0.0923 -0.1771)
OKLCHoklch(51.9% 0.2 297.5)
XYZxyz(20.4913, 12.2253, 57.1458)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942CA #93CA42
analogous
#424FCA #7942CA #BD42CA
triadic
#7942CA #CA7942 #42CA79
tetradic
#7942CA #CA424F #93CA42 #42CABD
square
#7942CA #CA424F #93CA42 #42CABD
split-complementary
#7942CA #CABD42 #4FCA42
monochromatic
#412072 #5C2DA2 #7942CA #9B72D7 #BDA2E5

Accessibility & contrast

On white

6.10
#7942CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7942CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942CA
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942CA#FFFFFF#000000##FFFFFF
##7942CA1.006.103.456.10
#FFFFFF6.101.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#656281
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7942ca;
/* rgb */ color: rgb(121, 66, 202);
/* oklch */ color: oklch(51.9% 0.200 297.5);
Tailwind
colors: {
  custom: {
    50: '#a67adb',
    500: '#7942ca',
    950: '#000000',
  },
}
SCSS
$custom: #7942ca;
$custom-light: #a67adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7942ca",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 264.265,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51895,
    "c": 0.1997,
    "h": 297.5
  },
  "luminance": 0.12226
}

Semantic roles & 50–950 ramp

primary
#7942CA
secondary
#BAD196
accent
#DF48A2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7942CA

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

Preview Lab → · Contrast checker → · Palette generator →

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