Skip to content

#ba4ffc

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

RGB
186, 79, 252
HSL
277°, 97%, 65%
CMYK
26, 69, 0, 1
Luminance
0.2306

At a glance

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

Hex
#ba4ffc
Hue
277°
violet
Saturation
97%
electric
Lightness
65%
balanced
Brightness
99%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2306
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.61:1
Closest name
Medium Orchid
ΔE2000 6.1
Where it sits
Hue277° of 360°
Saturation97%
Lightness65%
Temperature
Warm ← → Cool63% 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#ba4ffc
RGBrgb(186, 79, 252)
HSLhsl(277, 97%, 65%)
CMYKcmyk(26%, 69%, 0%, 1%)
LABlab(55.1 70.0 -68.0)
LCHlch(55.1 97.6 315.8)
OKLCHoklch(0.644 0.249 309.4)
Decimal12210172
Display P3color(display-p3 0.729 0.310 0.988)

Copy-ready code

/* CSS */
color: #ba4ffc;
background-color: #ba4ffc;
/* Tailwind (arbitrary) */
class="text-[#ba4ffc] bg-[#ba4ffc]"
/* SCSS */
$brand: #ba4ffc;
/* SwiftUI */
Color(red: 0.729, green: 0.310, blue: 0.988)
/* Android */
Color.parseColor("#ba4ffc")
/* Flutter */
Color(0xFFBA4FFC)
/* Python / OpenCV (BGR) */
(252, 79, 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 #ba4ffc · 5.61:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.74:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.61:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #ba4ffc as text scores 3.74:1 on white and 5.61:1 on black.

Accessibility — WCAG contrast

Aa
#ba4ffc on white: 3.74:1
AA ✗ fail · AA-large · AAA
Aa
#ba4ffc on black: 5.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0080FF
deuteranopia · #2D85F8
tritanopia · #B075A0

Color scale — 50 to 950

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

#F9F1FD
#F3E4FC
#E5C1FB
#D491FD
#ba4ffc
#A822FB
#9604F1
#7D03C9
#6403A0
#4A0774
#2E0448
Base = 400Lightest = 50 · #F9F1FDDarkest = 950 · #2E0448
:root {
  --brand-50: #F9F1FD;
  --brand-100: #F3E4FC;
  --brand-200: #E5C1FB;
  --brand-300: #D491FD;
  --brand-400: #ba4ffc;
  --brand-500: #A822FB;
  --brand-600: #9604F1;
  --brand-700: #7D03C9;
  --brand-800: #6403A0;
  --brand-900: #4A0774;
  --brand-950: #2E0448;
  --brand: #ba4ffc;
  --brand-ink: #000000;
}

Colors that work with #ba4ffc

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#DCC0ED
Hairlines and dividers
Muted text#7C4B9B
Captions on the surface
Accent#81CC00
Second voice, not a rival
Dark variant#4E027D
Hover, pressed, headers
Light variant#F5E6FF
Selected rows, tints
Dark surface#1E1424
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 #ba4ffc

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#91FC4F
Analogous left#634FFC
Analogous right#FC4FE7
Split-complement 1#E7FC4F
Split-complement 2#4FFC63
Triadic 1#FCBA4F
Triadic 2#4FFCBA
Tetradic#FC634F

RGB percentages

Red72.9%
Green31.0%
Blue98.8%

CMYK percentages

Cyan26.2%
Magenta68.7%
Yellow0.0%
Key (black)1.2%

Color previews

#ba4ffc text on a black background

contrast 5.61:1

Card sample

#ba4ffc text on a white background

contrast 3.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba4ffc

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.

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

#ba4ffc, answered

What color is #ba4ffc?

#ba4ffc is a balanced electric violet, closest to Medium Orchid (ΔE2000 6.1). It sits at 277° on the hue wheel with 97% saturation and 65% lightness, which reads as cool.

What is the RGB value of #ba4ffc?

rgb(186, 79, 252) — 186 red, 79 green and 252 blue out of 255, or 72.9% / 31% / 98.8% by channel.

Is #ba4ffc a light or a dark color?

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

Should I use black or white text on #ba4ffc?

Black. It scores 5.61:1 against #ba4ffc, versus 3.74:1 for white — AA at any size.

What is the complementary color of #ba4ffc?

#91FC4F sits directly opposite on the wheel. Softer options are the split-complements #E7FC4F and #4FFC63, which give the same contrast with far less vibration.

What colors go well with #ba4ffc?

For interface work: #F8F4FA as the surface, #DCC0ED for borders, #7C4B9B for secondary text, #81CC00 as an accent and #4E027D for hover and pressed states. For a palette, the analogous pair #634FFC and #FC4FE7 stays calm, while #91FC4F is the loudest partner.

What is #ba4ffc in CMYK for printing?

cmyk(26%, 69%, 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 #ba4ffc warm or cool?

Cool — it scores 63 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F94FFC; nudged cooler, #7A4DFE.

Work with #ba4ffc in the Color Lab