Skip to content

#b40cfe

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

RGB
180, 12, 254
HSL
282°, 99%, 52%
CMYK
29, 95, 0, 0
Luminance
0.1712

At a glance

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

Hex
#b40cfe
Hue
282°
violet
Saturation
99%
electric
Lightness
52%
balanced
Brightness
100%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1712
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.75:1
Closest name
Dark Orchid
ΔE2000 7.1
Where it sits
Hue282° of 360°
Saturation99%
Lightness52%
Temperature
Warm ← → Cool60% 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#b40cfe
RGBrgb(180, 12, 254)
HSLhsl(282, 99%, 52%)
CMYKcmyk(29%, 95%, 0%, 0%)
LABlab(48.4 86.9 -80.1)
LCHlch(48.4 118.2 317.3)
OKLCHoklch(0.596 0.297 310.0)
Decimal11799806
Display P3color(display-p3 0.706 0.047 0.996)

Copy-ready code

/* CSS */
color: #b40cfe;
background-color: #b40cfe;
/* Tailwind (arbitrary) */
class="text-[#b40cfe] bg-[#b40cfe]"
/* SCSS */
$brand: #b40cfe;
/* SwiftUI */
Color(red: 0.706, green: 0.047, blue: 0.996)
/* Android */
Color.parseColor("#b40cfe")
/* Flutter */
Color(0xFFB40CFE)
/* Python / OpenCV (BGR) */
(254, 12, 180)

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

Accessibility — WCAG contrast

Aa
#b40cfe on white: 4.75:1
AA ✓ pass · AA-large · AAA
Aa
#b40cfe on black: 4.42:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006DFF
deuteranopia · #0075FA
tritanopia · #A95F96

Color scale — 50 to 950

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

#FAF1FE
#F5E3FC
#E9C0FB
#DD8FFF
#CB57FE
#b40cfe
#AA01F4
#8D01CB
#7101A3
#530575
#340349
Base = 500Lightest = 50 · #FAF1FEDarkest = 950 · #340349
:root {
  --brand-50: #FAF1FE;
  --brand-100: #F5E3FC;
  --brand-200: #E9C0FB;
  --brand-300: #DD8FFF;
  --brand-400: #CB57FE;
  --brand-500: #b40cfe;
  --brand-600: #AA01F4;
  --brand-700: #8D01CB;
  --brand-800: #7101A3;
  --brand-900: #530575;
  --brand-950: #340349;
  --brand: #b40cfe;
  --brand-ink: #ffffff;
}

Colors that work with #b40cfe

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#F9F4FA
Tinted page background
Border#DFC0ED
Hairlines and dividers
Muted text#824B9B
Captions on the surface
Accent#72CC00
Second voice, not a rival
Dark variant#58017F
Hover, pressed, headers
Light variant#F7E6FF
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 #b40cfe

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
  • Brand accents, badges and data highlights
Use with care
  • 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#56FE0C
Analogous left#3B0CFE
Analogous right#FE0CCF
Split-complement 1#CFFE0C
Split-complement 2#0CFE3B
Triadic 1#FEB40C
Triadic 2#0CFEB4
Tetradic#FE3B0C

RGB percentages

Red70.6%
Green4.7%
Blue99.6%

CMYK percentages

Cyan29.1%
Magenta95.3%
Yellow0.0%
Key (black)0.4%

Color previews

#b40cfe text on a black background

contrast 4.42:1

Card sample

#b40cfe text on a white background

contrast 4.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(180, 12, 254, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(180, 12, 254, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b40cfe;
background: linear-gradient(135deg, #b40cfe, #FE0CA7);

Monochromatic scale

Palettes built from #b40cfe

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.

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

#b40cfe, answered

What color is #b40cfe?

#b40cfe is a balanced electric violet, closest to Dark Orchid (ΔE2000 7.1). It sits at 282° on the hue wheel with 99% saturation and 52% lightness, which reads as cool.

What is the RGB value of #b40cfe?

rgb(180, 12, 254) — 180 red, 12 green and 254 blue out of 255, or 70.6% / 4.7% / 99.6% by channel.

Is #b40cfe a light or a dark color?

It is a dark color. Relative luminance is 0.1712 and perceived brightness is 51%, so white text on it reaches 4.75:1.

Should I use black or white text on #b40cfe?

White. It scores 4.75:1 against #b40cfe, versus 4.42:1 for black — AA at any size.

What is the complementary color of #b40cfe?

#56FE0C sits directly opposite on the wheel. Softer options are the split-complements #CFFE0C and #0CFE3B, which give the same contrast with far less vibration.

What colors go well with #b40cfe?

For interface work: #F9F4FA as the surface, #DFC0ED for borders, #824B9B for secondary text, #72CC00 as an accent and #58017F for hover and pressed states. For a palette, the analogous pair #3B0CFE and #FE0CCF stays calm, while #56FE0C is the loudest partner.

What is #b40cfe in CMYK for printing?

cmyk(29%, 95%, 0%, 0%). 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 #b40cfe warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FE0CEF; nudged cooler, #5B0BFF.

Work with #b40cfe in the Color Lab