#7942BC#7942BC

#7942BC is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.8% C 0.184 H 300.7°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#7942BC
RGBrgb(121, 66, 188)
HSLhsl(267, 48%, 50%)
HSVhsv(267, 65%, 74%)
CMYKcmyk(35.6%, 64.9%, 0%, 26.3%)
CIE-LABlab(40.56, 48.09, -55.55)
CIE-LCHlch(40.56, 73.47, 310.88°)
OKLaboklab(50.85% 0.0939 -0.158)
OKLCHoklch(50.85% 0.184 300.7)
XYZxyz(18.9083, 11.5921, 48.8085)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942BC #85BC42
analogous
#4248BC #7942BC #B642BC
triadic
#7942BC #BC7942 #42BC79
tetradic
#7942BC #BC4248 #85BC42 #42BCB6
square
#7942BC #BC4248 #85BC42 #42BCB6
split-complementary
#7942BC #BCB642 #48BC42
monochromatic
#3F2261 #5C328F #7942BC #996FCC #B99CDC

Accessibility & contrast

On white

6.33
#7942BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7942BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942BC
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942BC#FFFFFF#000000##FFFFFF
##7942BC1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#085FB9
Tritanopia (blue-blind)
#6B5D79
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7942bc;
/* rgb */ color: rgb(121, 66, 188);
/* oklch */ color: oklch(50.8% 0.184 300.7);
Tailwind
colors: {
  custom: {
    50: '#a47ad1',
    500: '#7942bc',
    950: '#000000',
  },
}
SCSS
$custom: #7942bc;
$custom-light: #a47ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#7942bc",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 267.049,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50849,
    "c": 0.18375,
    "h": 300.7
  },
  "luminance": 0.11592
}

Semantic roles & 50–950 ramp

primary
#7942BC
secondary
#B0C991
accent
#D8509B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7942BC

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

Preview Lab → · Contrast checker → · Palette generator →

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