#7942C0#7942C0

#7942C0 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.1% C 0.188 H 299.8°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#7942C0
RGBrgb(121, 66, 192)
HSLhsl(266, 50%, 51%)
HSVhsv(266, 66%, 75%)
CMYKcmyk(37%, 65.6%, 0%, 24.7%)
CIE-LABlab(40.84, 49.10, -57.43)
CIE-LCHlch(40.84, 75.56, 310.53°)
OKLaboklab(51.14% 0.0935 -0.1635)
OKLCHoklch(51.14% 0.188 299.8)
XYZxyz(19.3455, 11.7670, 51.1110)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942C0 #89C042
analogous
#424AC0 #7942C0 #B842C0
triadic
#7942C0 #C07942 #42C079
tetradic
#7942C0 #C0424A #89C042 #42C0B8
square
#7942C0 #C0424A #89C042 #42C0B8
split-complementary
#7942C0 #C0B842 #4AC042
monochromatic
#3F2266 #5C3194 #7942C0 #9A70CF #BA9EDF

Accessibility & contrast

On white

6.26
#7942C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7942C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942C0
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942C0#FFFFFF#000000##FFFFFF
##7942C01.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C4
Deuteranopia (green-blind)
#005FBD
Tritanopia (blue-blind)
#695F7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7942c0;
/* rgb */ color: rgb(121, 66, 192);
/* oklch */ color: oklch(51.1% 0.188 299.8);
Tailwind
colors: {
  custom: {
    50: '#a57ad4',
    500: '#7942c0',
    950: '#000000',
  },
}
SCSS
$custom: #7942c0;
$custom-light: #a57ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#7942c0",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 266.19,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51142,
    "c": 0.18833,
    "h": 299.8
  },
  "luminance": 0.11767
}

Semantic roles & 50–950 ramp

primary
#7942C0
secondary
#B2CB93
accent
#DA4E9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7942C0

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

Preview Lab → · Contrast checker → · Palette generator →

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