#7940D9#7940D9

#7940D9 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.219 H 294.8°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7940D9
RGBrgb(121, 64, 217)
HSLhsl(262, 67%, 55%)
HSVhsv(262, 71%, 85%)
CMYKcmyk(44.2%, 70.5%, 0%, 14.9%)
CIE-LABlab(42.37, 56.51, -69.41)
CIE-LCHlch(42.37, 89.50, 309.15°)
OKLaboklab(52.83% 0.0917 -0.1987)
OKLCHoklch(52.83% 0.219 294.8)
XYZxyz(22.2396, 12.7409, 66.9197)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940D9 #A0D940
analogous
#4053D9 #7940D9 #C540D9
triadic
#7940D9 #D97940 #40D979
tetradic
#7940D9 #D94053 #A0D940 #40D9C5
square
#7940D9 #D94053 #A0D940 #40D9C5
split-complementary
#7940D9 #D9C540 #53D940
monochromatic
#421A84 #5B24B7 #7940D9 #9D73E3 #C1A6ED

Accessibility & contrast

On white

5.92
#7940D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7940D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940D9
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940D9#FFFFFF#000000##FFFFFF
##7940D91.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DD
Deuteranopia (green-blind)
#0062D6
Tritanopia (blue-blind)
#5E6788
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7940d9;
/* rgb */ color: rgb(121, 64, 217);
/* oklch */ color: oklch(52.8% 0.219 294.8);
Tailwind
colors: {
  custom: {
    50: '#a779e6',
    500: '#7940d9',
    950: '#000000',
  },
}
SCSS
$custom: #7940d9;
$custom-light: #a779e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7940d9",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 262.353,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.52825,
    "c": 0.21884,
    "h": 294.8
  },
  "luminance": 0.12741
}

Semantic roles & 50–950 ramp

primary
#7940D9
secondary
#C3DA9A
accent
#EA3EAA
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7940D9

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

Preview Lab → · Contrast checker → · Palette generator →

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