#7946AC#7946AC

#7946AC is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.3% C 0.159 H 304.3°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#7946AC
RGBrgb(121, 70, 172)
HSLhsl(270, 42%, 47%)
HSVhsv(270, 59%, 67%)
CMYKcmyk(29.7%, 59.3%, 0%, 32.5%)
CIE-LABlab(40.29, 41.95, -46.56)
CIE-LCHlch(40.29, 62.67, 312.02°)
OKLaboklab(50.31% 0.0898 -0.1316)
OKLCHoklch(50.31% 0.159 304.3)
XYZxyz(17.5201, 11.4239, 40.3038)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946AC #79AC46
analogous
#4646AC #7946AC #AC46AC
triadic
#7946AC #AC7946 #46AC79
tetradic
#7946AC #AC4646 #79AC46 #46ACAC
square
#7946AC #AC4646 #79AC46 #46ACAC
split-complementary
#7946AC #ACAC46 #46AC46
monochromatic
#3C2355 #5A3481 #7946AC #986CC3 #B698D5

Accessibility & contrast

On white

6.39
#7946AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7946AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946AC
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946AC#FFFFFF#000000##FFFFFF
##7946AC1.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185EAF
Deuteranopia (green-blind)
#2F5FAA
Tritanopia (blue-blind)
#705A72
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7946ac;
/* rgb */ color: rgb(121, 70, 172);
/* oklch */ color: oklch(50.3% 0.159 304.3);
Tailwind
colors: {
  custom: {
    50: '#a37cc5',
    500: '#7946ac',
    950: '#000000',
  },
}
SCSS
$custom: #7946ac;
$custom-light: #a37cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7946ac",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 172
  },
  "hsl": {
    "h": 270,
    "s": 42.149,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50309,
    "c": 0.15931,
    "h": 304.3
  },
  "luminance": 0.11424
}

Semantic roles & 50–950 ramp

primary
#7946AC
secondary
#A7C18D
accent
#D25694
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7946AC

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

Preview Lab → · Contrast checker → · Palette generator →

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