#7E4C8A#7E4C8A

#7E4C8A is a mid, moderate purple. Relative luminance 0.114; OKLCH L 49.9% C 0.111 H 319.7°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#7E4C8A
RGBrgb(126, 76, 138)
HSLhsl(288, 29%, 42%)
HSVhsv(288, 45%, 54%)
CMYKcmyk(8.7%, 44.9%, 0%, 45.9%)
CIE-LABlab(40.31, 32.06, -26.06)
CIE-LCHlch(40.31, 41.31, 320.90°)
OKLaboklab(49.85% 0.0846 -0.0718)
OKLCHoklch(49.85% 0.111 319.7)
XYZxyz(15.7755, 11.4400, 25.4170)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4C8A #588A4C
analogous
#5F4C8A #7E4C8A #8A4C77
triadic
#7E4C8A #8A7E4C #4C8A7E
tetradic
#7E4C8A #8A5F4C #588A4C #4C778A
square
#7E4C8A #8A5F4C #588A4C #4C778A
split-complementary
#7E4C8A #778A4C #4C8A5F
monochromatic
#36213B #5A3663 #7E4C8A #9E68AC #B88FC1

Accessibility & contrast

On white

6.39
#7E4C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7E4C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4C8A
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4C8A#FFFFFF#000000##FFFFFF
##7E4C8A1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435C8C
Deuteranopia (green-blind)
#506188
Tritanopia (blue-blind)
#7F5464
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e4c8a;
/* rgb */ color: rgb(126, 76, 138);
/* oklch */ color: oklch(49.9% 0.111 319.7);
Tailwind
colors: {
  custom: {
    50: '#a57fac',
    500: '#7e4c8a',
    950: '#000000',
  },
}
SCSS
$custom: #7e4c8a;
$custom-light: #a57fac;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4c8a",
  "rgb": {
    "r": 126,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 288.387,
    "s": 28.972,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49854,
    "c": 0.11095,
    "h": 319.7
  },
  "luminance": 0.11439
}

Semantic roles & 50–950 ramp

primary
#7E4C8A
secondary
#8CAE84
accent
#C56376
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #7E4C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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