#7E40BE#7E40BE

#7E40BE is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.3% C 0.190 H 302.8°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7E40BE
RGBrgb(126, 64, 190)
HSLhsl(270, 50%, 50%)
HSVhsv(270, 66%, 75%)
CMYKcmyk(33.7%, 66.3%, 0%, 25.5%)
CIE-LABlab(40.93, 50.67, -56.09)
CIE-LCHlch(40.93, 75.59, 312.09°)
OKLaboklab(51.29% 0.1028 -0.1594)
OKLCHoklch(51.29% 0.19 302.8)
XYZxyz(19.7297, 11.8201, 49.9473)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E40BE #80BE40
analogous
#4041BE #7E40BE #BD40BE
triadic
#7E40BE #BE7E40 #40BE7E
tetradic
#7E40BE #BE4041 #80BE40 #40BEBD
square
#7E40BE #BE4041 #80BE40 #40BEBD
split-complementary
#7E40BE #BEBD40 #41BE40
monochromatic
#412162 #603190 #7E40BE #9D6DCE #BC9BDD

Accessibility & contrast

On white

6.24
#7E40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7E40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E40BE
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E40BE#FFFFFF#000000##FFFFFF
##7E40BE1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC2
Deuteranopia (green-blind)
#0B60BB
Tritanopia (blue-blind)
#715C7A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e40be;
/* rgb */ color: rgb(126, 64, 190);
/* oklch */ color: oklch(51.3% 0.190 302.8);
Tailwind
colors: {
  custom: {
    50: '#a879d2',
    500: '#7e40be',
    950: '#000000',
  },
}
SCSS
$custom: #7e40be;
$custom-light: #a879d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e40be",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 269.524,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51291,
    "c": 0.18964,
    "h": 302.8
  },
  "luminance": 0.1182
}

Semantic roles & 50–950 ramp

primary
#7E40BE
secondary
#ADC990
accent
#D94F95
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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