#7942BB#7942BB

#7942BB is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.8% C 0.183 H 301.0°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7942BB
RGBrgb(121, 66, 187)
HSLhsl(267, 48%, 50%)
HSVhsv(267, 65%, 73%)
CMYKcmyk(35.3%, 64.7%, 0%, 26.7%)
CIE-LABlab(40.49, 47.84, -55.07)
CIE-LCHlch(40.49, 72.95, 310.98°)
OKLaboklab(50.78% 0.094 -0.1566)
OKLCHoklch(50.78% 0.183 301)
XYZxyz(18.8009, 11.5491, 48.2428)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942BB #84BB42
analogous
#4247BB #7942BB #B642BB
triadic
#7942BB #BB7942 #42BB79
tetradic
#7942BB #BB4247 #84BB42 #42BBB6
square
#7942BB #BB4247 #84BB42 #42BBB6
split-complementary
#7942BB #BBB642 #47BB42
monochromatic
#3E2261 #5C328E #7942BB #996ECC #B99CDC

Accessibility & contrast

On white

6.34
#7942BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7942BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942BB
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942BB#FFFFFF#000000##FFFFFF
##7942BB1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#0C5FB8
Tritanopia (blue-blind)
#6B5D79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7942bb;
/* rgb */ color: rgb(121, 66, 187);
/* oklch */ color: oklch(50.8% 0.183 301.0);
Tailwind
colors: {
  custom: {
    50: '#a47ad0',
    500: '#7942bb',
    950: '#000000',
  },
}
SCSS
$custom: #7942bb;
$custom-light: #a47ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#7942bb",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 267.273,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50776,
    "c": 0.1826,
    "h": 301
  },
  "luminance": 0.11549
}

Semantic roles & 50–950 ramp

primary
#7942BB
secondary
#AFC891
accent
#D7509A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7942BB

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

Preview Lab → · Contrast checker → · Palette generator →

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