#7940BE#7940BE

#7940BE is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.7% C 0.189 H 300.5°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#7940BE
RGBrgb(121, 64, 190)
HSLhsl(267, 50%, 50%)
HSVhsv(267, 66%, 75%)
CMYKcmyk(36.3%, 66.3%, 0%, 25.5%)
CIE-LABlab(40.33, 49.62, -57.10)
CIE-LCHlch(40.33, 75.64, 310.99°)
OKLaboklab(50.73% 0.0959 -0.1625)
OKLCHoklch(50.73% 0.189 300.5)
XYZxyz(19.0106, 11.4493, 49.9136)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940BE #85BE40
analogous
#4046BE #7940BE #B840BE
triadic
#7940BE #BE7940 #40BE79
tetradic
#7940BE #BE4046 #85BE40 #40BEB8
square
#7940BE #BE4046 #85BE40 #40BEB8
split-complementary
#7940BE #BEB840 #46BE40
monochromatic
#3F2162 #5C3190 #7940BE #996DCE #B99BDD

Accessibility & contrast

On white

6.38
#7940BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7940BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940BE
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940BE#FFFFFF#000000##FFFFFF
##7940BE1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC2
Deuteranopia (green-blind)
#005EBB
Tritanopia (blue-blind)
#6A5D79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7940be;
/* rgb */ color: rgb(121, 64, 190);
/* oklch */ color: oklch(50.7% 0.189 300.5);
Tailwind
colors: {
  custom: {
    50: '#a578d2',
    500: '#7940be',
    950: '#000000',
  },
}
SCSS
$custom: #7940be;
$custom-light: #a578d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7940be",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 267.143,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50726,
    "c": 0.18869,
    "h": 300.5
  },
  "luminance": 0.11449
}

Semantic roles & 50–950 ramp

primary
#7940BE
secondary
#B0C990
accent
#D94F9A
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7940BE

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

Preview Lab → · Contrast checker → · Palette generator →

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