#7946C2#7946C2

#7946C2 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.8% C 0.185 H 298.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#7946C2
RGBrgb(121, 70, 194)
HSLhsl(265, 50%, 52%)
HSVhsv(265, 64%, 76%)
CMYKcmyk(37.6%, 63.9%, 0%, 23.9%)
CIE-LABlab(41.75, 47.52, -57.13)
CIE-LCHlch(41.75, 74.31, 309.76°)
OKLaboklab(51.84% 0.0888 -0.1626)
OKLCHoklch(51.84% 0.185 298.6)
XYZxyz(19.8105, 12.3401, 52.3666)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946C2 #8FC246
analogous
#4651C2 #7946C2 #B746C2
triadic
#7946C2 #C27946 #46C279
tetradic
#7946C2 #C24651 #8FC246 #46C2B7
square
#7946C2 #C24651 #8FC246 #46C2B7
split-complementary
#7946C2 #C2B746 #51C246
monochromatic
#40236A #5C3299 #7946C2 #9A74D1 #BCA2E0

Accessibility & contrast

On white

6.06
#7946C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7946C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946C2
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946C2#FFFFFF#000000##FFFFFF
##7946C21.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0061BF
Tritanopia (blue-blind)
#68627E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7946c2;
/* rgb */ color: rgb(121, 70, 194);
/* oklch */ color: oklch(51.8% 0.185 298.6);
Tailwind
colors: {
  custom: {
    50: '#a57cd5',
    500: '#7946c2',
    950: '#000000',
  },
}
SCSS
$custom: #7946c2;
$custom-light: #a57cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7946c2",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 194
  },
  "hsl": {
    "h": 264.677,
    "s": 50.407,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51842,
    "c": 0.18529,
    "h": 298.6
  },
  "luminance": 0.1234
}

Semantic roles & 50–950 ramp

primary
#7946C2
secondary
#B7CD97
accent
#DA4EA0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7946C2

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

Preview Lab → · Contrast checker → · Palette generator →

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