Skip to content

#b31eb2

a dark, vivid magenta / pink · neutral · closest name: Dark Orchid

RGB
179, 30, 178
HSL
300°, 71%, 41%
CMYK
0, 83, 1, 30
Luminance
0.1373

At a glance

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

Hex
#b31eb2
Hue
300°
magenta / pink
Saturation
71%
vivid
Lightness
41%
dark
Brightness
70%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1373
WCAG relative
Temperature
Neutral
50/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.61:1
Closest name
Dark Orchid
ΔE2000 7
Where it sits
Hue300° of 360°
Saturation71%
Lightness41%
Temperature
Warm ← → Cool50% 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#b31eb2
RGBrgb(179, 30, 178)
HSLhsl(300, 71%, 41%)
CMYKcmyk(0%, 83%, 1%, 30%)
LABlab(43.8 71.1 -43.9)
LCHlch(43.8 83.6 328.3)
OKLCHoklch(0.547 0.234 328.5)
Decimal11738802
Display P3color(display-p3 0.702 0.118 0.698)

Copy-ready code

/* CSS */
color: #b31eb2;
background-color: #b31eb2;
/* Tailwind (arbitrary) */
class="text-[#b31eb2] bg-[#b31eb2]"
/* SCSS */
$brand: #b31eb2;
/* SwiftUI */
Color(red: 0.702, green: 0.118, blue: 0.698)
/* Android */
Color.parseColor("#b31eb2")
/* Flutter */
Color(0xFFB31EB2)
/* Python / OpenCV (BGR) */
(178, 30, 179)

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

Accessibility — WCAG contrast

Aa
#b31eb2 on white: 5.61:1
AA ✓ pass · AA-large · AAA
Aa
#b31eb2 on black: 3.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005CB6
deuteranopia · #4E6EAF
tritanopia · #B93A6B

Color scale — 50 to 950

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

#FCF3FC
#F8E7F8
#F3C9F2
#EF9FEE
#E76FE6
#DF3FDE
#D223D1
#b31eb2
#8C178B
#651565
#3F0D3F
Base = 700Lightest = 50 · #FCF3FCDarkest = 950 · #3F0D3F
:root {
  --brand-50: #FCF3FC;
  --brand-100: #F8E7F8;
  --brand-200: #F3C9F2;
  --brand-300: #EF9FEE;
  --brand-400: #E76FE6;
  --brand-500: #DF3FDE;
  --brand-600: #D223D1;
  --brand-700: #b31eb2;
  --brand-800: #8C178B;
  --brand-900: #651565;
  --brand-950: #3F0D3F;
  --brand: #b31eb2;
  --brand-ink: #ffffff;
}

Colors that work with #b31eb2

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

Text on it#ffffff
White wins here
Surface#FAF4FA
Tinted page background
Border#EDC0EC
Hairlines and dividers
Muted text#9B4B9A
Captions on the surface
Accent#3EB319
Second voice, not a rival
Dark variant#6D126D
Hover, pressed, headers
Light variant#FBE9FB
Selected rows, tints
Dark surface#241424
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 #b31eb2

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#1EB31F
Analogous left#6A1EB3
Analogous right#B31E68
Split-complement 1#68B31E
Split-complement 2#1EB36A
Triadic 1#B2B31E
Triadic 2#1EB2B3
Tetradic#B36A1E

RGB percentages

Red70.2%
Green11.8%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta83.2%
Yellow0.6%
Key (black)29.8%

Color previews

#b31eb2 text on a black background

contrast 3.75:1

Card sample

#b31eb2 text on a white background

contrast 5.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(179, 30, 178, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(179, 30, 178, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b31eb2;
background: linear-gradient(135deg, #b31eb2, #B31E4F);

Monochromatic scale

Palettes built from #b31eb2

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.

#b31eb2 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

Converts to four-color process without much drama. Proof it anyway.

#b31eb2, answered

What color is #b31eb2?

#b31eb2 is a dark vivid magenta / pink, closest to Dark Orchid (ΔE2000 7). It sits at 300° on the hue wheel with 71% saturation and 41% lightness, which reads as neutral.

What is the RGB value of #b31eb2?

rgb(179, 30, 178) — 179 red, 30 green and 178 blue out of 255, or 70.2% / 11.8% / 69.8% by channel.

Is #b31eb2 a light or a dark color?

It is a dark color. Relative luminance is 0.1373 and perceived brightness is 46%, so white text on it reaches 5.61:1.

Should I use black or white text on #b31eb2?

White. It scores 5.61:1 against #b31eb2, versus 3.75:1 for black — AA at any size.

What is the complementary color of #b31eb2?

#1EB31F sits directly opposite on the wheel. Softer options are the split-complements #68B31E and #1EB36A, which give the same contrast with far less vibration.

What colors go well with #b31eb2?

For interface work: #FAF4FA as the surface, #EDC0EC for borders, #9B4B9A for secondary text, #3EB319 as an accent and #6D126D for hover and pressed states. For a palette, the analogous pair #6A1EB3 and #B31E68 stays calm, while #1EB31F is the loudest partner.

What is #b31eb2 in CMYK for printing?

cmyk(0%, 83%, 1%, 30%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #b31eb2 warm or cool?

Neutral — it scores 50 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B31E7B; nudged cooler, #7E1CB5.

Work with #b31eb2 in the Color Lab