#7E4E8A

A color in the Purple, Crimson, Magenta family

#7e4e8a is a color in the Purple, Crimson, Magenta family: RGB(126, 78, 138), HSL(288°, 28%, 42%), CMYK(9%, 43%, 0%, 46%). Closest named color: dimgray. Contrast is 6.28:1 on white and 3.34:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#7e4e8a
RGBrgb(126 78 138)
RGB (legacy)rgb(126, 78, 138)
RGB %rgb(49% 31% 54%)
HSLhsl(288 28% 42%)
HSV / HSBhsv(288, 43%, 54%)
HWBhwb(288 31% 46%)
CMYKcmyk(9%, 43%, 0%, 46%)
CIELAB (D50)lab(40.65 28.68 -25.31)
LCHlch(40.65 38.25 318.58)
OKLaboklab(0.502 0.0815 -0.0698)
OKLCHoklch(0.502 0.1073 319.41)
Decimal8277642

Properties

Color TonePurple, Crimson, Magenta
Closest named colordimgray ΔE 10.9
Closest web-safe color#666699
Hue288°
Saturation (HSL / HSV)28% / 43%
Lightness (HSL)42%
Brightness or Value (HSV)54%
Luminance (Rec.601 / Rec.709)39% / 36%
Relative luminance (WCAG)0.1172
Red / Green / Blue126 / 78 / 138

WCAG 2.2 Contrast Ratio

On White (#ffffff)
6.28:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.34:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 81.1 / -20.8 · As background with white / black text: Lc -86.2 / 23

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #7e4e8a;
  --color-brand-oklch: oklch(50.2% 0.1073 319.41);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(126 78 138 / 50%); }
/* Tailwind CSS */
<div class="bg-[#7e4e8a] text-[#7e4e8a] border-[#7e4e8a]">