#7E4E7C#7E4E7C

#7E4E7C is a mid, moderate purple. Relative luminance 0.113; OKLCH L 49.5% C 0.092 H 328.3°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#7E4E7C
RGBrgb(126, 78, 124)
HSLhsl(303, 24%, 40%)
HSVhsv(303, 38%, 49%)
CMYKcmyk(0%, 38.1%, 1.6%, 50.6%)
CIE-LABlab(40.15, 27.98, -17.76)
CIE-LCHlch(40.15, 33.14, 327.60°)
OKLaboklab(49.53% 0.0781 -0.0482)
OKLCHoklch(49.53% 0.092 328.3)
XYZxyz(14.9664, 11.3403, 20.4654)
Luminance0.1134 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4E7C #4E7E50
analogous
#684E7E #7E4E7C #7E4E64
triadic
#7E4E7C #7C7E4E #4E7C7E
tetradic
#7E4E7C #7E684E #4E7E50 #4E647E
square
#7E4E7C #7E684E #4E7E50 #4E647E
split-complementary
#7E4E7C #647E4E #4E7E68
monochromatic
#321F32 #583757 #7E4E7C #A1689F #B98EB7

Accessibility & contrast

On white

6.43
#7E4E7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7E4E7C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4E7C
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4E7C#FFFFFF#000000##FFFFFF
##7E4E7C1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5B7E
Deuteranopia (green-blind)
#57617A
Tritanopia (blue-blind)
#81525F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e4e7c;
/* rgb */ color: rgb(126, 78, 124);
/* oklch */ color: oklch(49.5% 0.092 328.3);
Tailwind
colors: {
  custom: {
    50: '#a480a2',
    500: '#7e4e7c',
    950: '#000000',
  },
}
SCSS
$custom: #7e4e7c;
$custom-light: #a480a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4e7c",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 124
  },
  "hsl": {
    "h": 302.5,
    "s": 23.529,
    "l": 40
  },
  "oklch": {
    "l": 0.49526,
    "c": 0.09178,
    "h": 328.3
  },
  "luminance": 0.1134
}

Semantic roles & 50–950 ramp

primary
#7E4E7C
secondary
#82A684
accent
#C06B68
background
#FAF7F9
surface
#F4EEF2
border
#CEC9CC
text
#0F0A0F
muted
#7F7C7E

Preview Lab

Preview with #7E4E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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