#7F4E8A

A color in the Purple, Crimson, Magenta family

#7f4e8a is a color in the Purple, Crimson, Magenta family: RGB(127, 78, 138), HSL(289°, 28%, 42%), CMYK(8%, 43%, 0%, 46%). Closest named color: dimgray. Contrast is 6.25:1 on white and 3.36:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#7f4e8a
RGBrgb(127 78 138)
RGB (legacy)rgb(127, 78, 138)
RGB %rgb(50% 31% 54%)
HSLhsl(289 28% 42%)
HSV / HSBhsv(289, 43%, 54%)
HWBhwb(289 31% 46%)
CMYKcmyk(8%, 43%, 0%, 46%)
CIELAB (D50)lab(40.77 29.03 -25.09)
LCHlch(40.77 38.37 319.16)
OKLaboklab(0.5031 0.0827 -0.0692)
OKLCHoklch(0.5031 0.1078 320.09)
Decimal8343178

Properties

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

WCAG 2.2 Contrast Ratio

On White (#ffffff)
6.25:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.36: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 80.9 / -20.9 · As background with white / black text: Lc -86.1 / 23.1

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: #7f4e8a;
  --color-brand-oklch: oklch(50.31% 0.1078 320.09);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(127 78 138 / 50%); }
/* Tailwind CSS */
<div class="bg-[#7f4e8a] text-[#7f4e8a] border-[#7f4e8a]">