#7940C3#7940C3

#7940C3 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.194 H 299.4°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7940C3
RGBrgb(121, 64, 195)
HSLhsl(266, 52%, 51%)
HSVhsv(266, 67%, 76%)
CMYKcmyk(37.9%, 67.2%, 0%, 23.5%)
CIE-LABlab(40.69, 50.88, -59.43)
CIE-LCHlch(40.69, 78.23, 310.57°)
OKLaboklab(51.1% 0.0953 -0.1694)
OKLCHoklch(51.1% 0.194 299.4)
XYZxyz(19.5664, 11.6717, 52.8412)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940C3 #8AC340
analogous
#4048C3 #7940C3 #BA40C3
triadic
#7940C3 #C37940 #40C379
tetradic
#7940C3 #C34048 #8AC340 #40C3BA
square
#7940C3 #C34048 #8AC340 #40C3BA
split-complementary
#7940C3 #C3BA40 #48C340
monochromatic
#402168 #5C2F97 #7940C3 #9A6FD2 #BA9DE0

Accessibility & contrast

On white

6.30
#7940C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7940C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940C3
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940C3#FFFFFF#000000##FFFFFF
##7940C31.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C7
Deuteranopia (green-blind)
#005FC0
Tritanopia (blue-blind)
#685F7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7940c3;
/* rgb */ color: rgb(121, 64, 195);
/* oklch */ color: oklch(51.1% 0.194 299.4);
Tailwind
colors: {
  custom: {
    50: '#a579d6',
    500: '#7940c3',
    950: '#000000',
  },
}
SCSS
$custom: #7940c3;
$custom-light: #a579d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7940c3",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 266.107,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.511,
    "c": 0.19433,
    "h": 299.4
  },
  "luminance": 0.11672
}

Semantic roles & 50–950 ramp

primary
#7940C3
secondary
#B3CC92
accent
#DC4C9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7940C3

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

Preview Lab → · Contrast checker → · Palette generator →

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