#540468

A color in the Purple, Crimson, Magenta family

#540468 is a color in the Purple, Crimson, Magenta family: RGB(84, 4, 104), HSL(288°, 93%, 21%), CMYK(19%, 96%, 0%, 59%). Closest named color: indigo. Contrast is 13.17:1 on white and 1.59:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#540468
RGBrgb(84 4 104)
RGB (legacy)rgb(84, 4, 104)
RGB %rgb(33% 2% 41%)
HSLhsl(288 93% 21%)
HSV / HSBhsv(288, 96%, 41%)
HWBhwb(288 2% 59%)
CMYKcmyk(19%, 96%, 0%, 59%)
CIELAB (D50)lab(19.63 43.36 -37.61)
LCHlch(19.63 57.39 319.06)
OKLaboklab(0.3309 0.1154 -0.1055)
OKLCHoklch(0.3309 0.1564 317.56)
Decimal5506152

Properties

Color TonePurple, Crimson, Magenta
Closest named colorindigo ΔE 5.2
Closest web-safe color#660066
Hue288°
Saturation (HSL / HSV)93% / 96%
Lightness (HSL)21%
Brightness or Value (HSV)41%
Luminance (Rec.601 / Rec.709)15% / 11%
Relative luminance (WCAG)0.0297
Red / Green / Blue84 / 4 / 104

WCAG 2.2 Contrast Ratio

On White (#ffffff)
13.17:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.59: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 98 / 0 · As background with white / black text: Lc -101.4 / 0

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: #540468;
  --color-brand-oklch: oklch(33.09% 0.1564 317.56);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(84 4 104 / 50%); }
/* Tailwind CSS */
<div class="bg-[#540468] text-[#540468] border-[#540468]">