#7E5ED5#7E5ED5

#7E5ED5 is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.3% C 0.175 H 292.4°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7E5ED5
RGBrgb(126, 94, 213)
HSLhsl(256, 59%, 60%)
HSVhsv(256, 56%, 84%)
CMYKcmyk(40.8%, 55.9%, 0%, 16.5%)
CIE-LABlab(48.57, 40.40, -57.05)
CIE-LCHlch(48.57, 69.91, 305.30°)
OKLaboklab(57.35% 0.0668 -0.1622)
OKLCHoklch(57.35% 0.175 292.4)
XYZxyz(24.6139, 17.2444, 64.9695)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5ED5 #B5D55E
analogous
#5E7AD5 #7E5ED5 #B95ED5
triadic
#7E5ED5 #D57E5E #5ED57E
tetradic
#7E5ED5 #D55E7A #B5D55E #5ED5B9
square
#7E5ED5 #D55E7A #B5D55E #5ED5B9
split-complementary
#7E5ED5 #D5B95E #7AD55E
monochromatic
#432692 #5A33C3 #7E5ED5 #A58FE2 #CCBFEE

Accessibility & contrast

On white

4.72
#7E5ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#7E5ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5ED5
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5ED5#FFFFFF#000000##FFFFFF
##7E5ED51.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E75D9
Deuteranopia (green-blind)
#2871D2
Tritanopia (blue-blind)
#677790
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e5ed5;
/* rgb */ color: rgb(126, 94, 213);
/* oklch */ color: oklch(57.3% 0.175 292.4);
Tailwind
colors: {
  custom: {
    50: '#a88de3',
    500: '#7e5ed5',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ed5;
$custom-light: #a88de3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ed5",
  "rgb": {
    "r": 126,
    "g": 94,
    "b": 213
  },
  "hsl": {
    "h": 256.134,
    "s": 58.621,
    "l": 60.196
  },
  "oklch": {
    "l": 0.57345,
    "c": 0.17545,
    "h": 292.4
  },
  "luminance": 0.17245
}

Semantic roles & 50–950 ramp

primary
#7E5ED5
secondary
#D2DEB1
accent
#C61F99
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C15
muted
#7F7D84

Preview Lab

Preview with #7E5ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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