#7E4E8A#7E4E8A

#7E4E8A is a mid, moderate purple. Relative luminance 0.117; OKLCH L 50.2% C 0.107 H 319.4°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7E4E8A
RGBrgb(126, 78, 138)
HSLhsl(288, 28%, 42%)
HSVhsv(288, 43%, 54%)
CMYKcmyk(8.7%, 43.5%, 0%, 45.9%)
CIE-LABlab(40.77, 30.90, -25.35)
CIE-LCHlch(40.77, 39.97, 320.64°)
OKLaboklab(50.2% 0.0815 -0.0698)
OKLCHoklch(50.2% 0.107 319.4)
XYZxyz(15.9154, 11.7199, 25.4636)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4E8A #5A8A4E
analogous
#604E8A #7E4E8A #8A4E78
triadic
#7E4E8A #8A7E4E #4E8A7E
tetradic
#7E4E8A #8A604E #5A8A4E #4E788A
square
#7E4E8A #8A604E #5A8A4E #4E788A
split-complementary
#7E4E8A #788A4E #4E8A60
monochromatic
#37223C #5A3863 #7E4E8A #9E6AAB #B891C1

Accessibility & contrast

On white

6.28
#7E4E8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7E4E8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4E8A
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4E8A#FFFFFF#000000##FFFFFF
##7E4E8A1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455D8C
Deuteranopia (green-blind)
#526288
Tritanopia (blue-blind)
#7F5665
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e4e8a;
/* rgb */ color: rgb(126, 78, 138);
/* oklch */ color: oklch(50.2% 0.107 319.4);
Tailwind
colors: {
  custom: {
    50: '#a481ac',
    500: '#7e4e8a',
    950: '#000000',
  },
}
SCSS
$custom: #7e4e8a;
$custom-light: #a481ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4e8a",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 288,
    "s": 27.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.50195,
    "c": 0.10727,
    "h": 319.4
  },
  "luminance": 0.11719
}

Semantic roles & 50–950 ramp

primary
#7E4E8A
secondary
#8EAE86
accent
#C46477
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #7E4E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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