#7F287C

A color in the Purple, Crimson, Magenta family

#7f287c is a color in the Purple, Crimson, Magenta family: RGB(127, 40, 124), HSL(302°, 52%, 33%), CMYK(0%, 69%, 2%, 50%). Closest named color: purple. Contrast is 8.41:1 on white and 2.5:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#7f287c
RGBrgb(127 40 124)
RGB (legacy)rgb(127, 40, 124)
RGB %rgb(50% 16% 49%)
HSLhsl(302 52% 33%)
HSV / HSBhsv(302, 69%, 50%)
HWBhwb(302 16% 50%)
CMYKcmyk(0%, 69%, 2%, 50%)
CIELAB (D50)lab(32.84 45.56 -28.82)
LCHlch(32.84 53.91 327.68)
OKLaboklab(0.4419 0.1348 -0.0801)
OKLCHoklch(0.4419 0.1568 329.27)
Decimal8333436

Properties

Color TonePurple, Crimson, Magenta
Closest named colorpurple ΔE 4.2
Closest web-safe color#663366
Hue302°
Saturation (HSL / HSV)52% / 69%
Lightness (HSL)33%
Brightness or Value (HSV)50%
Luminance (Rec.601 / Rec.709)30% / 25%
Relative luminance (WCAG)0.0748
Red / Green / Blue127 / 40 / 124

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 88.1 / -14 · As background with white / black text: Lc -92.8 / 15.9

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: #7f287c;
  --color-brand-oklch: oklch(44.19% 0.1568 329.27);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(127 40 124 / 50%); }
/* Tailwind CSS */
<div class="bg-[#7f287c] text-[#7f287c] border-[#7f287c]">