#7942D8#7942D8

#7942D8 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.0% C 0.215 H 294.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#7942D8
RGBrgb(121, 66, 216)
HSLhsl(262, 66%, 55%)
HSVhsv(262, 69%, 85%)
CMYKcmyk(44%, 69.4%, 0%, 15.3%)
CIE-LABlab(42.64, 55.28, -68.39)
CIE-LCHlch(42.64, 87.94, 308.95°)
OKLaboklab(52.99% 0.09 -0.1957)
OKLCHoklch(52.99% 0.215 294.7)
XYZxyz(22.2247, 12.9187, 66.2750)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942D8 #A1D842
analogous
#4256D8 #7942D8 #C442D8
triadic
#7942D8 #D87942 #42D879
tetradic
#7942D8 #D84256 #A1D842 #42D8C4
square
#7942D8 #D84256 #A1D842 #42D8C4
split-complementary
#7942D8 #D8C442 #56D842
monochromatic
#421B84 #5B26B7 #7942D8 #9D75E2 #C1A7ED

Accessibility & contrast

On white

5.86
#7942D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7942D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942D8
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942D8#FFFFFF#000000##FFFFFF
##7942D81.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DC
Deuteranopia (green-blind)
#0062D5
Tritanopia (blue-blind)
#5E6888
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7942d8;
/* rgb */ color: rgb(121, 66, 216);
/* oklch */ color: oklch(53.0% 0.215 294.7);
Tailwind
colors: {
  custom: {
    50: '#a77be5',
    500: '#7942d8',
    950: '#000000',
  },
}
SCSS
$custom: #7942d8;
$custom-light: #a77be5;
$custom-dark: #000000;
JSON
{
  "hex": "#7942d8",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 262,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.52992,
    "c": 0.21544,
    "h": 294.7
  },
  "luminance": 0.12919
}

Semantic roles & 50–950 ramp

primary
#7942D8
secondary
#C3DA9C
accent
#E93FAB
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7942D8

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

Preview Lab → · Contrast checker → · Palette generator →

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