#7E4E86#7E4E86

#7E4E86 is a mid, moderate purple. Relative luminance 0.116; OKLCH L 50.0% C 0.103 H 321.7°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#7E4E86
RGBrgb(126, 78, 134)
HSLhsl(291, 26%, 42%)
HSVhsv(291, 42%, 53%)
CMYKcmyk(6%, 41.8%, 0%, 47.5%)
CIE-LABlab(40.58, 30.05, -23.20)
CIE-LCHlch(40.58, 37.96, 322.33°)
OKLaboklab(50% 0.0806 -0.0636)
OKLCHoklch(50% 0.103 321.7)
XYZxyz(15.6312, 11.6062, 23.9665)
Luminance0.1161 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4E86 #56864E
analogous
#624E86 #7E4E86 #864E72
triadic
#7E4E86 #867E4E #4E867E
tetradic
#7E4E86 #86624E #56864E #4E7286
square
#7E4E86 #86624E #56864E #4E7286
split-complementary
#7E4E86 #72864E #4E8662
monochromatic
#352139 #5A375F #7E4E86 #9F69A8 #B890BE

Accessibility & contrast

On white

6.32
#7E4E86 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7E4E86 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4E86
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4E86#FFFFFF#000000##FFFFFF
##7E4E861.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475C88
Deuteranopia (green-blind)
#546284
Tritanopia (blue-blind)
#7F5464
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e4e86;
/* rgb */ color: rgb(126, 78, 134);
/* oklch */ color: oklch(50.0% 0.103 321.7);
Tailwind
colors: {
  custom: {
    50: '#a481a9',
    500: '#7e4e86',
    950: '#000000',
  },
}
SCSS
$custom: #7e4e86;
$custom-light: #a481a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4e86",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 134
  },
  "hsl": {
    "h": 291.429,
    "s": 26.415,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49997,
    "c": 0.10269,
    "h": 321.7
  },
  "luminance": 0.11606
}

Semantic roles & 50–950 ramp

primary
#7E4E86
secondary
#8AAB85
accent
#C36572
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #7E4E86

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

Preview Lab → · Contrast checker → · Palette generator →

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