#7940BD#7940BD

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

Color values

HEX#7940BD
RGBrgb(121, 64, 189)
HSLhsl(267, 49%, 50%)
HSVhsv(267, 66%, 74%)
CMYKcmyk(36%, 66.1%, 0%, 25.9%)
CIE-LABlab(40.26, 49.37, -56.63)
CIE-LCHlch(40.26, 75.12, 311.08°)
OKLaboklab(50.65% 0.096 -0.1611)
OKLCHoklch(50.65% 0.188 300.8)
XYZxyz(18.9016, 11.4057, 49.3400)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940BD #84BD40
analogous
#4046BD #7940BD #B840BD
triadic
#7940BD #BD7940 #40BD79
tetradic
#7940BD #BD4046 #84BD40 #40BDB8
square
#7940BD #BD4046 #84BD40 #40BDB8
split-complementary
#7940BD #BDB840 #46BD40
monochromatic
#3E2162 #5C318F #7940BD #996DCD #B99ADD

Accessibility & contrast

On white

6.40
#7940BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7940BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940BD
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940BD#FFFFFF#000000##FFFFFF
##7940BD1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#6A5C79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7940bd;
/* rgb */ color: rgb(121, 64, 189);
/* oklch */ color: oklch(50.7% 0.188 300.8);
Tailwind
colors: {
  custom: {
    50: '#a578d2',
    500: '#7940bd',
    950: '#000000',
  },
}
SCSS
$custom: #7940bd;
$custom-light: #a578d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7940bd",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 267.36,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50652,
    "c": 0.18756,
    "h": 300.8
  },
  "luminance": 0.11406
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7940BD

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

Preview Lab → · Contrast checker → · Palette generator →

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