#7E5EC2#7E5EC2

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

Color values

HEX#7E5EC2
RGBrgb(126, 94, 194)
HSLhsl(259, 45%, 56%)
HSVhsv(259, 52%, 76%)
CMYKcmyk(35.1%, 51.5%, 0%, 23.9%)
CIE-LABlab(47.41, 35.25, -48.00)
CIE-LCHlch(47.41, 59.55, 306.29°)
OKLaboklab(56.12% 0.066 -0.1357)
OKLCHoklch(56.12% 0.151 295.9)
XYZxyz(22.3420, 16.3357, 53.0045)
Luminance0.1634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5EC2 #A2C25E
analogous
#5E70C2 #7E5EC2 #B05EC2
triadic
#7E5EC2 #C27E5E #5EC27E
tetradic
#7E5EC2 #C25E70 #A2C25E #5EC2B0
square
#7E5EC2 #C25E70 #A2C25E #5EC2B0
split-complementary
#7E5EC2 #C2B05E #70C25E
monochromatic
#452E78 #5F3EA4 #7E5EC2 #A28AD3 #C5B7E4

Accessibility & contrast

On white

4.92
#7E5EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7E5EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5EC2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5EC2#FFFFFF#000000##FFFFFF
##7E5EC21.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3871C5
Deuteranopia (green-blind)
#3F6FC0
Tritanopia (blue-blind)
#6E7287
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e5ec2;
/* rgb */ color: rgb(126, 94, 194);
/* oklch */ color: oklch(56.1% 0.151 295.9);
Tailwind
colors: {
  custom: {
    50: '#a78cd5',
    500: '#7e5ec2',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ec2;
$custom-light: #a78cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ec2",
  "rgb": {
    "r": 126,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 259.2,
    "s": 45.045,
    "l": 56.471
  },
  "oklch": {
    "l": 0.56118,
    "c": 0.15086,
    "h": 295.9
  },
  "luminance": 0.16336
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E5EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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