#7E40E2#7E40E2

#7E40E2 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.1% C 0.229 H 295.0°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#7E40E2
RGBrgb(126, 64, 226)
HSLhsl(263, 74%, 57%)
HSVhsv(263, 72%, 89%)
CMYKcmyk(44.2%, 71.7%, 0%, 11.4%)
CIE-LABlab(43.64, 59.65, -72.44)
CIE-LCHlch(43.64, 93.84, 309.47°)
OKLaboklab(54.08% 0.0969 -0.2074)
OKLCHoklch(54.08% 0.229 295)
XYZxyz(24.1613, 13.5928, 73.2874)
Luminance0.1359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E40E2 #A4E240
analogous
#4053E2 #7E40E2 #CF40E2
triadic
#7E40E2 #E27E40 #40E27E
tetradic
#7E40E2 #E24053 #A4E240 #40E2CF
square
#7E40E2 #E24053 #A4E240 #40E2CF
split-complementary
#7E40E2 #E2CF40 #53E240
monochromatic
#451692 #5F1EC7 #7E40E2 #A275EA #C6AAF2

Accessibility & contrast

On white

5.65
#7E40E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#7E40E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E40E2
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E40E2#FFFFFF#000000##FFFFFF
##7E40E21.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E7
Deuteranopia (green-blind)
#0065DF
Tritanopia (blue-blind)
#626A8D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e40e2;
/* rgb */ color: rgb(126, 64, 226);
/* oklch */ color: oklch(54.1% 0.229 295.0);
Tailwind
colors: {
  custom: {
    50: '#ac7aec',
    500: '#7e40e2',
    950: '#000000',
  },
}
SCSS
$custom: #7e40e2;
$custom-light: #ac7aec;
$custom-dark: #000000;
JSON
{
  "hex": "#7e40e2",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 262.963,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54076,
    "c": 0.22897,
    "h": 295
  },
  "luminance": 0.13593
}

Semantic roles & 50–950 ramp

primary
#7E40E2
secondary
#C7E09E
accent
#F038AA
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E40E2

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

Preview Lab → · Contrast checker → · Palette generator →

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