#7940BF#7940BF

#7940BF is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.8% C 0.190 H 300.3°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#7940BF
RGBrgb(121, 64, 191)
HSLhsl(267, 50%, 50%)
HSVhsv(267, 66%, 75%)
CMYKcmyk(36.6%, 66.5%, 0%, 25.1%)
CIE-LABlab(40.40, 49.87, -57.56)
CIE-LCHlch(40.40, 76.16, 310.90°)
OKLaboklab(50.8% 0.0958 -0.1639)
OKLCHoklch(50.8% 0.19 300.3)
XYZxyz(19.1202, 11.4932, 50.4912)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940BF #86BF40
analogous
#4047BF #7940BF #B840BF
triadic
#7940BF #BF7940 #40BF79
tetradic
#7940BF #BF4047 #86BF40 #40BFB8
square
#7940BF #BF4047 #86BF40 #40BFB8
split-complementary
#7940BF #BFB840 #47BF40
monochromatic
#3F2163 #5C3191 #7940BF #996ECE #B99CDE

Accessibility & contrast

On white

6.37
#7940BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7940BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940BF
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940BF#FFFFFF#000000##FFFFFF
##7940BF1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#005EBC
Tritanopia (blue-blind)
#6A5D7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7940bf;
/* rgb */ color: rgb(121, 64, 191);
/* oklch */ color: oklch(50.8% 0.190 300.3);
Tailwind
colors: {
  custom: {
    50: '#a579d3',
    500: '#7940bf',
    950: '#000000',
  },
}
SCSS
$custom: #7940bf;
$custom-light: #a579d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7940bf",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 266.929,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.508,
    "c": 0.18982,
    "h": 300.3
  },
  "luminance": 0.11493
}

Semantic roles & 50–950 ramp

primary
#7940BF
secondary
#B0CA91
accent
#D94E9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7940BF

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

Preview Lab → · Contrast checker → · Palette generator →

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