#7E4591#7E4591

#7E4591 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 49.1% C 0.131 H 317.1°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#7E4591
RGBrgb(126, 69, 145)
HSLhsl(285, 36%, 42%)
HSVhsv(285, 52%, 57%)
CMYKcmyk(13.1%, 52.4%, 0%, 43.1%)
CIE-LABlab(39.13, 37.52, -32.16)
CIE-LCHlch(39.13, 49.42, 319.40°)
OKLaboklab(49.09% 0.0963 -0.0894)
OKLCHoklch(49.09% 0.131 317.1)
XYZxyz(15.8424, 10.7367, 28.0204)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4591 #589145
analogous
#584591 #7E4591 #91457E
triadic
#7E4591 #917E45 #45917E
tetradic
#7E4591 #915845 #589145 #457E91
square
#7E4591 #915845 #589145 #457E91
split-complementary
#7E4591 #7E9145 #459158
monochromatic
#361E3E #5A3168 #7E4591 #9E60B3 #B889C7

Accessibility & contrast

On white

6.67
#7E4591 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7E4591 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4591
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4591#FFFFFF#000000##FFFFFF
##7E45911.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365994
Deuteranopia (green-blind)
#475E8F
Tritanopia (blue-blind)
#7D5064
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e4591;
/* rgb */ color: rgb(126, 69, 145);
/* oklch */ color: oklch(49.1% 0.131 317.1);
Tailwind
colors: {
  custom: {
    50: '#a57bb1',
    500: '#7e4591',
    950: '#000000',
  },
}
SCSS
$custom: #7e4591;
$custom-light: #a57bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4591",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 145
  },
  "hsl": {
    "h": 285,
    "s": 35.514,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49093,
    "c": 0.13134,
    "h": 317.1
  },
  "luminance": 0.10736
}

Semantic roles & 50–950 ramp

primary
#7E4591
secondary
#8CB280
accent
#CC5C78
background
#FAF7FA
surface
#F4EEF5
border
#CEC9CF
text
#0F0911
muted
#7F7B80

Preview Lab

Preview with #7E4591

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

Preview Lab → · Contrast checker → · Palette generator →

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