Skip to content

#b02af7

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

RGB
176, 42, 247
HSL
279°, 93%, 57%
CMYK
29, 83, 0, 3
Luminance
0.1760

At a glance

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

Hex
#b02af7
Hue
279°
violet
Saturation
93%
electric
Lightness
57%
balanced
Brightness
97%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1760
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.65:1
Closest name
Dark Orchid
ΔE2000 6.7
Where it sits
Hue279° of 360°
Saturation93%
Lightness57%
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#b02af7
RGBrgb(176, 42, 247)
HSLhsl(279, 93%, 57%)
CMYKcmyk(29%, 83%, 0%, 3%)
LABlab(49.0 79.9 -75.3)
LCHlch(49.0 109.8 316.7)
OKLCHoklch(0.597 0.277 309.5)
Decimal11545335
Display P3color(display-p3 0.690 0.165 0.969)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b02af7 on white: 4.65:1
AA ✓ pass · AA-large · AAA
Aa
#b02af7 on black: 4.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006FFC
deuteranopia · #0076F3
tritanopia · #A56395

Color scale — 50 to 950

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

#F9F2FD
#F3E4FB
#E6C2F9
#D793FB
#C35DF9
#b02af7
#9D09EC
#8307C5
#69069D
#4D0971
#300647
Base = 500Lightest = 50 · #F9F2FDDarkest = 950 · #300647
:root {
  --brand-50: #F9F2FD;
  --brand-100: #F3E4FB;
  --brand-200: #E6C2F9;
  --brand-300: #D793FB;
  --brand-400: #C35DF9;
  --brand-500: #b02af7;
  --brand-600: #9D09EC;
  --brand-700: #8307C5;
  --brand-800: #69069D;
  --brand-900: #4D0971;
  --brand-950: #300647;
  --brand: #b02af7;
  --brand-ink: #ffffff;
}

Colors that work with #b02af7

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#DDC0ED
Hairlines and dividers
Muted text#7F4B9B
Captions on the surface
Accent#79C804
Second voice, not a rival
Dark variant#52057B
Hover, pressed, headers
Light variant#F6E6FE
Selected rows, tints
Dark surface#1F1424
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 #b02af7

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#71F72A
Analogous left#4A2AF7
Analogous right#F72AD8
Split-complement 1#D8F72A
Split-complement 2#2AF74A
Triadic 1#F7B02A
Triadic 2#2AF7B0
Tetradic#F74A2A

RGB percentages

Red69.0%
Green16.5%
Blue96.9%

CMYK percentages

Cyan28.7%
Magenta83.0%
Yellow0.0%
Key (black)3.1%

Color previews

#b02af7 text on a black background

contrast 4.52:1

Card sample

#b02af7 text on a white background

contrast 4.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b02af7

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.

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

#b02af7, answered

What color is #b02af7?

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

What is the RGB value of #b02af7?

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

Is #b02af7 a light or a dark color?

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

Should I use black or white text on #b02af7?

White. It scores 4.65:1 against #b02af7, versus 4.52:1 for black — AA at any size.

What is the complementary color of #b02af7?

#71F72A sits directly opposite on the wheel. Softer options are the split-complements #D8F72A and #2AF74A, which give the same contrast with far less vibration.

What colors go well with #b02af7?

For interface work: #F8F4FA as the surface, #DDC0ED for borders, #7F4B9B for secondary text, #79C804 as an accent and #52057B for hover and pressed states. For a palette, the analogous pair #4A2AF7 and #F72AD8 stays calm, while #71F72A is the loudest partner.

What is #b02af7 in CMYK for printing?

cmyk(29%, 83%, 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 #b02af7 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 #F72AF3; nudged cooler, #6428F9.

Work with #b02af7 in the Color Lab