Closest web-safe match: #333366

Color Details and Palettes for #40274F

Details about the color Wonka Purple#40274F

Conversions, palettes, contrast & design ideas for this color.

Purple family Cool WCAG ink: white
HEX #40274F RGB rgb(64, 39, 79) HSL hsl(278, 34%, 23%) CMYK cmyk(19%, 51%, 0%, 69%)

Color profile

About Color Hex #40274F

#40274F is a cool color from the Purple family, closest in name to “Wonka Purple”. In RGB it is rgb(64, 39, 79); in HSL, hsl(278, 34%, 23%).

The color Wonka Purple, with hexadecimal code #40274f, lands in the purple family, historically reserved for royalty due to the extreme cost of Tyrian dye. Purple activates imagination and spiritual contemplation, blending red's passion with blue's serenity. Additionally, it evokes emotions such as Luxury, Royalty, Spirituality, Imagination and Wisdom. Purple is often linked to creativity, luxury, and spirituality. In Western cultures, it is also associated with ambition and wealth. Indigo and violet have long signified royalty and nobility. With a moderate saturation of 34%, it has a softened, muted quality that lends sophistication and works well for backgrounds and secondary elements. Its low lightness of 23% produces a deep, rich appearance—conveying gravity and luxury, particularly effective in dark-mode designs and premium packaging. This color is ideal for designs that aim to express Luxury, Royalty, Spirituality, Imagination, or Wisdom. It can be effectively used in web design, branding, and marketing materials to attract attention and convey specific messages.

Key facts

RGB 64, 39, 79 red · green · blue HSL 278° 34% 23% hue · sat · light HSV 278° 51% 31% design-app pickers CMYK 19 51 0 69 print inks, % Luminance 0.031 0 dark → 1 light On black 1.62:1 ✕ AA contrast ratio On white 12.95:1 ✓ AA contrast ratio Web-safe #333366 closest web-safe Best text white ideal foreground Character Vivid cool · purple family

The story of this color

History, Usage, Psychology & Design Ideas for #40274F

Wonka Purple (#40274F) belongs to the Purple color family.

This deep, saturated shade conveys authority and richness. Deep tones are favored in luxury packaging, evening-event branding, and dark-mode interfaces where they provide dramatic contrast against lighter elements.

Historical Background

Tyrian purple—derived from the mucus of Murex sea snails—required 12,000 snails to produce just 1.5 grams of dye, making it the most expensive substance in the ancient world. Roman emperors decreed it exclusive to royalty, and Byzantine empresses gave birth in a porphyry-lined chamber so children could be 'born in the purple.' This legacy of exclusivity persists: purple remains shorthand for luxury and prestige.

Design & Usage Tips

Purple excels in beauty, wellness, and premium lifestyle branding. Lighter purples (lavender, lilac) suit self-care and floral products, while saturated purples project confidence and creativity. Pair purple with mint green for a fresh contrast, or with charcoal for understated elegance.

Sitting on the cool side of the spectrum (hue 278°), it promotes a feeling of calm distance and intellectual clarity, which is why cool hues dominate corporate identities, healthcare design, and productivity tools. At 34% saturation, the color has a muted, sophisticated quality that pairs well with bolder accents. It works as a background, a border, or a secondary element in layered compositions.

Psychological Impact

Purple activates imagination and spiritual contemplation. It blends red's passion with blue's calm, creating a sense of creative tension. In marketing, purple appeals to audiences seeking uniqueness, quality, and a touch of the mystical.

Its low lightness of 23% gives it a deep, intense presence. Deep tones like this excel as dark-mode backgrounds, header bars, and anywhere a sense of gravity or luxury is desired.

Creative Design Ideas

Use deep purple backgrounds with metallic gold or rose-gold typography for luxury brand identities. Create purple-to-pink gradients for creative agency hero sections. In app design, purple primary buttons with white text feel premium and distinctive against light backgrounds.

Every format

#40274F Color Conversions

Every way to write Wonka Purple — one-tap copy on every format; tap on any card to learn what it is and when to use it.

12 formats
HEX Web
#40274F

Hexadecimal is the web’s universal color notation — two digits each for red, green and blue. Drop it straight into HTML, CSS or any design tool.

RGB Screen
rgb(64, 39, 79)

RGB is the additive Red-Green-Blue model every screen uses to emit light. The default choice for websites, apps and on-screen UI.

HSL Web
hsl(278, 34%, 23%)

HSL breaks a color into Hue, Saturation and Lightness — the most intuitive way to lighten, darken or mute a color in CSS.

HSV HSB Design
hsv(278, 51%, 31%)

HSV (also called HSB) maps Hue, Saturation and Value/Brightness. It is the model behind the color pickers in Photoshop, Figma and most design apps.

HWB CSS 4
hwb(278 15% 69%)

HWB blends a pure hue with Whiteness and Blackness — a painter-friendly model added in CSS Color 4 for quick tints and shades.

CMYK Print
cmyk(19%, 51%, 0%, 69%)

CMYK is the subtractive Cyan-Magenta-Yellow-Black ink model. Use these values when preparing artwork for a printer or commercial press.

OKLCH Modern
oklch(32.27% 0.075 311.66)

OKLCH is a modern, perceptually-uniform space (Lightness, Chroma, Hue). It powers smooth gradients and accessible palettes in today’s CSS.

OKLab Modern
oklab(32.27% 0.050 -0.056)

OKLab is the Cartesian form of OKLCH — ideal for blending and interpolating colors without the muddy midpoints older spaces produce.

CIELAB L*a*b* Perceptual
L: 20.46, a: 20.32, b: -20.10

CIELAB is a device-independent, perceptually-uniform space. It is the standard for measuring color difference (ΔE) and matching across devices.

LCH Perceptual
L: 20.46, C: 28.58, H: 315.31

LCH is CIELAB in cylindrical form — Lightness, Chroma and Hue — letting you adjust vividness and hue while staying perceptually even.

XYZ CIE Science
X: 4.25, Y: 3.11, Z: 7.77

CIE XYZ is the 1931 master space that underpins every other model here — the scientific bridge used to convert between color systems.

Decimal int Code
4204367

The 24-bit integer value of the color — handy for databases, APIs, game engines and low-level graphics code.

Channel breakdown

RGB Color Percentages for #40274F

How much red, green and blue light mixes into Wonka Purple.

Red 64/255 35.2% Green 39/255 21.4% Blue 79/255 43.4%

Percentages show each channel's share of the total light (R + G + B) in Wonka Purple.

Ink coverage

CMYK Ink Levels & Print Guide for #40274F

Ink needed to reproduce Wonka Purple in four-color print. Heaviest ink: Key (Black).

19% CYAN 51% MAGENTA 0% YELLOW 69% KEY

Print tip: treat these values as a starting point — final output depends on printer profile, paper stock and calibration.

Accessibility · WCAG

Luminance & Contrast for #40274F

How bright Wonka Purple is, and how far black and white text clear each WCAG bar.

Relative luminance 0.031
0 · dark1 · light

Contrast ratio · 1:1 → 21:1 (log scale)

Aa Black text 1.62:1 ✕ AA ✕ AAA ✕ Large
Aa White text 12.95:1 ✓ AA ✓ AAA ✓ Large

Developer shortcuts

Quick CSS Snippets for #40274F

Copy-and-paste CSS for Wonka Purple — per-line copy, or grab the whole block.

wonka-purple.css
background-color: #40274F;
color: #40274F;
border: 2px solid #40274F;
background-color: rgb(64, 39, 79);
background-color: hsl(278, 34%, 23%);
--color: #40274F;

Shades · light to dark

#40274F Monochrome Palette

Lighter and darker steps of Wonka Purple — the color's full brightness range in one strip.

#ECE9ED
#CFC9D3
#B3A9B9
#96889E
#796884
#5D4769
#40274F
#362143
#2D1B37
#23152B
#1A1020
#100A14
#060408

The dot marks the original color. Hover any shade to copy its hex or open its color page.

Harmony · 180° apart

#40274F Complementary Palette

Two colors opposite on the wheel — maximum contrast for attention-grabbing accents.

#40274F
#354F27

The dot marks the original color. Hover any shade to copy its hex or open its color page.

Harmony · adjacent hues

#40274F Analogic Palette

Neighboring hues on the wheel — harmonious, calm combinations that feel unified.

#40274F
#4F2749
#2C274F
#4F2735
#27354F
#4F2C27
#27494F

The dot marks the original color. Hover any shade to copy its hex or open its color page.

Harmony · 120° apart

#40274F Triadic Palette

Three colors evenly spaced on the wheel — vibrant and energetic, yet balanced.

#40274F
#4F4027
#274F40

The dot marks the original color. Hover any shade to copy its hex or open its color page.

Harmony · 90° apart

#40274F Quad Palette

Four colors evenly spaced on the wheel (tetradic) — rich schemes with multiple accents.

#40274F
#4F2C27
#354F27
#27494F

The dot marks the original color. Hover any shade to copy its hex or open its color page.

Accessibility

Color Blindness Simulation for #40274F

How Wonka Purple reads across five kinds of color vision — a ✓ Friendly verdict means the color difference stays distinguishable for that vision type.

#40274F
#373943
#353545
#3F3E3C
#2F2F2F
Normal vision full color Deuteranopia green weakness ✓ Friendly Protanopia red weakness ✓ Friendly Tritanopia blue-yellow weakness ✓ Friendly Achromatopsia total color blindness ✓ Friendly

The dot marks the original color. Hover any shade to copy its hex.

Harmony overview

Color Harmonies for #40274F

The lead color from each harmony scheme, side by side — a shortcut to the full palettes above.

#354F27
#4F2749
#4F4027
#4F2C27
Complementary opposite hue Analogous adjacent hue Triadic 120° apart Tetradic (Quad) 90° apart

Perceptually nearby

#40274F Nearby Colors

A step away in brightness, richness or shade — each still feels like the same color.

Purple Prose#553355
Midnight Velvet#332244
Haunted Candelabra#554466
Midnight Monarch#221133
Wonka Purple#442255
Purple Void#442244
Stormy Night#332255
Murasaki#552244

From the color-name library

Colors Similar to #40274F

The closest named colors to #40274F — same mood, each with its own character.

Wonka Purple#4A2559
Stormy Night#372354
Purple Void#442244
Royal Crown#4F325E
Sanctum of Shadows#3C2F4E
Plunged Into Darkness#431C53
Midnight Pie#372D52
Murasaki#4F284B
Purple Prose#543254
Purple Noir#322C56
Midnight Velvet#2A2243
Shadow Purple#4E334E

Looking for more Purple shades? Browse Purple colors →

Inspiration

Explore Vibrant Images Featuring Wonka Purple (#40274f)

Curated Unsplash photos that carry the mood of Wonka Purple — hover any tile to download it or view the original.

Good to know

Frequently Asked Questions about #40274F

#40274F is a cool color from the Purple family. Its closest matched name is “Wonka Purple”, matched perceptually with the CIEDE2000 color-difference formula. In RGB it is rgb(64, 39, 79); in HSL, hsl(278, 34%, 23%).
In RGB, #40274F is rgb(64, 39, 79); in HSL it is hsl(278, 34%, 23%); and in CMYK — the model used for print — it is cmyk(19%, 51%, 0%, 69%).
#40274F has a contrast ratio of 1.62:1 against black and 12.95:1 against white. For readability, white body text meets the WCAG AA threshold of 4.5:1 on it, while black does not.
The direct complement of #40274F is #354F27 (opposite on the color wheel). For ready-made combinations, this page includes monochrome, analogous, triadic and tetradic palettes built from #40274F in the palette sections above.