#7940C1#7940C1

#7940C1 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.192 H 299.8°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#7940C1
RGBrgb(121, 64, 193)
HSLhsl(267, 51%, 50%)
HSVhsv(267, 67%, 76%)
CMYKcmyk(37.3%, 66.8%, 0%, 24.3%)
CIE-LABlab(40.54, 50.37, -58.50)
CIE-LCHlch(40.54, 77.20, 310.73°)
OKLaboklab(50.95% 0.0956 -0.1666)
OKLCHoklch(50.95% 0.192 299.8)
XYZxyz(19.3418, 11.5818, 51.6582)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940C1 #88C140
analogous
#4047C1 #7940C1 #BA40C1
triadic
#7940C1 #C17940 #40C179
tetradic
#7940C1 #C14047 #88C140 #40C1BA
square
#7940C1 #C14047 #88C140 #40C1BA
split-complementary
#7940C1 #C1BA40 #47C140
monochromatic
#3F2166 #5C3094 #7940C1 #996ED0 #BA9CDF

Accessibility & contrast

On white

6.33
#7940C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7940C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940C1
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940C1#FFFFFF#000000##FFFFFF
##7940C11.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC5
Deuteranopia (green-blind)
#005FBE
Tritanopia (blue-blind)
#695E7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7940c1;
/* rgb */ color: rgb(121, 64, 193);
/* oklch */ color: oklch(50.9% 0.192 299.8);
Tailwind
colors: {
  custom: {
    50: '#a579d5',
    500: '#7940c1',
    950: '#000000',
  },
}
SCSS
$custom: #7940c1;
$custom-light: #a579d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7940c1",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 266.512,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.50949,
    "c": 0.19208,
    "h": 299.8
  },
  "luminance": 0.11582
}

Semantic roles & 50–950 ramp

primary
#7940C1
secondary
#B2CB92
accent
#DA4D9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7940C1

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

Preview Lab → · Contrast checker → · Palette generator →

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