#7942BE#7942BE

#7942BE is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.186 H 300.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7942BE
RGBrgb(121, 66, 190)
HSLhsl(267, 49%, 50%)
HSVhsv(267, 65%, 75%)
CMYKcmyk(36.3%, 65.3%, 0%, 25.5%)
CIE-LABlab(40.70, 48.59, -56.49)
CIE-LCHlch(40.70, 74.52, 310.70°)
OKLaboklab(51% 0.0937 -0.1607)
OKLCHoklch(51% 0.186 300.2)
XYZxyz(19.1254, 11.6789, 49.9519)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942BE #87BE42
analogous
#4249BE #7942BE #B742BE
triadic
#7942BE #BE7942 #42BE79
tetradic
#7942BE #BE4249 #87BE42 #42BEB7
square
#7942BE #BE4249 #87BE42 #42BEB7
split-complementary
#7942BE #BEB742 #49BE42
monochromatic
#3F2263 #5C3291 #7942BE #9970CE #BA9DDD

Accessibility & contrast

On white

6.30
#7942BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7942BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942BE
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942BE#FFFFFF#000000##FFFFFF
##7942BE1.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C2
Deuteranopia (green-blind)
#005FBB
Tritanopia (blue-blind)
#6A5E7A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7942be;
/* rgb */ color: rgb(121, 66, 190);
/* oklch */ color: oklch(51.0% 0.186 300.2);
Tailwind
colors: {
  custom: {
    50: '#a57ad2',
    500: '#7942be',
    950: '#000000',
  },
}
SCSS
$custom: #7942be;
$custom-light: #a57ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#7942be",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 266.613,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50995,
    "c": 0.18604,
    "h": 300.2
  },
  "luminance": 0.11679
}

Semantic roles & 50–950 ramp

primary
#7942BE
secondary
#B1CA92
accent
#D84F9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7942BE

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

Preview Lab → · Contrast checker → · Palette generator →

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