#7942CE#7942CE

#7942CE is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.2% C 0.204 H 296.7°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7942CE
RGBrgb(121, 66, 206)
HSLhsl(264, 59%, 53%)
HSVhsv(264, 68%, 81%)
CMYKcmyk(41.3%, 68%, 0%, 19.2%)
CIE-LABlab(41.87, 52.69, -63.89)
CIE-LCHlch(41.87, 82.81, 309.51°)
OKLaboklab(52.2% 0.0917 -0.1825)
OKLCHoklch(52.2% 0.204 296.7)
XYZxyz(20.9710, 12.4172, 59.6724)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942CE #97CE42
analogous
#4251CE #7942CE #BF42CE
triadic
#7942CE #CE7942 #42CE79
tetradic
#7942CE #CE4251 #97CE42 #42CEBF
square
#7942CE #CE4251 #97CE42 #42CEBF
split-complementary
#7942CE #CEBF42 #51CE42
monochromatic
#411F77 #5C2BA7 #7942CE #9B73DB #BEA3E7

Accessibility & contrast

On white

6.03
#7942CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7942CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942CE
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942CE#FFFFFF#000000##FFFFFF
##7942CE1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D2
Deuteranopia (green-blind)
#0061CB
Tritanopia (blue-blind)
#636483
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7942ce;
/* rgb */ color: rgb(121, 66, 206);
/* oklch */ color: oklch(52.2% 0.204 296.7);
Tailwind
colors: {
  custom: {
    50: '#a67ade',
    500: '#7942ce',
    950: '#000000',
  },
}
SCSS
$custom: #7942ce;
$custom-light: #a67ade;
$custom-dark: #000000;
JSON
{
  "hex": "#7942ce",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 263.571,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52204,
    "c": 0.20422,
    "h": 296.7
  },
  "luminance": 0.12418
}

Semantic roles & 50–950 ramp

primary
#7942CE
secondary
#BCD498
accent
#E246A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7942CE

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

Preview Lab → · Contrast checker → · Palette generator →

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