#7942BA#7942BA

#7942BA is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.7% C 0.181 H 301.2°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7942BA
RGBrgb(121, 66, 186)
HSLhsl(268, 48%, 49%)
HSVhsv(268, 65%, 73%)
CMYKcmyk(34.9%, 64.5%, 0%, 27.1%)
CIE-LABlab(40.42, 47.58, -54.60)
CIE-LCHlch(40.42, 72.42, 311.07°)
OKLaboklab(50.7% 0.0941 -0.1552)
OKLCHoklch(50.7% 0.181 301.2)
XYZxyz(18.6942, 11.5065, 47.6809)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7942BA #83BA42
analogous
#4247BA #7942BA #B542BA
triadic
#7942BA #BA7942 #42BA79
tetradic
#7942BA #BA4247 #83BA42 #42BAB5
square
#7942BA #BA4247 #83BA42 #42BAB5
split-complementary
#7942BA #BAB542 #47BA42
monochromatic
#3E2260 #5C328D #7942BA #996ECB #B99BDB

Accessibility & contrast

On white

6.36
#7942BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7942BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7942BA
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7942BA#FFFFFF#000000##FFFFFF
##7942BA1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#105FB7
Tritanopia (blue-blind)
#6B5C78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7942ba;
/* rgb */ color: rgb(121, 66, 186);
/* oklch */ color: oklch(50.7% 0.181 301.2);
Tailwind
colors: {
  custom: {
    50: '#a47acf',
    500: '#7942ba',
    950: '#000000',
  },
}
SCSS
$custom: #7942ba;
$custom-light: #a47acf;
$custom-dark: #000000;
JSON
{
  "hex": "#7942ba",
  "rgb": {
    "r": 121,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 267.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50704,
    "c": 0.18145,
    "h": 301.2
  },
  "luminance": 0.11507
}

Semantic roles & 50–950 ramp

primary
#7942BA
secondary
#AEC890
accent
#D7519A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7942BA

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

Preview Lab → · Contrast checker → · Palette generator →

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