#7E5EC1#7E5EC1

#7E5EC1 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.1% C 0.150 H 296.1°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7E5EC1
RGBrgb(126, 94, 193)
HSLhsl(259, 44%, 56%)
HSVhsv(259, 51%, 76%)
CMYKcmyk(34.7%, 51.3%, 0%, 24.3%)
CIE-LABlab(47.35, 34.98, -47.51)
CIE-LCHlch(47.35, 59.01, 306.36°)
OKLaboklab(56.06% 0.0659 -0.1342)
OKLCHoklch(56.06% 0.15 296.1)
XYZxyz(22.2301, 16.2909, 52.4150)
Luminance0.1629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5EC1 #A1C15E
analogous
#5E70C1 #7E5EC1 #B05EC1
triadic
#7E5EC1 #C17E5E #5EC17E
tetradic
#7E5EC1 #C15E70 #A1C15E #5EC1B0
square
#7E5EC1 #C15E70 #A1C15E #5EC1B0
split-complementary
#7E5EC1 #C1B05E #70C15E
monochromatic
#452E77 #5F3FA3 #7E5EC1 #A18AD2 #C5B6E3

Accessibility & contrast

On white

4.93
#7E5EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7E5EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5EC1
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5EC1#FFFFFF#000000##FFFFFF
##7E5EC11.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3971C4
Deuteranopia (green-blind)
#406FBF
Tritanopia (blue-blind)
#6F7187
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e5ec1;
/* rgb */ color: rgb(126, 94, 193);
/* oklch */ color: oklch(56.1% 0.150 296.1);
Tailwind
colors: {
  custom: {
    50: '#a78cd4',
    500: '#7e5ec1',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ec1;
$custom-light: #a78cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ec1",
  "rgb": {
    "r": 126,
    "g": 94,
    "b": 193
  },
  "hsl": {
    "h": 259.394,
    "s": 44.395,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56056,
    "c": 0.14955,
    "h": 296.1
  },
  "luminance": 0.16291
}

Semantic roles & 50–950 ramp

primary
#7E5EC1
secondary
#C5D2A9
accent
#D454AB
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7E5EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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