#7946C5#7946C5

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

Color values

HEX#7946C5
RGBrgb(121, 70, 197)
HSLhsl(264, 52%, 52%)
HSVhsv(264, 64%, 77%)
CMYKcmyk(38.6%, 64.5%, 0%, 22.7%)
CIE-LABlab(41.96, 48.30, -58.53)
CIE-LCHlch(41.96, 75.88, 309.53°)
OKLaboklab(52.06% 0.0886 -0.1667)
OKLCHoklch(52.06% 0.189 298)
XYZxyz(20.1508, 12.4762, 54.1590)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946C5 #92C546
analogous
#4653C5 #7946C5 #B846C5
triadic
#7946C5 #C57946 #46C579
tetradic
#7946C5 #C54653 #92C546 #46C5B8
square
#7946C5 #C54653 #92C546 #46C5B8
split-complementary
#7946C5 #C5B846 #53C546
monochromatic
#41236E #5C319D #7946C5 #9B75D4 #BCA3E2

Accessibility & contrast

On white

6.01
#7946C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7946C5
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946C5#FFFFFF#000000##FFFFFF
##7946C51.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#0062C2
Tritanopia (blue-blind)
#67637F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7946c5;
/* rgb */ color: rgb(121, 70, 197);
/* oklch */ color: oklch(52.1% 0.189 298.0);
Tailwind
colors: {
  custom: {
    50: '#a57cd7',
    500: '#7946c5',
    950: '#000000',
  },
}
SCSS
$custom: #7946c5;
$custom-light: #a57cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7946c5",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 197
  },
  "hsl": {
    "h": 264.094,
    "s": 52.263,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52062,
    "c": 0.18879,
    "h": 298
  },
  "luminance": 0.12476
}

Semantic roles & 50–950 ramp

primary
#7946C5
secondary
#B9CF98
accent
#DC4CA2
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7946C5

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

Preview Lab → · Contrast checker → · Palette generator →

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