#7942D5#7942D5

#7942D5 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.212 H 295.3°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7942D5
RGBrgb(121, 66, 213)
HSLhsl(262, 64%, 55%)
HSVhsv(262, 69%, 84%)
CMYKcmyk(43.2%, 69%, 0%, 16.5%)
CIE-LABlab(42.41, 54.50, -67.05)
CIE-LCHlch(42.41, 86.41, 309.10°)
OKLaboklab(52.75% 0.0906 -0.1918)
OKLCHoklch(52.75% 0.212 295.3)
XYZxyz(21.8404, 12.7649, 64.2511)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942D5 #9ED542
analogous
#4255D5 #7942D5 #C242D5
triadic
#7942D5 #D57942 #42D579
tetradic
#7942D5 #D54255 #9ED542 #42D5C2
square
#7942D5 #D54255 #9ED542 #42D5C2
split-complementary
#7942D5 #D5C242 #55D542
monochromatic
#421C80 #5B28B2 #7942D5 #9D74E0 #C0A6EB

Accessibility & contrast

On white

5.91
#7942D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7942D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942D5
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942D5#FFFFFF#000000##FFFFFF
##7942D51.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D9
Deuteranopia (green-blind)
#0062D2
Tritanopia (blue-blind)
#606687
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7942d5;
/* rgb */ color: rgb(121, 66, 213);
/* oklch */ color: oklch(52.8% 0.212 295.3);
Tailwind
colors: {
  custom: {
    50: '#a77ae3',
    500: '#7942d5',
    950: '#000000',
  },
}
SCSS
$custom: #7942d5;
$custom-light: #a77ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#7942d5",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 262.449,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.52753,
    "c": 0.21209,
    "h": 295.3
  },
  "luminance": 0.12765
}

Semantic roles & 50–950 ramp

primary
#7942D5
secondary
#C1D89A
accent
#E741A9
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7942D5

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

Preview Lab → · Contrast checker → · Palette generator →

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