Skip to content

#b02afc

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

RGB
176, 42, 252
HSL
278°, 97%, 58%
CMYK
30, 83, 0, 1
Luminance
0.1791

At a glance

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

Hex
#b02afc
Hue
278°
violet
Saturation
97%
electric
Lightness
58%
balanced
Brightness
99%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1791
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.58:1
Closest name
Dark Orchid
ΔE2000 7.3
Where it sits
Hue278° of 360°
Saturation97%
Lightness58%
Temperature
Warm ← → Cool62% 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#b02afc
RGBrgb(176, 42, 252)
HSLhsl(278, 97%, 58%)
CMYKcmyk(30%, 83%, 0%, 1%)
LABlab(49.4 80.9 -77.4)
LCHlch(49.4 112.0 316.3)
OKLCHoklch(0.601 0.281 308.4)
Decimal11545340
Display P3color(display-p3 0.690 0.165 0.988)

Copy-ready code

/* CSS */
color: #b02afc;
background-color: #b02afc;
/* Tailwind (arbitrary) */
class="text-[#b02afc] bg-[#b02afc]"
/* SCSS */
$brand: #b02afc;
/* SwiftUI */
Color(red: 0.690, green: 0.165, blue: 0.988)
/* Android */
Color.parseColor("#b02afc")
/* Flutter */
Color(0xFFB02AFC)
/* Python / OpenCV (BGR) */
(252, 42, 176)

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 #b02afc · 4.58:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.58: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: #b02afc as text scores 4.58:1 on white and 4.58:1 on black.

Accessibility — WCAG contrast

Aa
#b02afc on white: 4.58:1
AA ✓ pass · AA-large · AAA
Aa
#b02afc on black: 4.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0071FF
deuteranopia · #0077F8
tritanopia · #A46598

Color scale — 50 to 950

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

#F9F1FD
#F3E4FC
#E6C1FB
#D690FD
#C159FD
#b02afc
#9B03F1
#8103C9
#6802A1
#4C0674
#300448
Base = 500Lightest = 50 · #F9F1FDDarkest = 950 · #300448
:root {
  --brand-50: #F9F1FD;
  --brand-100: #F3E4FC;
  --brand-200: #E6C1FB;
  --brand-300: #D690FD;
  --brand-400: #C159FD;
  --brand-500: #b02afc;
  --brand-600: #9B03F1;
  --brand-700: #8103C9;
  --brand-800: #6802A1;
  --brand-900: #4C0674;
  --brand-950: #300448;
  --brand: #b02afc;
  --brand-ink: #ffffff;
}

Colors that work with #b02afc

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#F8F4FA
Tinted page background
Border#DCC0ED
Hairlines and dividers
Muted text#7E4B9B
Captions on the surface
Accent#7DCC00
Second voice, not a rival
Dark variant#51027E
Hover, pressed, headers
Light variant#F6E6FF
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 #b02afc

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#76FC2A
Analogous left#472AFC
Analogous right#FC2ADF
Split-complement 1#DFFC2A
Split-complement 2#2AFC47
Triadic 1#FCB02A
Triadic 2#2AFCB0
Tetradic#FC472A

RGB percentages

Red69.0%
Green16.5%
Blue98.8%

CMYK percentages

Cyan30.2%
Magenta83.3%
Yellow0.0%
Key (black)1.2%

Color previews

#b02afc text on a black background

contrast 4.58:1

Card sample

#b02afc text on a white background

contrast 4.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b02afc

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.

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

#b02afc, answered

What color is #b02afc?

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

What is the RGB value of #b02afc?

rgb(176, 42, 252) — 176 red, 42 green and 252 blue out of 255, or 69% / 16.5% / 98.8% by channel.

Is #b02afc a light or a dark color?

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

Should I use black or white text on #b02afc?

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

What is the complementary color of #b02afc?

#76FC2A sits directly opposite on the wheel. Softer options are the split-complements #DFFC2A and #2AFC47, which give the same contrast with far less vibration.

What colors go well with #b02afc?

For interface work: #F8F4FA as the surface, #DCC0ED for borders, #7E4B9B for secondary text, #7DCC00 as an accent and #51027E for hover and pressed states. For a palette, the analogous pair #472AFC and #FC2ADF stays calm, while #76FC2A is the loudest partner.

What is #b02afc in CMYK for printing?

cmyk(30%, 83%, 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 #b02afc warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FC2AFB; nudged cooler, #6228FE.

Work with #b02afc in the Color Lab