#7E40D9#7E40D9

#7E40D9 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.3% C 0.219 H 296.8°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#7E40D9
RGBrgb(126, 64, 217)
HSLhsl(264, 67%, 55%)
HSVhsv(264, 71%, 85%)
CMYKcmyk(41.9%, 70.5%, 0%, 14.9%)
CIE-LABlab(42.93, 57.38, -68.47)
CIE-LCHlch(42.93, 89.33, 309.96°)
OKLaboklab(53.35% 0.0987 -0.1958)
OKLCHoklch(53.35% 0.219 296.8)
XYZxyz(22.9587, 13.1117, 66.9534)
Luminance0.1311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E40D9 #9BD940
analogous
#404ED9 #7E40D9 #CB40D9
triadic
#7E40D9 #D97E40 #40D97E
tetradic
#7E40D9 #D9404E #9BD940 #40D9CB
square
#7E40D9 #D9404E #9BD940 #40D9CB
split-complementary
#7E40D9 #D9CB40 #4ED940
monochromatic
#451A84 #6024B7 #7E40D9 #A073E3 #C3A6ED

Accessibility & contrast

On white

5.80
#7E40D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#7E40D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E40D9
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E40D9#FFFFFF#000000##FFFFFF
##7E40D91.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DD
Deuteranopia (green-blind)
#0063D6
Tritanopia (blue-blind)
#666688
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e40d9;
/* rgb */ color: rgb(126, 64, 217);
/* oklch */ color: oklch(53.3% 0.219 296.8);
Tailwind
colors: {
  custom: {
    50: '#ab7ae6',
    500: '#7e40d9',
    950: '#000000',
  },
}
SCSS
$custom: #7e40d9;
$custom-light: #ab7ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e40d9",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 264.314,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.5335,
    "c": 0.21924,
    "h": 296.8
  },
  "luminance": 0.13112
}

Semantic roles & 50–950 ramp

primary
#7E40D9
secondary
#C0DA9A
accent
#EA3EA4
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7E40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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