#7940AC#7940AC

#7940AC is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.4% C 0.168 H 305.4°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7940AC
RGBrgb(121, 64, 172)
HSLhsl(272, 46%, 46%)
HSVhsv(272, 63%, 67%)
CMYKcmyk(29.7%, 62.8%, 0%, 32.5%)
CIE-LABlab(39.09, 45.16, -48.48)
CIE-LCHlch(39.09, 66.26, 312.97°)
OKLaboklab(49.44% 0.0974 -0.1372)
OKLCHoklch(49.44% 0.168 305.4)
XYZxyz(17.1633, 10.7104, 40.1849)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940AC #73AC40
analogous
#4340AC #7940AC #AC40A9
triadic
#7940AC #AC7940 #40AC79
tetradic
#7940AC #AC4340 #73AC40 #40A9AC
square
#7940AC #AC4340 #73AC40 #40A9AC
split-complementary
#7940AC #A9AC40 #40AC43
monochromatic
#3A1F53 #5A2F7F #7940AC #9764C5 #B591D6

Accessibility & contrast

On white

6.68
#7940AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7940AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940AC
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940AC#FFFFFF#000000##FFFFFF
##7940AC1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAF
Deuteranopia (green-blind)
#275CAA
Tritanopia (blue-blind)
#705670
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7940ac;
/* rgb */ color: rgb(121, 64, 172);
/* oklch */ color: oklch(49.4% 0.168 305.4);
Tailwind
colors: {
  custom: {
    50: '#a378c5',
    500: '#7940ac',
    950: '#000000',
  },
}
SCSS
$custom: #7940ac;
$custom-light: #a378c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7940ac",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 271.667,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49438,
    "c": 0.16822,
    "h": 305.4
  },
  "luminance": 0.1071
}

Semantic roles & 50–950 ramp

primary
#7940AC
secondary
#A2C187
accent
#D55290
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7940AC

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

Preview Lab → · Contrast checker → · Palette generator →

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