Skip to content

#d04dec

a balanced, electric violet · neutral · closest name: Medium Orchid

RGB
208, 77, 236
HSL
289°, 81%, 61%
CMYK
12, 67, 0, 8
Luminance
0.2477

At a glance

Every number on this page in one read: what #d04dec is made of, how bright it looks, and which way it leans.

Hex
#d04dec
Hue
289°
violet
Saturation
81%
electric
Lightness
61%
balanced
Brightness
93%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2477
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.95:1
Closest name
Medium Orchid
ΔE2000 4.5
Where it sits
Hue289° of 360°
Saturation81%
Lightness61%
Temperature
Warm ← → Cool56% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#d04dec
RGBrgb(208, 77, 236)
HSLhsl(289, 81%, 61%)
CMYKcmyk(12%, 67%, 0%, 8%)
LABlab(56.9 72.2 -56.2)
LCHlch(56.9 91.5 322.1)
OKLCHoklch(0.659 0.245 320.1)
Decimal13651436
Display P3color(display-p3 0.816 0.302 0.925)

Copy-ready code

/* CSS */
color: #d04dec;
background-color: #d04dec;
/* Tailwind (arbitrary) */
class="text-[#d04dec] bg-[#d04dec]"
/* SCSS */
$brand: #d04dec;
/* SwiftUI */
Color(red: 0.816, green: 0.302, blue: 0.925)
/* Android */
Color.parseColor("#d04dec")
/* Flutter */
Color(0xFFD04DEC)
/* Python / OpenCV (BGR) */
(236, 77, 208)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #d04dec · 5.95:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.53:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.95:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #d04dec as text scores 3.53:1 on white and 5.95:1 on black.

Accessibility — WCAG contrast

Aa
#d04dec on white: 3.53:1
AA ✗ fail · AA-large · AAA
Aa
#d04dec on black: 5.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #087FF1
deuteranopia · #5B8DE8
tritanopia · #D16A97

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #d04dec is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FAF3FC
#F6E6F9
#EDC6F5
#E49AF4
#D767EF
#d04dec
#BA18DD
#9B14B8
#7C1093
#5B106B
#390A43
Base = 500Lightest = 50 · #FAF3FCDarkest = 950 · #390A43
:root {
  --brand-50: #FAF3FC;
  --brand-100: #F6E6F9;
  --brand-200: #EDC6F5;
  --brand-300: #E49AF4;
  --brand-400: #D767EF;
  --brand-500: #d04dec;
  --brand-600: #BA18DD;
  --brand-700: #9B14B8;
  --brand-800: #7C1093;
  --brand-900: #5B106B;
  --brand-950: #390A43;
  --brand: #d04dec;
  --brand-ink: #000000;
}

Colors that work with #d04dec

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F9F4FA
Tinted page background
Border#E5C0ED
Hairlines and dividers
Muted text#8D4B9B
Captions on the surface
Accent#59BC10
Second voice, not a rival
Dark variant#610C73
Hover, pressed, headers
Light variant#F9E8FD
Selected rows, tints
Dark surface#211424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #d04dec

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#69EC4D
Analogous left#814DEC
Analogous right#EC4DB9
Split-complement 1#B9EC4D
Split-complement 2#4DEC81
Triadic 1#ECD04D
Triadic 2#4DECD0
Tetradic#EC814D

RGB percentages

Red81.6%
Green30.2%
Blue92.5%

CMYK percentages

Cyan11.9%
Magenta67.4%
Yellow0.0%
Key (black)7.5%

Color previews

#d04dec text on a black background

contrast 5.95:1

Card sample

#d04dec text on a white background

contrast 3.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #d04dec;
Background color
Panel with #d04dec background
background-color: #d04dec;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #d04dec;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(208, 77, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(208, 77, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d04dec;
background: linear-gradient(135deg, #d04dec, #EC4D9E);

Monochromatic scale

Palettes built from #d04dec

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#d04dec in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#d04dec, answered

What color is #d04dec?

#d04dec is a balanced electric violet, closest to Medium Orchid (ΔE2000 4.5). It sits at 289° on the hue wheel with 81% saturation and 61% lightness, which reads as neutral.

What is the RGB value of #d04dec?

rgb(208, 77, 236) — 208 red, 77 green and 236 blue out of 255, or 81.6% / 30.2% / 92.5% by channel.

Is #d04dec a light or a dark color?

It is a mid-tone. Relative luminance is 0.2477 and perceived brightness is 59%, so black text on it reaches 5.95:1.

Should I use black or white text on #d04dec?

Black. It scores 5.95:1 against #d04dec, versus 3.53:1 for white — AA at any size.

What is the complementary color of #d04dec?

#69EC4D sits directly opposite on the wheel. Softer options are the split-complements #B9EC4D and #4DEC81, which give the same contrast with far less vibration.

What colors go well with #d04dec?

For interface work: #F9F4FA as the surface, #E5C0ED for borders, #8D4B9B for secondary text, #59BC10 as an accent and #610C73 for hover and pressed states. For a palette, the analogous pair #814DEC and #EC4DB9 stays calm, while #69EC4D is the loudest partner.

What is #d04dec in CMYK for printing?

cmyk(12%, 67%, 0%, 8%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #d04dec warm or cool?

Neutral — it scores 56 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EC4DCE; nudged cooler, #964BEE.

Work with #d04dec in the Color Lab