#7E40BB#7E40BB

#7E40BB is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.186 H 303.6°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#7E40BB
RGBrgb(126, 64, 187)
HSLhsl(270, 49%, 49%)
HSVhsv(270, 66%, 73%)
CMYKcmyk(32.6%, 65.8%, 0%, 26.7%)
CIE-LABlab(40.72, 49.94, -54.67)
CIE-LCHlch(40.72, 74.05, 312.41°)
OKLaboklab(51.08% 0.1031 -0.1552)
OKLCHoklch(51.08% 0.186 303.6)
XYZxyz(19.4052, 11.6903, 48.2382)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E40BB #7DBB40
analogous
#4140BB #7E40BB #BB40BB
triadic
#7E40BB #BB7E40 #40BB7E
tetradic
#7E40BB #BB4140 #7DBB40 #40BBBB
square
#7E40BB #BB4140 #7DBB40 #40BBBB
split-complementary
#7E40BB #BBBB40 #40BB41
monochromatic
#412160 #5F308D #7E40BB #9C6CCD #BB99DC

Accessibility & contrast

On white

6.29
#7E40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7E40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E40BB
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E40BB#FFFFFF#000000##FFFFFF
##7E40BB1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#1560B8
Tritanopia (blue-blind)
#725B78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e40bb;
/* rgb */ color: rgb(126, 64, 187);
/* oklch */ color: oklch(51.1% 0.186 303.6);
Tailwind
colors: {
  custom: {
    50: '#a879d0',
    500: '#7e40bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e40bb;
$custom-light: #a879d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e40bb",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 270.244,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51075,
    "c": 0.18631,
    "h": 303.6
  },
  "luminance": 0.1169
}

Semantic roles & 50–950 ramp

primary
#7E40BB
secondary
#ABC88F
accent
#D94F93
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E40BB

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

Preview Lab → · Contrast checker → · Palette generator →

#7E40BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva