#7942D2#7942D2

#7942D2 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.5% C 0.209 H 295.9°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7942D2
RGBrgb(121, 66, 210)
HSLhsl(263, 62%, 54%)
HSVhsv(263, 69%, 82%)
CMYKcmyk(42.4%, 68.6%, 0%, 17.6%)
CIE-LABlab(42.18, 53.72, -65.70)
CIE-LCHlch(42.18, 84.87, 309.27°)
OKLaboklab(52.52% 0.0911 -0.1878)
OKLCHoklch(52.52% 0.209 295.9)
XYZxyz(21.4632, 12.6140, 62.2642)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942D2 #9BD242
analogous
#4253D2 #7942D2 #C142D2
triadic
#7942D2 #D27942 #42D279
tetradic
#7942D2 #D24253 #9BD242 #42D2C1
square
#7942D2 #D24253 #9BD242 #42D2C1
split-complementary
#7942D2 #D2C142 #53D242
monochromatic
#421E7C #5C29AD #7942D2 #9C73DE #BFA5EA

Accessibility & contrast

On white

5.96
#7942D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7942D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942D2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942D2#FFFFFF#000000##FFFFFF
##7942D21.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D6
Deuteranopia (green-blind)
#0061CF
Tritanopia (blue-blind)
#616585
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7942d2;
/* rgb */ color: rgb(121, 66, 210);
/* oklch */ color: oklch(52.5% 0.209 295.9);
Tailwind
colors: {
  custom: {
    50: '#a77ae1',
    500: '#7942d2',
    950: '#000000',
  },
}
SCSS
$custom: #7942d2;
$custom-light: #a77ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#7942d2",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 262.917,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52516,
    "c": 0.20873,
    "h": 295.9
  },
  "luminance": 0.12615
}

Semantic roles & 50–950 ramp

primary
#7942D2
secondary
#BFD799
accent
#E543A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7942D2

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

Preview Lab → · Contrast checker → · Palette generator →

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