#7946C6#7946C6

#7946C6 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.1% C 0.190 H 297.8°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7946C6
RGBrgb(121, 70, 198)
HSLhsl(264, 53%, 53%)
HSVhsv(264, 65%, 78%)
CMYKcmyk(38.9%, 64.6%, 0%, 22.4%)
CIE-LABlab(42.03, 48.56, -58.99)
CIE-LCHlch(42.03, 76.41, 309.46°)
OKLaboklab(52.14% 0.0885 -0.1681)
OKLCHoklch(52.14% 0.19 297.8)
XYZxyz(20.2658, 12.5222, 54.7644)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946C6 #93C646
analogous
#4653C6 #7946C6 #B946C6
triadic
#7946C6 #C67946 #46C679
tetradic
#7946C6 #C64653 #93C646 #46C6B9
square
#7946C6 #C64653 #93C646 #46C6B9
split-complementary
#7946C6 #C6B946 #53C646
monochromatic
#41226F #5C319E #7946C6 #9B75D4 #BDA4E3

Accessibility & contrast

On white

5.99
#7946C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7946C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946C6
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946C6#FFFFFF#000000##FFFFFF
##7946C61.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CA
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#676380
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7946c6;
/* rgb */ color: rgb(121, 70, 198);
/* oklch */ color: oklch(52.1% 0.190 297.8);
Tailwind
colors: {
  custom: {
    50: '#a57cd8',
    500: '#7946c6',
    950: '#000000',
  },
}
SCSS
$custom: #7946c6;
$custom-light: #a57cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7946c6",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 198
  },
  "hsl": {
    "h": 263.906,
    "s": 52.893,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52136,
    "c": 0.18996,
    "h": 297.8
  },
  "luminance": 0.12522
}

Semantic roles & 50–950 ramp

primary
#7946C6
secondary
#BAD098
accent
#DC4BA3
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7946C6

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

Preview Lab → · Contrast checker → · Palette generator →

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