#7E40BF#7E40BF

#7E40BF is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.4% C 0.191 H 302.6°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#7E40BF
RGBrgb(126, 64, 191)
HSLhsl(269, 50%, 50%)
HSVhsv(269, 66%, 75%)
CMYKcmyk(34%, 66.5%, 0%, 25.1%)
CIE-LABlab(41.00, 50.91, -56.56)
CIE-LCHlch(41.00, 76.10, 311.99°)
OKLaboklab(51.36% 0.1026 -0.1608)
OKLCHoklch(51.36% 0.191 302.6)
XYZxyz(19.8393, 11.8640, 50.5249)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E40BF #81BF40
analogous
#4042BF #7E40BF #BD40BF
triadic
#7E40BF #BF7E40 #40BF7E
tetradic
#7E40BF #BF4042 #81BF40 #40BFBD
square
#7E40BF #BF4042 #81BF40 #40BFBD
split-complementary
#7E40BF #BFBD40 #42BF40
monochromatic
#422163 #603191 #7E40BF #9D6ECE #BC9CDE

Accessibility & contrast

On white

6.23
#7E40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7E40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E40BF
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E40BF#FFFFFF#000000##FFFFFF
##7E40BF1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#0760BC
Tritanopia (blue-blind)
#715D7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e40bf;
/* rgb */ color: rgb(126, 64, 191);
/* oklch */ color: oklch(51.4% 0.191 302.6);
Tailwind
colors: {
  custom: {
    50: '#a879d3',
    500: '#7e40bf',
    950: '#000000',
  },
}
SCSS
$custom: #7e40bf;
$custom-light: #a879d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e40bf",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 269.291,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.51364,
    "c": 0.19074,
    "h": 302.6
  },
  "luminance": 0.11864
}

Semantic roles & 50–950 ramp

primary
#7E40BF
secondary
#AECA91
accent
#D94E96
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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