Skip to content

#bd02a2

a dark, electric magenta / pink · neutral · closest name: Medium Violet Red

RGB
189, 2, 162
HSL
309°, 98%, 38%
CMYK
0, 99, 14, 26
Luminance
0.1347

At a glance

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

Hex
#bd02a2
Hue
309°
magenta / pink
Saturation
98%
electric
Lightness
38%
dark
Brightness
74%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1347
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.68:1
Closest name
Medium Violet Red
ΔE2000 7
Where it sits
Hue309° of 360°
Saturation98%
Lightness38%
Temperature
Warm ← → Cool45% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#bd02a2
RGBrgb(189, 2, 162)
HSLhsl(309, 98%, 38%)
CMYKcmyk(0%, 99%, 14%, 26%)
LABlab(43.5 74.5 -34.9)
LCHlch(43.5 82.3 334.9)
OKLCHoklch(0.545 0.240 336.5)
Decimal12386978
Display P3color(display-p3 0.741 0.008 0.635)

Copy-ready code

/* CSS */
color: #bd02a2;
background-color: #bd02a2;
/* Tailwind (arbitrary) */
class="text-[#bd02a2] bg-[#bd02a2]"
/* SCSS */
$brand: #bd02a2;
/* SwiftUI */
Color(red: 0.741, green: 0.008, blue: 0.635)
/* Android */
Color.parseColor("#bd02a2")
/* Flutter */
Color(0xFFBD02A2)
/* Python / OpenCV (BGR) */
(162, 2, 189)

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

Accessibility — WCAG contrast

Aa
#bd02a2 on white: 5.68:1
AA ✓ pass · AA-large · AAA
Aa
#bd02a2 on black: 3.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0D57A5
deuteranopia · #5B6F9E
tritanopia · #C71F5E

Color scale — 50 to 950

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

#FDF1FC
#FCE3F8
#FBC1F3
#FE90EE
#FD58E5
#FD21DD
#F203CF
#bd02a2
#A1028A
#740664
#49043F
Base = 700Lightest = 50 · #FDF1FCDarkest = 950 · #49043F
:root {
  --brand-50: #FDF1FC;
  --brand-100: #FCE3F8;
  --brand-200: #FBC1F3;
  --brand-300: #FE90EE;
  --brand-400: #FD58E5;
  --brand-500: #FD21DD;
  --brand-600: #F203CF;
  --brand-700: #bd02a2;
  --brand-800: #A1028A;
  --brand-900: #740664;
  --brand-950: #49043F;
  --brand: #bd02a2;
  --brand-ink: #ffffff;
}

Colors that work with #bd02a2

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#FAF4FA
Tinted page background
Border#EDC0E6
Hairlines and dividers
Muted text#9B4B8F
Captions on the surface
Accent#15CC00
Second voice, not a rival
Dark variant#7E016C
Hover, pressed, headers
Light variant#FFE6FB
Selected rows, tints
Dark surface#241422
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 #bd02a2

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#02BD1D
Analogous left#7B02BD
Analogous right#BD0244
Split-complement 1#44BD02
Split-complement 2#02BD7B
Triadic 1#A2BD02
Triadic 2#02A2BD
Tetradic#BD7B02

RGB percentages

Red74.1%
Green0.8%
Blue63.5%

CMYK percentages

Cyan0.0%
Magenta98.9%
Yellow14.3%
Key (black)25.9%

Color previews

#bd02a2 text on a black background

contrast 3.69:1

Card sample

#bd02a2 text on a white background

contrast 5.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(189, 2, 162, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(189, 2, 162, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bd02a2;
background: linear-gradient(135deg, #bd02a2, #BD0225);

Monochromatic scale

Palettes built from #bd02a2

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.

#bd02a2 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#bd02a2, answered

What color is #bd02a2?

#bd02a2 is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 7). It sits at 309° on the hue wheel with 98% saturation and 38% lightness, which reads as neutral.

What is the RGB value of #bd02a2?

rgb(189, 2, 162) — 189 red, 2 green and 162 blue out of 255, or 74.1% / 0.8% / 63.5% by channel.

Is #bd02a2 a light or a dark color?

It is a dark color. Relative luminance is 0.1347 and perceived brightness is 46%, so white text on it reaches 5.68:1.

Should I use black or white text on #bd02a2?

White. It scores 5.68:1 against #bd02a2, versus 3.69:1 for black — AA at any size.

What is the complementary color of #bd02a2?

#02BD1D sits directly opposite on the wheel. Softer options are the split-complements #44BD02 and #02BD7B, which give the same contrast with far less vibration.

What colors go well with #bd02a2?

For interface work: #FAF4FA as the surface, #EDC0E6 for borders, #9B4B8F for secondary text, #15CC00 as an accent and #7E016C for hover and pressed states. For a palette, the analogous pair #7B02BD and #BD0244 stays calm, while #02BD1D is the loudest partner.

What is #bd02a2 in CMYK for printing?

cmyk(0%, 99%, 14%, 26%). 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 #bd02a2 warm or cool?

Neutral — it scores 45 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BD025D; nudged cooler, #9500BF.

Work with #bd02a2 in the Color Lab