#7940AE#7940AE

#7940AE is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.6% C 0.171 H 304.8°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7940AE
RGBrgb(121, 64, 174)
HSLhsl(271, 46%, 47%)
HSVhsv(271, 63%, 68%)
CMYKcmyk(30.5%, 63.2%, 0%, 31.8%)
CIE-LABlab(39.22, 45.65, -49.45)
CIE-LCHlch(39.22, 67.30, 312.71°)
OKLaboklab(49.58% 0.0973 -0.14)
OKLCHoklch(49.58% 0.171 304.8)
XYZxyz(17.3568, 10.7878, 41.2041)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940AE #75AE40
analogous
#4240AE #7940AE #AE40AC
triadic
#7940AE #AE7940 #40AE79
tetradic
#7940AE #AE4240 #75AE40 #40ACAE
square
#7940AE #AE4240 #75AE40 #40ACAE
split-complementary
#7940AE #ACAE40 #40AE42
monochromatic
#3B1F55 #5A3081 #7940AE #9765C6 #B592D7

Accessibility & contrast

On white

6.65
#7940AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7940AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940AE
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940AE#FFFFFF#000000##FFFFFF
##7940AE1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#245CAC
Tritanopia (blue-blind)
#6F5771
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7940ae;
/* rgb */ color: rgb(121, 64, 174);
/* oklch */ color: oklch(49.6% 0.171 304.8);
Tailwind
colors: {
  custom: {
    50: '#a378c7',
    500: '#7940ae',
    950: '#000000',
  },
}
SCSS
$custom: #7940ae;
$custom-light: #a378c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7940ae",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 271.091,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49576,
    "c": 0.17051,
    "h": 304.8
  },
  "luminance": 0.10788
}

Semantic roles & 50–950 ramp

primary
#7940AE
secondary
#A4C288
accent
#D65292
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7940AE

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

Preview Lab → · Contrast checker → · Palette generator →

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