Skip to content

#ba12fd

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

RGB
186, 18, 253
HSL
283°, 98%, 53%
CMYK
27, 93, 0, 1
Luminance
0.1796

At a glance

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

Hex
#ba12fd
Hue
283°
violet
Saturation
98%
electric
Lightness
53%
balanced
Brightness
99%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1796
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.59:1
Closest name
Dark Orchid
ΔE2000 7.7
Where it sits
Hue283° of 360°
Saturation98%
Lightness53%
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#ba12fd
RGBrgb(186, 18, 253)
HSLhsl(283, 98%, 53%)
CMYKcmyk(27%, 93%, 0%, 1%)
LABlab(49.5 86.8 -77.8)
LCHlch(49.5 116.6 318.1)
OKLCHoklch(0.605 0.296 311.8)
Decimal12194557
Display P3color(display-p3 0.729 0.071 0.992)

Copy-ready code

/* CSS */
color: #ba12fd;
background-color: #ba12fd;
/* Tailwind (arbitrary) */
class="text-[#ba12fd] bg-[#ba12fd]"
/* SCSS */
$brand: #ba12fd;
/* SwiftUI */
Color(red: 0.729, green: 0.071, blue: 0.992)
/* Android */
Color.parseColor("#ba12fd")
/* Flutter */
Color(0xFFBA12FD)
/* Python / OpenCV (BGR) */
(253, 18, 186)

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

Accessibility — WCAG contrast

Aa
#ba12fd on white: 4.57:1
AA ✓ pass · AA-large · AAA
Aa
#ba12fd on black: 4.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006FFF
deuteranopia · #0078F9
tritanopia · #B15E96

Color scale — 50 to 950

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

#FAF1FD
#F5E3FC
#EAC1FB
#DF90FE
#CE58FE
#ba12fd
#AE02F3
#9102CA
#7401A2
#550675
#350449
Base = 500Lightest = 50 · #FAF1FDDarkest = 950 · #350449
:root {
  --brand-50: #FAF1FD;
  --brand-100: #F5E3FC;
  --brand-200: #EAC1FB;
  --brand-300: #DF90FE;
  --brand-400: #CE58FE;
  --brand-500: #ba12fd;
  --brand-600: #AE02F3;
  --brand-700: #9102CA;
  --brand-800: #7401A2;
  --brand-900: #550675;
  --brand-950: #350449;
  --brand: #ba12fd;
  --brand-ink: #000000;
}

Colors that work with #ba12fd

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#E0C0ED
Hairlines and dividers
Muted text#844B9B
Captions on the surface
Accent#6DCC00
Second voice, not a rival
Dark variant#5B017E
Hover, pressed, headers
Light variant#F8E6FF
Selected rows, tints
Dark surface#201424
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 #ba12fd

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

Works well for
  • Body text and links 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
  • 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#55FD12
Analogous left#4412FD
Analogous right#FD12CA
Split-complement 1#CAFD12
Split-complement 2#12FD44
Triadic 1#FDBA12
Triadic 2#12FDBA
Tetradic#FD4412

RGB percentages

Red72.9%
Green7.1%
Blue99.2%

CMYK percentages

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

Color previews

#ba12fd text on a black background

contrast 4.59:1

Card sample

#ba12fd text on a white background

contrast 4.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba12fd

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.

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

#ba12fd, answered

What color is #ba12fd?

#ba12fd is a balanced electric violet, closest to Dark Orchid (ΔE2000 7.7). It sits at 283° on the hue wheel with 98% saturation and 53% lightness, which reads as cool.

What is the RGB value of #ba12fd?

rgb(186, 18, 253) — 186 red, 18 green and 253 blue out of 255, or 72.9% / 7.1% / 99.2% by channel.

Is #ba12fd a light or a dark color?

It is a dark color. Relative luminance is 0.1796 and perceived brightness is 52%, so black text on it reaches 4.59:1.

Should I use black or white text on #ba12fd?

Black. It scores 4.59:1 against #ba12fd, versus 4.57:1 for white — AA at any size.

What is the complementary color of #ba12fd?

#55FD12 sits directly opposite on the wheel. Softer options are the split-complements #CAFD12 and #12FD44, which give the same contrast with far less vibration.

What colors go well with #ba12fd?

For interface work: #F9F4FA as the surface, #E0C0ED for borders, #844B9B for secondary text, #6DCC00 as an accent and #5B017E for hover and pressed states. For a palette, the analogous pair #4412FD and #FD12CA stays calm, while #55FD12 is the loudest partner.

What is #ba12fd in CMYK for printing?

cmyk(27%, 93%, 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 #ba12fd 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 #FD12EA; nudged cooler, #6310FF.

Work with #ba12fd in the Color Lab