#7940D3#7940D3

#7940D3 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.3% C 0.212 H 295.9°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#7940D3
RGBrgb(121, 64, 211)
HSLhsl(263, 63%, 54%)
HSVhsv(263, 70%, 83%)
CMYKcmyk(42.7%, 69.7%, 0%, 17.3%)
CIE-LABlab(41.90, 54.96, -66.73)
CIE-LCHlch(41.90, 86.45, 309.48°)
OKLaboklab(52.34% 0.0928 -0.1908)
OKLCHoklch(52.34% 0.212 295.9)
XYZxyz(21.4733, 12.4344, 62.8841)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940D3 #9AD340
analogous
#4051D3 #7940D3 #C240D3
triadic
#7940D3 #D37940 #40D379
tetradic
#7940D3 #D34051 #9AD340 #40D3C2
square
#7940D3 #D34051 #9AD340 #40D3C2
split-complementary
#7940D3 #D3C240 #51D340
monochromatic
#421D7C #5C28AE #7940D3 #9C72DE #BFA3EA

Accessibility & contrast

On white

6.02
#7940D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7940D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940D3
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940D3#FFFFFF#000000##FFFFFF
##7940D31.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D7
Deuteranopia (green-blind)
#0061D0
Tritanopia (blue-blind)
#616585
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7940d3;
/* rgb */ color: rgb(121, 64, 211);
/* oklch */ color: oklch(52.3% 0.212 295.9);
Tailwind
colors: {
  custom: {
    50: '#a779e2',
    500: '#7940d3',
    950: '#000000',
  },
}
SCSS
$custom: #7940d3;
$custom-light: #a779e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7940d3",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 263.265,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52342,
    "c": 0.21221,
    "h": 295.9
  },
  "luminance": 0.12435
}

Semantic roles & 50–950 ramp

primary
#7940D3
secondary
#BED798
accent
#E642A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7940D3

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

Preview Lab → · Contrast checker → · Palette generator →

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