#7E4E87#7E4E87

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

Color values

HEX#7E4E87
RGBrgb(126, 78, 135)
HSLhsl(291, 27%, 42%)
HSVhsv(291, 42%, 53%)
CMYKcmyk(6.7%, 42.2%, 0%, 47.1%)
CIE-LABlab(40.63, 30.26, -23.74)
CIE-LCHlch(40.63, 38.46, 321.89°)
OKLaboklab(50.05% 0.0808 -0.0652)
OKLCHoklch(50.05% 0.104 321.1)
XYZxyz(15.7012, 11.6342, 24.3355)
Luminance0.1163 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4E87 #57874E
analogous
#624E87 #7E4E87 #874E74
triadic
#7E4E87 #877E4E #4E877E
tetradic
#7E4E87 #87624E #57874E #4E7487
square
#7E4E87 #87624E #57874E #4E7487
split-complementary
#7E4E87 #74874E #4E8762
monochromatic
#362139 #5A3860 #7E4E87 #9F6AA9 #B890BF

Accessibility & contrast

On white

6.31
#7E4E87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7E4E87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4E87
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4E87#FFFFFF#000000##FFFFFF
##7E4E871.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475C89
Deuteranopia (green-blind)
#536285
Tritanopia (blue-blind)
#7F5564
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e4e87;
/* rgb */ color: rgb(126, 78, 135);
/* oklch */ color: oklch(50.0% 0.104 321.1);
Tailwind
colors: {
  custom: {
    50: '#a481aa',
    500: '#7e4e87',
    950: '#000000',
  },
}
SCSS
$custom: #7e4e87;
$custom-light: #a481aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4e87",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 135
  },
  "hsl": {
    "h": 290.526,
    "s": 26.761,
    "l": 41.765
  },
  "oklch": {
    "l": 0.50046,
    "c": 0.10383,
    "h": 321.1
  },
  "luminance": 0.11634
}

Semantic roles & 50–950 ramp

primary
#7E4E87
secondary
#8BAC85
accent
#C36574
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #7E4E87

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

Preview Lab → · Contrast checker → · Palette generator →

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