Skip to content

#ba2ced

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

RGB
186, 44, 237
HSL
284°, 84%, 55%
CMYK
22, 81, 0, 7
Luminance
0.1835

At a glance

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

Hex
#ba2ced
Hue
284°
violet
Saturation
84%
electric
Lightness
55%
balanced
Brightness
93%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1835
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.67:1
Closest name
Medium Orchid
ΔE2000 6.9
Where it sits
Hue284° of 360°
Saturation84%
Lightness55%
Temperature
Warm ← → Cool59% 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#ba2ced
RGBrgb(186, 44, 237)
HSLhsl(284, 84%, 55%)
CMYKcmyk(22%, 81%, 0%, 7%)
LABlab(49.9 79.0 -68.1)
LCHlch(49.9 104.3 319.3)
OKLCHoklch(0.604 0.270 314.6)
Decimal12201197
Display P3color(display-p3 0.729 0.173 0.929)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2ced on white: 4.50:1
AA ✓ pass · AA-large · AAA
Aa
#ba2ced on black: 4.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006FF2
deuteranopia · #187AE9
tritanopia · #B55D90

Color scale — 50 to 950

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

#FAF2FC
#F4E6FA
#E9C5F6
#DD98F6
#CC64F2
#ba2ced
#AB13E2
#8E10BC
#720D96
#540E6D
#340944
Base = 500Lightest = 50 · #FAF2FCDarkest = 950 · #340944
:root {
  --brand-50: #FAF2FC;
  --brand-100: #F4E6FA;
  --brand-200: #E9C5F6;
  --brand-300: #DD98F6;
  --brand-400: #CC64F2;
  --brand-500: #ba2ced;
  --brand-600: #AB13E2;
  --brand-700: #8E10BC;
  --brand-800: #720D96;
  --brand-900: #540E6D;
  --brand-950: #340944;
  --brand: #ba2ced;
  --brand-ink: #000000;
}

Colors that work with #ba2ced

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#E1C0ED
Hairlines and dividers
Muted text#864B9B
Captions on the surface
Accent#69C00C
Second voice, not a rival
Dark variant#590A75
Hover, pressed, headers
Light variant#F7E8FD
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 #ba2ced

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#5FED2C
Analogous left#592CED
Analogous right#ED2CC0
Split-complement 1#C0ED2C
Split-complement 2#2CED59
Triadic 1#EDBA2C
Triadic 2#2CEDBA
Tetradic#ED592C

RGB percentages

Red72.9%
Green17.3%
Blue92.9%

CMYK percentages

Cyan21.5%
Magenta81.4%
Yellow0.0%
Key (black)7.1%

Color previews

#ba2ced text on a black background

contrast 4.67:1

Card sample

#ba2ced text on a white background

contrast 4.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2ced

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.

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

#ba2ced, answered

What color is #ba2ced?

#ba2ced is a balanced electric violet, closest to Medium Orchid (ΔE2000 6.9). It sits at 284° on the hue wheel with 84% saturation and 55% lightness, which reads as cool.

What is the RGB value of #ba2ced?

rgb(186, 44, 237) — 186 red, 44 green and 237 blue out of 255, or 72.9% / 17.3% / 92.9% by channel.

Is #ba2ced a light or a dark color?

It is a mid-tone. Relative luminance is 0.1835 and perceived brightness is 52%, so black text on it reaches 4.67:1.

Should I use black or white text on #ba2ced?

Black. It scores 4.67:1 against #ba2ced, versus 4.50:1 for white — AA at any size.

What is the complementary color of #ba2ced?

#5FED2C sits directly opposite on the wheel. Softer options are the split-complements #C0ED2C and #2CED59, which give the same contrast with far less vibration.

What colors go well with #ba2ced?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #864B9B for secondary text, #69C00C as an accent and #590A75 for hover and pressed states. For a palette, the analogous pair #592CED and #ED2CC0 stays calm, while #5FED2C is the loudest partner.

What is #ba2ced in CMYK for printing?

cmyk(22%, 81%, 0%, 7%). 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 #ba2ced warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #ED2CD9; nudged cooler, #722AEF.

Work with #ba2ced in the Color Lab