#7E40D3#7E40D3

#7E40D3 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.9% C 0.213 H 298.0°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7E40D3
RGBrgb(126, 64, 211)
HSLhsl(265, 63%, 54%)
HSVhsv(265, 70%, 83%)
CMYKcmyk(40.3%, 69.7%, 0%, 17.3%)
CIE-LABlab(42.47, 55.87, -65.78)
CIE-LCHlch(42.47, 86.30, 310.34°)
OKLaboklab(52.88% 0.0998 -0.1879)
OKLCHoklch(52.88% 0.213 298)
XYZxyz(22.1924, 12.8052, 62.9178)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E40D3 #95D340
analogous
#404CD3 #7E40D3 #C840D3
triadic
#7E40D3 #D37E40 #40D37E
tetradic
#7E40D3 #D3404C #95D340 #40D3C8
square
#7E40D3 #D3404C #95D340 #40D3C8
split-complementary
#7E40D3 #D3C840 #4CD340
monochromatic
#451D7C #6028AE #7E40D3 #A072DE #C1A3EA

Accessibility & contrast

On white

5.90
#7E40D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7E40D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E40D3
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E40D3#FFFFFF#000000##FFFFFF
##7E40D31.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D7
Deuteranopia (green-blind)
#0063D0
Tritanopia (blue-blind)
#696485
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e40d3;
/* rgb */ color: rgb(126, 64, 211);
/* oklch */ color: oklch(52.9% 0.213 298.0);
Tailwind
colors: {
  custom: {
    50: '#aa7ae1',
    500: '#7e40d3',
    950: '#000000',
  },
}
SCSS
$custom: #7e40d3;
$custom-light: #aa7ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e40d3",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 265.306,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52877,
    "c": 0.21272,
    "h": 298
  },
  "luminance": 0.12806
}

Semantic roles & 50–950 ramp

primary
#7E40D3
secondary
#BCD798
accent
#E642A1
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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