Skip to content

#b939fd

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

RGB
185, 57, 253
HSL
279°, 98%, 61%
CMYK
27, 78, 0, 1
Luminance
0.2033

At a glance

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

Hex
#b939fd
Hue
279°
violet
Saturation
98%
electric
Lightness
61%
balanced
Brightness
99%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2033
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.07:1
Closest name
Medium Orchid
ΔE2000 7.1
Where it sits
Hue279° of 360°
Saturation98%
Lightness61%
Temperature
Warm ← → Cool62% cool

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

Every format

HEX#b939fd
RGBrgb(185, 57, 253)
HSLhsl(279, 98%, 61%)
CMYKcmyk(27%, 78%, 0%, 1%)
LABlab(52.2 78.2 -73.3)
LCHlch(52.2 107.2 316.8)
OKLCHoklch(0.623 0.273 310.2)
Decimal12139005
Display P3color(display-p3 0.725 0.224 0.992)

Copy-ready code

/* CSS */
color: #b939fd;
background-color: #b939fd;
/* Tailwind (arbitrary) */
class="text-[#b939fd] bg-[#b939fd]"
/* SCSS */
$brand: #b939fd;
/* SwiftUI */
Color(red: 0.725, green: 0.224, blue: 0.992)
/* Android */
Color.parseColor("#b939fd")
/* Flutter */
Color(0xFFB939FD)
/* Python / OpenCV (BGR) */
(253, 57, 185)

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

Accessibility — WCAG contrast

Aa
#b939fd on white: 4.14:1
AA ✗ fail · AA-large · AAA
Aa
#b939fd on black: 5.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0077FF
deuteranopia · #007EF9
tritanopia · #AF6A9B

Color scale — 50 to 950

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

#F9F1FD
#F3E3FC
#E7C1FB
#D890FE
#C458FD
#b939fd
#9F02F2
#8502CA
#6A02A2
#4E0674
#310449
Base = 500Lightest = 50 · #F9F1FDDarkest = 950 · #310449
:root {
  --brand-50: #F9F1FD;
  --brand-100: #F3E3FC;
  --brand-200: #E7C1FB;
  --brand-300: #D890FE;
  --brand-400: #C458FD;
  --brand-500: #b939fd;
  --brand-600: #9F02F2;
  --brand-700: #8502CA;
  --brand-800: #6A02A2;
  --brand-900: #4E0674;
  --brand-950: #310449;
  --brand: #b939fd;
  --brand-ink: #000000;
}

Colors that work with #b939fd

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#F8F4FA
Tinted page background
Border#DDC0ED
Hairlines and dividers
Muted text#7F4B9B
Captions on the surface
Accent#79CC00
Second voice, not a rival
Dark variant#53017E
Hover, pressed, headers
Light variant#F6E6FF
Selected rows, tints
Dark surface#1F1424
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 #b939fd

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#7DFD39
Analogous left#5739FD
Analogous right#FD39DF
Split-complement 1#DFFD39
Split-complement 2#39FD57
Triadic 1#FDB939
Triadic 2#39FDB9
Tetradic#FD5739

RGB percentages

Red72.5%
Green22.4%
Blue99.2%

CMYK percentages

Cyan26.9%
Magenta77.5%
Yellow0.0%
Key (black)0.8%

Color previews

#b939fd text on a black background

contrast 5.07:1

Card sample

#b939fd text on a white background

contrast 4.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(185, 57, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(185, 57, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b939fd;
background: linear-gradient(135deg, #b939fd, #FD39BE);

Monochromatic scale

Palettes built from #b939fd

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.

#b939fd 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.

#b939fd, answered

What color is #b939fd?

#b939fd is a balanced electric violet, closest to Medium Orchid (ΔE2000 7.1). It sits at 279° on the hue wheel with 98% saturation and 61% lightness, which reads as cool.

What is the RGB value of #b939fd?

rgb(185, 57, 253) — 185 red, 57 green and 253 blue out of 255, or 72.5% / 22.4% / 99.2% by channel.

Is #b939fd a light or a dark color?

It is a mid-tone. Relative luminance is 0.2033 and perceived brightness is 55%, so black text on it reaches 5.07:1.

Should I use black or white text on #b939fd?

Black. It scores 5.07:1 against #b939fd, versus 4.14:1 for white — AA at any size.

What is the complementary color of #b939fd?

#7DFD39 sits directly opposite on the wheel. Softer options are the split-complements #DFFD39 and #39FD57, which give the same contrast with far less vibration.

What colors go well with #b939fd?

For interface work: #F8F4FA as the surface, #DDC0ED for borders, #7F4B9B for secondary text, #79CC00 as an accent and #53017E for hover and pressed states. For a palette, the analogous pair #5739FD and #FD39DF stays calm, while #7DFD39 is the loudest partner.

What is #b939fd in CMYK for printing?

cmyk(27%, 78%, 0%, 1%). 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 #b939fd warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FD39F9; nudged cooler, #7037FF.

Work with #b939fd in the Color Lab