#7940CF#7940CF

#7940CF is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.208 H 296.7°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#7940CF
RGBrgb(121, 64, 207)
HSLhsl(264, 60%, 53%)
HSVhsv(264, 69%, 81%)
CMYKcmyk(41.5%, 69.1%, 0%, 18.8%)
CIE-LABlab(41.59, 53.94, -64.93)
CIE-LCHlch(41.59, 84.41, 309.72°)
OKLaboklab(52.03% 0.0935 -0.1855)
OKLCHoklch(52.03% 0.208 296.7)
XYZxyz(20.9781, 12.2363, 60.2760)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940CF #96CF40
analogous
#404ECF #7940CF #C040CF
triadic
#7940CF #CF7940 #40CF79
tetradic
#7940CF #CF404E #96CF40 #40CFC0
square
#7940CF #CF404E #96CF40 #40CFC0
split-complementary
#7940CF #CFC040 #4ECF40
monochromatic
#411E77 #5C2AA8 #7940CF #9B71DB #BEA2E8

Accessibility & contrast

On white

6.09
#7940CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7940CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940CF
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940CF#FFFFFF#000000##FFFFFF
##7940CF1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#0060CC
Tritanopia (blue-blind)
#636383
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7940cf;
/* rgb */ color: rgb(121, 64, 207);
/* oklch */ color: oklch(52.0% 0.208 296.7);
Tailwind
colors: {
  custom: {
    50: '#a679df',
    500: '#7940cf',
    950: '#000000',
  },
}
SCSS
$custom: #7940cf;
$custom-light: #a679df;
$custom-dark: #000000;
JSON
{
  "hex": "#7940cf",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 263.916,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52026,
    "c": 0.20776,
    "h": 296.7
  },
  "luminance": 0.12237
}

Semantic roles & 50–950 ramp

primary
#7940CF
secondary
#BCD497
accent
#E345A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7940CF

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

Preview Lab → · Contrast checker → · Palette generator →

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