Skip to content

#b02fe2

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

RGB
176, 47, 226
HSL
283°, 76%, 54%
CMYK
22, 79, 0, 11
Luminance
0.1675

At a glance

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

Hex
#b02fe2
Hue
283°
violet
Saturation
76%
electric
Lightness
54%
balanced
Brightness
89%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1675
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.83:1
Closest name
Dark Orchid
ΔE2000 4.9
Where it sits
Hue283° of 360°
Saturation76%
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#b02fe2
RGBrgb(176, 47, 226)
HSLhsl(283, 76%, 54%)
CMYKcmyk(22%, 79%, 0%, 11%)
LABlab(48.0 74.5 -65.2)
LCHlch(48.0 99.0 318.8)
OKLCHoklch(0.585 0.256 314.0)
Decimal11546594
Display P3color(display-p3 0.690 0.184 0.886)

Copy-ready code

/* CSS */
color: #b02fe2;
background-color: #b02fe2;
/* Tailwind (arbitrary) */
class="text-[#b02fe2] bg-[#b02fe2]"
/* SCSS */
$brand: #b02fe2;
/* SwiftUI */
Color(red: 0.690, green: 0.184, blue: 0.886)
/* Android */
Color.parseColor("#b02fe2")
/* Flutter */
Color(0xFFB02FE2)
/* Python / OpenCV (BGR) */
(226, 47, 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 #b02fe2 · 4.83:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.83:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.35:1
AA fail · AA large pass · AAA fail
Reading the other direction: #b02fe2 as text scores 4.83:1 on white and 4.35:1 on black.

Accessibility — WCAG contrast

Aa
#b02fe2 on white: 4.83:1
AA ✓ pass · AA-large · AAA
Aa
#b02fe2 on black: 4.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006BE7
deuteranopia · #1A75DE
tritanopia · #AB5B8A

Color scale — 50 to 950

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

#F9F3FC
#F4E7F9
#E8C8F4
#DA9DF1
#C76BEA
#b02fe2
#A31ED7
#8819B3
#6D148F
#501368
#320C41
Base = 500Lightest = 50 · #F9F3FCDarkest = 950 · #320C41
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F4E7F9;
  --brand-200: #E8C8F4;
  --brand-300: #DA9DF1;
  --brand-400: #C76BEA;
  --brand-500: #b02fe2;
  --brand-600: #A31ED7;
  --brand-700: #8819B3;
  --brand-800: #6D148F;
  --brand-900: #501368;
  --brand-950: #320C41;
  --brand: #b02fe2;
  --brand-ink: #ffffff;
}

Colors that work with #b02fe2

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#844B9B
Captions on the surface
Accent#6BB715
Second voice, not a rival
Dark variant#551070
Hover, pressed, headers
Light variant#F6E9FC
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 #b02fe2

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
  • 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#61E22F
Analogous left#562FE2
Analogous right#E22FBB
Split-complement 1#BBE22F
Split-complement 2#2FE256
Triadic 1#E2B02F
Triadic 2#2FE2B0
Tetradic#E2562F

RGB percentages

Red69.0%
Green18.4%
Blue88.6%

CMYK percentages

Cyan22.1%
Magenta79.2%
Yellow0.0%
Key (black)11.4%

Color previews

#b02fe2 text on a black background

contrast 4.35:1

Card sample

#b02fe2 text on a white background

contrast 4.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b02fe2

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.

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

#b02fe2, answered

What color is #b02fe2?

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

What is the RGB value of #b02fe2?

rgb(176, 47, 226) — 176 red, 47 green and 226 blue out of 255, or 69% / 18.4% / 88.6% by channel.

Is #b02fe2 a light or a dark color?

It is a dark color. Relative luminance is 0.1675 and perceived brightness is 50%, so white text on it reaches 4.83:1.

Should I use black or white text on #b02fe2?

White. It scores 4.83:1 against #b02fe2, versus 4.35:1 for black — AA at any size.

What is the complementary color of #b02fe2?

#61E22F sits directly opposite on the wheel. Softer options are the split-complements #BBE22F and #2FE256, which give the same contrast with far less vibration.

What colors go well with #b02fe2?

For interface work: #F9F4FA as the surface, #E0C0ED for borders, #844B9B for secondary text, #6BB715 as an accent and #551070 for hover and pressed states. For a palette, the analogous pair #562FE2 and #E22FBB stays calm, while #61E22F is the loudest partner.

What is #b02fe2 in CMYK for printing?

cmyk(22%, 79%, 0%, 11%). 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 #b02fe2 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 #E22FD2; nudged cooler, #6D2DE4.

Work with #b02fe2 in the Color Lab