#7946CC#7946CC

#7946CC is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.6% C 0.197 H 296.5°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7946CC
RGBrgb(121, 70, 204)
HSLhsl(263, 57%, 54%)
HSVhsv(263, 66%, 80%)
CMYKcmyk(40.7%, 65.7%, 0%, 20%)
CIE-LABlab(42.47, 50.12, -61.77)
CIE-LCHlch(42.47, 79.55, 309.06°)
OKLaboklab(52.58% 0.0878 -0.1763)
OKLCHoklch(52.58% 0.197 296.5)
XYZxyz(20.9716, 12.8045, 58.4816)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946CC #99CC46
analogous
#4656CC #7946CC #BC46CC
triadic
#7946CC #CC7946 #46CC79
tetradic
#7946CC #CC4656 #99CC46 #46CCBC
square
#7946CC #CC4656 #99CC46 #46CCBC
split-complementary
#7946CC #CCBC46 #56CC46
monochromatic
#422177 #5C2EA7 #7946CC #9C76D9 #BEA6E6

Accessibility & contrast

On white

5.90
#7946CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7946CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946CC
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946CC#FFFFFF#000000##FFFFFF
##7946CC1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#646583
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7946cc;
/* rgb */ color: rgb(121, 70, 204);
/* oklch */ color: oklch(52.6% 0.197 296.5);
Tailwind
colors: {
  custom: {
    50: '#a67ddc',
    500: '#7946cc',
    950: '#000000',
  },
}
SCSS
$custom: #7946cc;
$custom-light: #a67ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#7946cc",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 204
  },
  "hsl": {
    "h": 262.836,
    "s": 56.78,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52584,
    "c": 0.19692,
    "h": 296.5
  },
  "luminance": 0.12805
}

Semantic roles & 50–950 ramp

primary
#7946CC
secondary
#BED49A
accent
#E048A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7946CC

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

Preview Lab → · Contrast checker → · Palette generator →

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