#7940D8#7940D8

#7940D8 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.218 H 295.0°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7940D8
RGBrgb(121, 64, 216)
HSLhsl(263, 66%, 55%)
HSVhsv(263, 70%, 85%)
CMYKcmyk(44%, 70.4%, 0%, 15.3%)
CIE-LABlab(42.29, 56.25, -68.96)
CIE-LCHlch(42.29, 88.99, 309.20°)
OKLaboklab(52.74% 0.0919 -0.1974)
OKLCHoklch(52.74% 0.218 295)
XYZxyz(22.1099, 12.6890, 66.2367)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940D8 #9FD840
analogous
#4053D8 #7940D8 #C540D8
triadic
#7940D8 #D87940 #40D879
tetradic
#7940D8 #D84053 #9FD840 #40D8C5
square
#7940D8 #D84053 #9FD840 #40D8C5
split-complementary
#7940D8 #D8C540 #53D840
monochromatic
#421B83 #5B25B6 #7940D8 #9D73E2 #C0A6ED

Accessibility & contrast

On white

5.94
#7940D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7940D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940D8
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940D8#FFFFFF#000000##FFFFFF
##7940D81.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DC
Deuteranopia (green-blind)
#0061D5
Tritanopia (blue-blind)
#5F6688
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7940d8;
/* rgb */ color: rgb(121, 64, 216);
/* oklch */ color: oklch(52.7% 0.218 295.0);
Tailwind
colors: {
  custom: {
    50: '#a779e5',
    500: '#7940d8',
    950: '#000000',
  },
}
SCSS
$custom: #7940d8;
$custom-light: #a779e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7940d8",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 262.5,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.52744,
    "c": 0.21773,
    "h": 295
  },
  "luminance": 0.1269
}

Semantic roles & 50–950 ramp

primary
#7940D8
secondary
#C2DA9A
accent
#E93FA9
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7940D8

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

Preview Lab → · Contrast checker → · Palette generator →

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