Skip to content

#ba1af7

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

RGB
186, 26, 247
HSL
283°, 93%, 54%
CMYK
25, 90, 0, 3
Luminance
0.1789

At a glance

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

Hex
#ba1af7
Hue
283°
violet
Saturation
93%
electric
Lightness
54%
balanced
Brightness
97%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1789
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.59:1
Closest name
Dark Orchid
ΔE2000 7.3
Where it sits
Hue283° of 360°
Saturation93%
Lightness54%
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#ba1af7
RGBrgb(186, 26, 247)
HSLhsl(283, 93%, 54%)
CMYKcmyk(25%, 90%, 0%, 3%)
LABlab(49.4 84.7 -74.6)
LCHlch(49.4 112.8 318.6)
OKLCHoklch(0.603 0.289 312.9)
Decimal12196599
Display P3color(display-p3 0.729 0.102 0.969)

Copy-ready code

/* CSS */
color: #ba1af7;
background-color: #ba1af7;
/* Tailwind (arbitrary) */
class="text-[#ba1af7] bg-[#ba1af7]"
/* SCSS */
$brand: #ba1af7;
/* SwiftUI */
Color(red: 0.729, green: 0.102, blue: 0.969)
/* Android */
Color.parseColor("#ba1af7")
/* Flutter */
Color(0xFFBA1AF7)
/* Python / OpenCV (BGR) */
(247, 26, 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#ffffff on #ba1af7 · 4.59:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.59:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.58:1
AA pass · AA large pass · AAA fail
Reading the other direction: #ba1af7 as text scores 4.59:1 on white and 4.58:1 on black.

Accessibility — WCAG contrast

Aa
#ba1af7 on white: 4.59:1
AA ✓ pass · AA-large · AAA
Aa
#ba1af7 on black: 4.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006EFC
deuteranopia · #0078F3
tritanopia · #B35D93

Color scale — 50 to 950

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

#FAF2FD
#F5E4FB
#EAC2F9
#DE93FB
#CE5CF9
#ba1af7
#AD08EC
#9007C5
#74069E
#550972
#350547
Base = 500Lightest = 50 · #FAF2FDDarkest = 950 · #350547
:root {
  --brand-50: #FAF2FD;
  --brand-100: #F5E4FB;
  --brand-200: #EAC2F9;
  --brand-300: #DE93FB;
  --brand-400: #CE5CF9;
  --brand-500: #ba1af7;
  --brand-600: #AD08EC;
  --brand-700: #9007C5;
  --brand-800: #74069E;
  --brand-900: #550972;
  --brand-950: #350547;
  --brand: #ba1af7;
  --brand-ink: #ffffff;
}

Colors that work with #ba1af7

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#E0C0ED
Hairlines and dividers
Muted text#854B9B
Captions on the surface
Accent#6CC903
Second voice, not a rival
Dark variant#5A047B
Hover, pressed, headers
Light variant#F8E6FE
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 #ba1af7

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#57F71A
Analogous left#4B1AF7
Analogous right#F71AC6
Split-complement 1#C6F71A
Split-complement 2#1AF74B
Triadic 1#F7BA1A
Triadic 2#1AF7BA
Tetradic#F74B1A

RGB percentages

Red72.9%
Green10.2%
Blue96.9%

CMYK percentages

Cyan24.7%
Magenta89.5%
Yellow0.0%
Key (black)3.1%

Color previews

#ba1af7 text on a black background

contrast 4.58:1

Card sample

#ba1af7 text on a white background

contrast 4.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba1af7

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.

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

#ba1af7, answered

What color is #ba1af7?

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

What is the RGB value of #ba1af7?

rgb(186, 26, 247) — 186 red, 26 green and 247 blue out of 255, or 72.9% / 10.2% / 96.9% by channel.

Is #ba1af7 a light or a dark color?

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

Should I use black or white text on #ba1af7?

White. It scores 4.59:1 against #ba1af7, versus 4.58:1 for black — AA at any size.

What is the complementary color of #ba1af7?

#57F71A sits directly opposite on the wheel. Softer options are the split-complements #C6F71A and #1AF74B, which give the same contrast with far less vibration.

What colors go well with #ba1af7?

For interface work: #F9F4FA as the surface, #E0C0ED for borders, #854B9B for secondary text, #6CC903 as an accent and #5A047B for hover and pressed states. For a palette, the analogous pair #4B1AF7 and #F71AC6 stays calm, while #57F71A is the loudest partner.

What is #ba1af7 in CMYK for printing?

cmyk(25%, 90%, 0%, 3%). 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 #ba1af7 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 #F71AE3; nudged cooler, #6818F9.

Work with #ba1af7 in the Color Lab