#7942D1#7942D1

#7942D1 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.4% C 0.208 H 296.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7942D1
RGBrgb(121, 66, 209)
HSLhsl(263, 61%, 54%)
HSVhsv(263, 68%, 82%)
CMYKcmyk(42.1%, 68.4%, 0%, 18%)
CIE-LABlab(42.10, 53.46, -65.25)
CIE-LCHlch(42.10, 84.35, 309.33°)
OKLaboklab(52.44% 0.0912 -0.1865)
OKLCHoklch(52.44% 0.208 296.1)
XYZxyz(21.3390, 12.5644, 61.6101)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942D1 #9AD142
analogous
#4253D1 #7942D1 #C142D1
triadic
#7942D1 #D17942 #42D179
tetradic
#7942D1 #D14253 #9AD142 #42D1C1
square
#7942D1 #D14253 #9AD142 #42D1C1
split-complementary
#7942D1 #D1C142 #53D142
monochromatic
#421E7B #5C2AAC #7942D1 #9C73DD #BFA4E9

Accessibility & contrast

On white

5.98
#7942D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7942D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942D1
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942D1#FFFFFF#000000##FFFFFF
##7942D11.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D5
Deuteranopia (green-blind)
#0061CE
Tritanopia (blue-blind)
#626584
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7942d1;
/* rgb */ color: rgb(121, 66, 209);
/* oklch */ color: oklch(52.4% 0.208 296.1);
Tailwind
colors: {
  custom: {
    50: '#a77ae0',
    500: '#7942d1',
    950: '#000000',
  },
}
SCSS
$custom: #7942d1;
$custom-light: #a77ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#7942d1",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 263.077,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52438,
    "c": 0.2076,
    "h": 296.1
  },
  "luminance": 0.12565
}

Semantic roles & 50–950 ramp

primary
#7942D1
secondary
#BED699
accent
#E444A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7942D1

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

Preview Lab → · Contrast checker → · Palette generator →

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