Skip to content

#540F5C Color

#540F5C is rgb(84, 15, 92) in RGB, hsl(294, 72%, 21%) in HSL, and about cmyk(9%, 84%, 0%, 64%) in CMYK. It has no registered color name of its own — the closest is Petunia (#470659), clearly related but distinguishable side by side at ΔE 5.59. White text is the more readable choice on this background.

#540F5C
HEX#540F5C
RGBrgb(84, 15, 92)
HSLhsl(294, 72%, 21%)
HSVhsv(294, 84%, 36%)
CMYKcmyk(9%, 84%, 0%, 64%)
OKLCHoklch(32.9% 0.137 323.3)
LABlab(19.90% 38.68 -29.26)
LCHlch(19.90% 48.50 322.89)

What #540F5C Is Called

Most hex codes have no name: there are 16.7 million of them and a few thousand registered names. These are the named colors nearest to #540F5C, ordered by CIE76 distance in CIELAB. Anything under about ΔE 2 is a difference most people cannot see.

Browse the full index of named colors A-Z or every pink in the library.

#540F5C Channel Values

How #540F5C breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 84 · G 15 · B 928-bit channels as sent to the display
HSLH 294° · S 72% · L 21%Easiest model for building lighter and darker variants
HSVH 294° · S 84% · V 36%Matches the picker in most design tools
CMYKC 9% · M 84% · Y 0% · K 64%Approximate ink mix; confirm with an ICC profile before printing
Luminance13.13:1 vs white · 1.6:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a #540F5C background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text13.13:1AA normal AA large AAA normal
Fails AABlack text1.6:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #540F5C in the contrast checker.

Colors That Go With #540F5C

Pairings derived from color-wheel relationships. The complementary color sits opposite #540F5C; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of #540F5C

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #540F5C.

How #540F5C Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#540F5C
Protanopia#26265C
Protanomaly#3D1F5C
Deuteranopia#33335B
Deuteranomaly#42285B
Tritanopia#4E2424
Tritanomaly#501D41
Achromatopsia#303030

Test a full palette in the color blindness simulator.

Using #540F5C in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--color-540f5c: #540F5C;
CSS backgroundbackground-color: #540F5C;
Tailwind configcolors: { 'color-540f5c': '#540F5C' }
SwiftUIColor(red: 0.329, green: 0.059, blue: 0.361)
Android XML<color name="color_540f5c">#540F5C</color>
SVG fillfill="#540F5C"

More Pink Colors

#540F5C sits in the pink family. These are its neighbours across that family's full range, each with its own breakdown.

#540F5C Frequently Asked Questions

What color is #540F5C?

#540F5C is a dark pink — rgb(84, 15, 92) in RGB and hsl(294, 72%, 21%) in HSL. It carries no registered color name of its own; the closest named color is Petunia (#470659), which is clearly related but distinguishable side by side at a CIE76 distance of 5.59.

What is the RGB value of #540F5C?

#540F5C is rgb(84, 15, 92) — red 84, green 15, and blue 92 on the 0-255 scale.

What is the CMYK value of #540F5C?

#540F5C converts to approximately cmyk(9%, 84%, 0%, 64%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #540F5C be black or white?

White text is the more readable choice. #540F5C scores 13.13:1 against white and 1.6:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #540F5C as a CSS color keyword?

No. #540F5C is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is purple (#800080) at a CIE76 distance of 21.2, which is visibly different.

Open #540F5C in a Tool

Keep exploring: every pink in the color library, the guide to shades of pink, or the full color library.