Skip to content

#b22eee

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

RGB
178, 46, 238
HSL
281°, 85%, 56%
CMYK
25, 81, 0, 7
Luminance
0.1759

At a glance

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

Hex
#b22eee
Hue
281°
violet
Saturation
85%
electric
Lightness
56%
balanced
Brightness
93%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1759
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.65:1
Closest name
Dark Orchid
ΔE2000 6.2
Where it sits
Hue281° of 360°
Saturation85%
Lightness56%
Temperature
Warm ← → Cool60% 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#b22eee
RGBrgb(178, 46, 238)
HSLhsl(281, 85%, 56%)
CMYKcmyk(25%, 81%, 0%, 7%)
LABlab(49.0 77.4 -70.2)
LCHlch(49.0 104.5 317.8)
OKLCHoklch(0.596 0.267 311.9)
Decimal11677422
Display P3color(display-p3 0.698 0.180 0.933)

Copy-ready code

/* CSS */
color: #b22eee;
background-color: #b22eee;
/* Tailwind (arbitrary) */
class="text-[#b22eee] bg-[#b22eee]"
/* SCSS */
$brand: #b22eee;
/* SwiftUI */
Color(red: 0.698, green: 0.180, blue: 0.933)
/* Android */
Color.parseColor("#b22eee")
/* Flutter */
Color(0xFFB22EEE)
/* Python / OpenCV (BGR) */
(238, 46, 178)

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 #b22eee · 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: #b22eee as text scores 4.65:1 on white and 4.52:1 on black.

Accessibility — WCAG contrast

Aa
#b22eee on white: 4.65:1
AA ✓ pass · AA-large · AAA
Aa
#b22eee on black: 4.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006EF3
deuteranopia · #0077EA
tritanopia · #AA6090

Color scale — 50 to 950

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

#F9F2FC
#F4E5FA
#E7C5F7
#D997F7
#C663F2
#b22eee
#A212E2
#870FBD
#6C0C97
#4F0D6D
#320844
Base = 500Lightest = 50 · #F9F2FCDarkest = 950 · #320844
:root {
  --brand-50: #F9F2FC;
  --brand-100: #F4E5FA;
  --brand-200: #E7C5F7;
  --brand-300: #D997F7;
  --brand-400: #C663F2;
  --brand-500: #b22eee;
  --brand-600: #A212E2;
  --brand-700: #870FBD;
  --brand-800: #6C0C97;
  --brand-900: #4F0D6D;
  --brand-950: #320844;
  --brand: #b22eee;
  --brand-ink: #ffffff;
}

Colors that work with #b22eee

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#DFC0ED
Hairlines and dividers
Muted text#824B9B
Captions on the surface
Accent#71C10B
Second voice, not a rival
Dark variant#540A76
Hover, pressed, headers
Light variant#F6E7FD
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 #b22eee

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#6AEE2E
Analogous left#522EEE
Analogous right#EE2ECA
Split-complement 1#CAEE2E
Split-complement 2#2EEE52
Triadic 1#EEB22E
Triadic 2#2EEEB2
Tetradic#EE522E

RGB percentages

Red69.8%
Green18.0%
Blue93.3%

CMYK percentages

Cyan25.2%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#b22eee text on a black background

contrast 4.52:1

Card sample

#b22eee text on a white background

contrast 4.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 46, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 46, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b22eee;
background: linear-gradient(135deg, #b22eee, #EE2EAA);

Monochromatic scale

Palettes built from #b22eee

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.

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

#b22eee, answered

What color is #b22eee?

#b22eee is a balanced electric violet, closest to Dark Orchid (ΔE2000 6.2). It sits at 281° on the hue wheel with 85% saturation and 56% lightness, which reads as cool.

What is the RGB value of #b22eee?

rgb(178, 46, 238) — 178 red, 46 green and 238 blue out of 255, or 69.8% / 18% / 93.3% by channel.

Is #b22eee a light or a dark color?

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

Should I use black or white text on #b22eee?

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

What is the complementary color of #b22eee?

#6AEE2E sits directly opposite on the wheel. Softer options are the split-complements #CAEE2E and #2EEE52, which give the same contrast with far less vibration.

What colors go well with #b22eee?

For interface work: #F9F4FA as the surface, #DFC0ED for borders, #824B9B for secondary text, #71C10B as an accent and #540A76 for hover and pressed states. For a palette, the analogous pair #522EEE and #EE2ECA stays calm, while #6AEE2E is the loudest partner.

What is #b22eee in CMYK for printing?

cmyk(25%, 81%, 0%, 7%). 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 #b22eee warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EE2EE3; nudged cooler, #6B2CF0.

Work with #b22eee in the Color Lab