#7E40D5#7E40D5

#7E40D5 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.0% C 0.215 H 297.6°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#7E40D5
RGBrgb(126, 64, 213)
HSLhsl(265, 64%, 54%)
HSVhsv(265, 70%, 84%)
CMYKcmyk(40.8%, 70%, 0%, 16.5%)
CIE-LABlab(42.62, 56.37, -66.68)
CIE-LCHlch(42.62, 87.31, 310.21°)
OKLaboklab(53.03% 0.0995 -0.1905)
OKLCHoklch(53.03% 0.215 297.6)
XYZxyz(22.4447, 12.9061, 64.2465)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E40D5 #97D540
analogous
#404DD5 #7E40D5 #C840D5
triadic
#7E40D5 #D57E40 #40D57E
tetradic
#7E40D5 #D5404D #97D540 #40D5C8
square
#7E40D5 #D5404D #97D540 #40D5C8
split-complementary
#7E40D5 #D5C840 #4DD540
monochromatic
#451C7F #6027B1 #7E40D5 #A072E0 #C2A4EB

Accessibility & contrast

On white

5.86
#7E40D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7E40D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E40D5
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E40D5#FFFFFF#000000##FFFFFF
##7E40D51.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D9
Deuteranopia (green-blind)
#0063D2
Tritanopia (blue-blind)
#686586
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e40d5;
/* rgb */ color: rgb(126, 64, 213);
/* oklch */ color: oklch(53.0% 0.215 297.6);
Tailwind
colors: {
  custom: {
    50: '#aa7ae3',
    500: '#7e40d5',
    950: '#000000',
  },
}
SCSS
$custom: #7e40d5;
$custom-light: #aa7ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e40d5",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 264.966,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.53034,
    "c": 0.2149,
    "h": 297.6
  },
  "luminance": 0.12907
}

Semantic roles & 50–950 ramp

primary
#7E40D5
secondary
#BED899
accent
#E741A2
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7E40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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