#7940BB#7940BB

#7940BB is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.5% C 0.185 H 301.3°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#7940BB
RGBrgb(121, 64, 187)
HSLhsl(268, 49%, 49%)
HSVhsv(268, 66%, 73%)
CMYKcmyk(35.3%, 65.8%, 0%, 26.7%)
CIE-LABlab(40.11, 48.87, -55.68)
CIE-LCHlch(40.11, 74.08, 311.27°)
OKLaboklab(50.5% 0.0962 -0.1583)
OKLCHoklch(50.5% 0.185 301.3)
XYZxyz(18.6860, 11.3195, 48.2045)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940BB #82BB40
analogous
#4045BB #7940BB #B740BB
triadic
#7940BB #BB7940 #40BB79
tetradic
#7940BB #BB4045 #82BB40 #40BBB7
square
#7940BB #BB4045 #82BB40 #40BBB7
split-complementary
#7940BB #BBB740 #45BB40
monochromatic
#3E2160 #5B308D #7940BB #996CCD #B899DC

Accessibility & contrast

On white

6.43
#7940BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7940BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940BB
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940BB#FFFFFF#000000##FFFFFF
##7940BB1.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#045EB8
Tritanopia (blue-blind)
#6B5C78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7940bb;
/* rgb */ color: rgb(121, 64, 187);
/* oklch */ color: oklch(50.5% 0.185 301.3);
Tailwind
colors: {
  custom: {
    50: '#a578d0',
    500: '#7940bb',
    950: '#000000',
  },
}
SCSS
$custom: #7940bb;
$custom-light: #a578d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7940bb",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 267.805,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50504,
    "c": 0.1853,
    "h": 301.3
  },
  "luminance": 0.1132
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7940BB

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

Preview Lab → · Contrast checker → · Palette generator →

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