#7E40D1#7E40D1

#7E40D1 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.211 H 298.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7E40D1
RGBrgb(126, 64, 209)
HSLhsl(266, 61%, 54%)
HSVhsv(266, 69%, 82%)
CMYKcmyk(39.7%, 69.4%, 0%, 18%)
CIE-LABlab(42.32, 55.37, -64.87)
CIE-LCHlch(42.32, 85.29, 310.48°)
OKLaboklab(52.72% 0.1001 -0.1852)
OKLCHoklch(52.72% 0.211 298.4)
XYZxyz(21.9433, 12.7055, 61.6056)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E40D1 #93D140
analogous
#404AD1 #7E40D1 #C640D1
triadic
#7E40D1 #D17E40 #40D17E
tetradic
#7E40D1 #D1404A #93D140 #40D1C6
square
#7E40D1 #D1404A #93D140 #40D1C6
split-complementary
#7E40D1 #D1C640 #4AD140
monochromatic
#451D79 #6129AB #7E40D1 #9F71DD #C1A3E9

Accessibility & contrast

On white

5.93
#7E40D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7E40D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E40D1
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E40D1#FFFFFF#000000##FFFFFF
##7E40D11.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D5
Deuteranopia (green-blind)
#0062CE
Tritanopia (blue-blind)
#6A6384
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e40d1;
/* rgb */ color: rgb(126, 64, 209);
/* oklch */ color: oklch(52.7% 0.211 298.4);
Tailwind
colors: {
  custom: {
    50: '#aa7ae0',
    500: '#7e40d1',
    950: '#000000',
  },
}
SCSS
$custom: #7e40d1;
$custom-light: #aa7ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e40d1",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 265.655,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52721,
    "c": 0.21054,
    "h": 298.4
  },
  "luminance": 0.12706
}

Semantic roles & 50–950 ramp

primary
#7E40D1
secondary
#BBD597
accent
#E444A0
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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