#7940CA#7940CA

#7940CA is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.6% C 0.202 H 297.8°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#7940CA
RGBrgb(121, 64, 202)
HSLhsl(265, 57%, 52%)
HSVhsv(265, 68%, 79%)
CMYKcmyk(40.1%, 68.3%, 0%, 20.8%)
CIE-LABlab(41.21, 52.66, -62.65)
CIE-LCHlch(41.21, 81.84, 310.05°)
OKLaboklab(51.64% 0.0943 -0.1788)
OKLCHoklch(51.64% 0.202 297.8)
XYZxyz(20.3765, 11.9957, 57.1075)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940CA #91CA40
analogous
#404CCA #7940CA #BE40CA
triadic
#7940CA #CA7940 #40CA79
tetradic
#7940CA #CA404C #91CA40 #40CABE
square
#7940CA #CA404C #91CA40 #40CABE
split-complementary
#7940CA #CABE40 #4CCA40
monochromatic
#411F70 #5C2CA0 #7940CA #9B70D7 #BCA0E5

Accessibility & contrast

On white

6.18
#7940CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7940CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940CA
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940CA#FFFFFF#000000##FFFFFF
##7940CA1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#656180
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7940ca;
/* rgb */ color: rgb(121, 64, 202);
/* oklch */ color: oklch(51.6% 0.202 297.8);
Tailwind
colors: {
  custom: {
    50: '#a679db',
    500: '#7940ca',
    950: '#000000',
  },
}
SCSS
$custom: #7940ca;
$custom-light: #a679db;
$custom-dark: #000000;
JSON
{
  "hex": "#7940ca",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 264.783,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51635,
    "c": 0.20218,
    "h": 297.8
  },
  "luminance": 0.11996
}

Semantic roles & 50–950 ramp

primary
#7940CA
secondary
#B8D195
accent
#E048A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7940CA

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

Preview Lab → · Contrast checker → · Palette generator →

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