#7942DF#7942DF

#7942DF is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.6% C 0.223 H 293.4°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#7942DF
RGBrgb(121, 66, 223)
HSLhsl(261, 71%, 57%)
HSVhsv(261, 70%, 87%)
CMYKcmyk(45.7%, 70.4%, 0%, 12.5%)
CIE-LABlab(43.19, 57.10, -71.49)
CIE-LCHlch(43.19, 91.49, 308.62°)
OKLaboklab(53.56% 0.0888 -0.2048)
OKLCHoklch(53.56% 0.223 293.4)
XYZxyz(23.1490, 13.2884, 71.1430)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942DF #A8DF42
analogous
#425ADF #7942DF #C842DF
triadic
#7942DF #DF7942 #42DF79
tetradic
#7942DF #DF425A #A8DF42 #42DFC8
square
#7942DF #DF425A #A8DF42 #42DFC8
split-complementary
#7942DF #DFC842 #5ADF42
monochromatic
#42188E #5A21C3 #7942DF #9E76E8 #C3ABF1

Accessibility & contrast

On white

5.74
#7942DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#7942DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942DF
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942DF#FFFFFF#000000##FFFFFF
##7942DF1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E4
Deuteranopia (green-blind)
#0063DC
Tritanopia (blue-blind)
#5B6A8C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7942df;
/* rgb */ color: rgb(121, 66, 223);
/* oklch */ color: oklch(53.6% 0.223 293.4);
Tailwind
colors: {
  custom: {
    50: '#a87bea',
    500: '#7942df',
    950: '#000000',
  },
}
SCSS
$custom: #7942df;
$custom-light: #a87bea;
$custom-dark: #000000;
JSON
{
  "hex": "#7942df",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 261.019,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.53559,
    "c": 0.22322,
    "h": 293.4
  },
  "luminance": 0.13289
}

Semantic roles & 50–950 ramp

primary
#7942DF
secondary
#C8DF9E
accent
#EE3AAF
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7942DF

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

Preview Lab → · Contrast checker → · Palette generator →

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