#7942D9#7942D9

#7942D9 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.1% C 0.217 H 294.5°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#7942D9
RGBrgb(121, 66, 217)
HSLhsl(262, 67%, 55%)
HSVhsv(262, 70%, 85%)
CMYKcmyk(44.2%, 69.6%, 0%, 14.9%)
CIE-LABlab(42.72, 55.54, -68.84)
CIE-LCHlch(42.72, 88.45, 308.90°)
OKLaboklab(53.07% 0.0899 -0.197)
OKLCHoklch(53.07% 0.217 294.5)
XYZxyz(22.3544, 12.9705, 66.9579)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942D9 #A2D942
analogous
#4256D9 #7942D9 #C442D9
triadic
#7942D9 #D97942 #42D979
tetradic
#7942D9 #D94256 #A2D942 #42D9C4
square
#7942D9 #D94256 #A2D942 #42D9C4
split-complementary
#7942D9 #D9C442 #56D942
monochromatic
#421B86 #5B25B9 #7942D9 #9D75E3 #C1A8ED

Accessibility & contrast

On white

5.84
#7942D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7942D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942D9
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942D9#FFFFFF#000000##FFFFFF
##7942D91.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DD
Deuteranopia (green-blind)
#0062D6
Tritanopia (blue-blind)
#5E6889
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7942d9;
/* rgb */ color: rgb(121, 66, 217);
/* oklch */ color: oklch(53.1% 0.217 294.5);
Tailwind
colors: {
  custom: {
    50: '#a77be6',
    500: '#7942d9',
    950: '#000000',
  },
}
SCSS
$custom: #7942d9;
$custom-light: #a77be6;
$custom-dark: #000000;
JSON
{
  "hex": "#7942d9",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 261.854,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.53073,
    "c": 0.21656,
    "h": 294.5
  },
  "luminance": 0.12971
}

Semantic roles & 50–950 ramp

primary
#7942D9
secondary
#C4DB9C
accent
#E93EAB
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7942D9

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

Preview Lab → · Contrast checker → · Palette generator →

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