#7946BA#7946BA

#7946BA is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.3% C 0.176 H 300.5°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#7946BA
RGBrgb(121, 70, 186)
HSLhsl(266, 46%, 50%)
HSVhsv(266, 62%, 73%)
CMYKcmyk(34.9%, 62.4%, 0%, 27.1%)
CIE-LABlab(41.20, 45.47, -53.34)
CIE-LCHlch(41.20, 70.09, 310.45°)
OKLaboklab(51.27% 0.0894 -0.1515)
OKLCHoklch(51.27% 0.176 300.5)
XYZxyz(18.9361, 11.9903, 47.7616)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946BA #87BA46
analogous
#464DBA #7946BA #B346BA
triadic
#7946BA #BA7946 #46BA79
tetradic
#7946BA #BA464D #87BA46 #46BAB3
square
#7946BA #BA464D #87BA46 #46BAB3
split-complementary
#7946BA #BAB346 #4DBA46
monochromatic
#3F2461 #5C358E #7946BA #9973CB #BA9FDB

Accessibility & contrast

On white

6.18
#7946BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7946BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946BA
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946BA#FFFFFF#000000##FFFFFF
##7946BA1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#1B60B7
Tritanopia (blue-blind)
#6B5F79
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7946ba;
/* rgb */ color: rgb(121, 70, 186);
/* oklch */ color: oklch(51.3% 0.176 300.5);
Tailwind
colors: {
  custom: {
    50: '#a47ccf',
    500: '#7946ba',
    950: '#000000',
  },
}
SCSS
$custom: #7946ba;
$custom-light: #a47ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#7946ba",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 186
  },
  "hsl": {
    "h": 266.379,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51268,
    "c": 0.17589,
    "h": 300.5
  },
  "luminance": 0.1199
}

Semantic roles & 50–950 ramp

primary
#7946BA
secondary
#B1C894
accent
#D5529C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7946BA

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

Preview Lab → · Contrast checker → · Palette generator →

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