#7946BC#7946BC

#7946BC is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.4% C 0.178 H 300.1°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#7946BC
RGBrgb(121, 70, 188)
HSLhsl(266, 47%, 51%)
HSVhsv(266, 63%, 74%)
CMYKcmyk(35.6%, 62.8%, 0%, 26.3%)
CIE-LABlab(41.34, 45.98, -54.29)
CIE-LCHlch(41.34, 71.15, 310.26°)
OKLaboklab(51.41% 0.0893 -0.1543)
OKLCHoklch(51.41% 0.178 300.1)
XYZxyz(19.1502, 12.0759, 48.8892)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946BC #89BC46
analogous
#464EBC #7946BC #B446BC
triadic
#7946BC #BC7946 #46BC79
tetradic
#7946BC #BC464E #89BC46 #46BCB4
square
#7946BC #BC464E #89BC46 #46BCB4
split-complementary
#7946BC #BCB446 #4EBC46
monochromatic
#3F2464 #5C3490 #7946BC #9A73CC #BAA0DD

Accessibility & contrast

On white

6.15
#7946BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7946BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946BC
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946BC#FFFFFF#000000##FFFFFF
##7946BC1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#1761B9
Tritanopia (blue-blind)
#6A607A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7946bc;
/* rgb */ color: rgb(121, 70, 188);
/* oklch */ color: oklch(51.4% 0.178 300.1);
Tailwind
colors: {
  custom: {
    50: '#a47cd1',
    500: '#7946bc',
    950: '#000000',
  },
}
SCSS
$custom: #7946bc;
$custom-light: #a47cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7946bc",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 188
  },
  "hsl": {
    "h": 265.932,
    "s": 46.825,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5141,
    "c": 0.17825,
    "h": 300.1
  },
  "luminance": 0.12076
}

Semantic roles & 50–950 ramp

primary
#7946BC
secondary
#B2C995
accent
#D6519D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7946BC

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

Preview Lab → · Contrast checker → · Palette generator →

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