#7946B4#7946B4

#7946B4 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.8% C 0.169 H 302.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7946B4
RGBrgb(121, 70, 180)
HSLhsl(268, 44%, 49%)
HSVhsv(268, 61%, 71%)
CMYKcmyk(32.8%, 61.1%, 0%, 29.4%)
CIE-LABlab(40.80, 43.95, -50.46)
CIE-LCHlch(40.80, 66.91, 311.06°)
OKLaboklab(50.85% 0.0897 -0.143)
OKLCHoklch(50.85% 0.169 302.1)
XYZxyz(18.3116, 11.7405, 44.4726)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946B4 #81B446
analogous
#464AB4 #7946B4 #B046B4
triadic
#7946B4 #B47946 #46B479
tetradic
#7946B4 #B4464A #81B446 #46B4B0
square
#7946B4 #B4464A #81B446 #46B4B0
split-complementary
#7946B4 #B4B046 #4AB446
monochromatic
#3E245C #5B3588 #7946B4 #9870C7 #B89CD8

Accessibility & contrast

On white

6.27
#7946B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7946B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946B4
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946B4#FFFFFF#000000##FFFFFF
##7946B41.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#2560B2
Tritanopia (blue-blind)
#6D5D76
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7946b4;
/* rgb */ color: rgb(121, 70, 180);
/* oklch */ color: oklch(50.8% 0.169 302.1);
Tailwind
colors: {
  custom: {
    50: '#a47ccb',
    500: '#7946b4',
    950: '#000000',
  },
}
SCSS
$custom: #7946b4;
$custom-light: #a47ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#7946b4",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 180
  },
  "hsl": {
    "h": 267.818,
    "s": 44,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5085,
    "c": 0.16881,
    "h": 302.1
  },
  "luminance": 0.11741
}

Semantic roles & 50–950 ramp

primary
#7946B4
secondary
#ADC591
accent
#D45499
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7946B4

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

Preview Lab → · Contrast checker → · Palette generator →

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