Skip to content

#d331eb

a balanced, electric magenta / pink · neutral · closest name: Medium Orchid

RGB
211, 49, 235
HSL
292°, 82%, 56%
CMYK
10, 79, 0, 8
Luminance
0.2204

At a glance

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

Hex
#d331eb
Hue
292°
magenta / pink
Saturation
82%
electric
Lightness
56%
balanced
Brightness
92%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2204
WCAG relative
Temperature
Neutral
54/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
5.41:1
Closest name
Medium Orchid
ΔE2000 5.3
Where it sits
Hue292° of 360°
Saturation82%
Lightness56%
Temperature
Warm ← → Cool54% 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#d331eb
RGBrgb(211, 49, 235)
HSLhsl(292, 82%, 56%)
CMYKcmyk(10%, 79%, 0%, 8%)
LABlab(54.1 81.7 -60.1)
LCHlch(54.1 101.4 323.7)
OKLCHoklch(0.640 0.273 322.0)
Decimal13840875
Display P3color(display-p3 0.827 0.192 0.922)

Copy-ready code

/* CSS */
color: #d331eb;
background-color: #d331eb;
/* Tailwind (arbitrary) */
class="text-[#d331eb] bg-[#d331eb]"
/* SCSS */
$brand: #d331eb;
/* SwiftUI */
Color(red: 0.827, green: 0.192, blue: 0.922)
/* Android */
Color.parseColor("#d331eb")
/* Flutter */
Color(0xFFD331EB)
/* Python / OpenCV (BGR) */
(235, 49, 211)

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 #d331eb · 5.41:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.88:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.41:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #d331eb as text scores 3.88:1 on white and 5.41:1 on black.

Accessibility — WCAG contrast

Aa
#d331eb on white: 3.88:1
AA ✗ fail · AA-large · AAA
Aa
#d331eb on black: 5.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0076F0
deuteranopia · #4E87E7
tritanopia · #D55990

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #d331eb 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.

#FBF2FC
#F7E6FA
#F0C6F6
#E999F5
#DE66F0
#d331eb
#C516DF
#A412BA
#840E95
#600F6C
#3C0943
Base = 500Lightest = 50 · #FBF2FCDarkest = 950 · #3C0943
:root {
  --brand-50: #FBF2FC;
  --brand-100: #F7E6FA;
  --brand-200: #F0C6F6;
  --brand-300: #E999F5;
  --brand-400: #DE66F0;
  --brand-500: #d331eb;
  --brand-600: #C516DF;
  --brand-700: #A412BA;
  --brand-800: #840E95;
  --brand-900: #600F6C;
  --brand-950: #3C0943;
  --brand: #d331eb;
  --brand-ink: #000000;
}

Colors that work with #d331eb

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#FAF4FA
Tinted page background
Border#E7C0ED
Hairlines and dividers
Muted text#914B9B
Captions on the surface
Accent#50BE0E
Second voice, not a rival
Dark variant#670B74
Hover, pressed, headers
Light variant#FAE8FD
Selected rows, tints
Dark surface#221424
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 #d331eb

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#49EB31
Analogous left#7631EB
Analogous right#EB31A6
Split-complement 1#A6EB31
Split-complement 2#31EB76
Triadic 1#EBD331
Triadic 2#31EBD3
Tetradic#EB7631

RGB percentages

Red82.7%
Green19.2%
Blue92.2%

CMYK percentages

Cyan10.2%
Magenta79.1%
Yellow0.0%
Key (black)7.8%

Color previews

#d331eb text on a black background

contrast 5.41:1

Card sample

#d331eb text on a white background

contrast 3.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(211, 49, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(211, 49, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d331eb;
background: linear-gradient(135deg, #d331eb, #EB3187);

Monochromatic scale

Palettes built from #d331eb

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.

#d331eb in the real world

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

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#d331eb, answered

What color is #d331eb?

#d331eb is a balanced electric magenta / pink, closest to Medium Orchid (ΔE2000 5.3). It sits at 292° on the hue wheel with 82% saturation and 56% lightness, which reads as neutral.

What is the RGB value of #d331eb?

rgb(211, 49, 235) — 211 red, 49 green and 235 blue out of 255, or 82.7% / 19.2% / 92.2% by channel.

Is #d331eb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2204 and perceived brightness is 57%, so black text on it reaches 5.41:1.

Should I use black or white text on #d331eb?

Black. It scores 5.41:1 against #d331eb, versus 3.88:1 for white — AA at any size.

What is the complementary color of #d331eb?

#49EB31 sits directly opposite on the wheel. Softer options are the split-complements #A6EB31 and #31EB76, which give the same contrast with far less vibration.

What colors go well with #d331eb?

For interface work: #FAF4FA as the surface, #E7C0ED for borders, #914B9B for secondary text, #50BE0E as an accent and #670B74 for hover and pressed states. For a palette, the analogous pair #7631EB and #EB31A6 stays calm, while #49EB31 is the loudest partner.

What is #d331eb in CMYK for printing?

cmyk(10%, 79%, 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 #d331eb warm or cool?

Neutral — it scores 54 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EB31BF; nudged cooler, #8F2FED.

Work with #d331eb in the Color Lab