#7940BC#7940BC

#7940BC is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.6% C 0.186 H 301.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#7940BC
RGBrgb(121, 64, 188)
HSLhsl(268, 49%, 49%)
HSVhsv(268, 66%, 74%)
CMYKcmyk(35.6%, 66%, 0%, 26.3%)
CIE-LABlab(40.18, 49.12, -56.16)
CIE-LCHlch(40.18, 74.60, 311.17°)
OKLaboklab(50.58% 0.0961 -0.1597)
OKLCHoklch(50.58% 0.186 301)
XYZxyz(18.7935, 11.3625, 48.7703)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940BC #83BC40
analogous
#4045BC #7940BC #B740BC
triadic
#7940BC #BC7940 #40BC79
tetradic
#7940BC #BC4045 #83BC40 #40BCB7
square
#7940BC #BC4045 #83BC40 #40BCB7
split-complementary
#7940BC #BCB740 #45BC40
monochromatic
#3E2161 #5C308E #7940BC #996CCD #B99ADD

Accessibility & contrast

On white

6.42
#7940BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7940BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940BC
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940BC#FFFFFF#000000##FFFFFF
##7940BC1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#005EB9
Tritanopia (blue-blind)
#6B5C78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7940bc;
/* rgb */ color: rgb(121, 64, 188);
/* oklch */ color: oklch(50.6% 0.186 301.0);
Tailwind
colors: {
  custom: {
    50: '#a578d1',
    500: '#7940bc',
    950: '#000000',
  },
}
SCSS
$custom: #7940bc;
$custom-light: #a578d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7940bc",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 267.581,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50578,
    "c": 0.18643,
    "h": 301
  },
  "luminance": 0.11363
}

Semantic roles & 50–950 ramp

primary
#7940BC
secondary
#AEC98F
accent
#D94F99
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7940BC

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

Preview Lab → · Contrast checker → · Palette generator →

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