Skip to content

#873eb3

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

RGB
135, 62, 179
HSL
277°, 49%, 47%
CMYK
25, 65, 0, 30
Luminance
0.1185

At a glance

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

Hex
#873eb3
Hue
277°
violet
Saturation
49%
vivid
Lightness
47%
balanced
Brightness
70%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1185
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
6.23:1
Closest name
Dark Orchid
ΔE2000 4.4
Where it sits
Hue277° of 360°
Saturation49%
Lightness47%
Temperature
Warm ← → Cool63% 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#873eb3
RGBrgb(135, 62, 179)
HSLhsl(277, 49%, 47%)
CMYKcmyk(25%, 65%, 0%, 30%)
LABlab(41.0 51.0 -49.5)
LCHlch(41.0 71.1 315.9)
OKLCHoklch(0.513 0.183 310.2)
Decimal8863411
Display P3color(display-p3 0.529 0.243 0.702)

Copy-ready code

/* CSS */
color: #873eb3;
background-color: #873eb3;
/* Tailwind (arbitrary) */
class="text-[#873eb3] bg-[#873eb3]"
/* SCSS */
$brand: #873eb3;
/* SwiftUI */
Color(red: 0.529, green: 0.243, blue: 0.702)
/* Android */
Color.parseColor("#873eb3")
/* Flutter */
Color(0xFF873EB3)
/* Python / OpenCV (BGR) */
(179, 62, 135)

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

Accessibility — WCAG contrast

Aa
#873eb3 on white: 6.23:1
AA ✓ pass · AA-large · AAA
Aa
#873eb3 on black: 3.37:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005DB7
deuteranopia · #2E62B0
tritanopia · #815673

Color scale — 50 to 950

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

#F8F4FA
#F1EAF5
#E1D0EC
#CEACE2
#B582D4
#9C58C5
#873eb3
#723597
#5B2A79
#442259
#2A1537
Base = 600Lightest = 50 · #F8F4FADarkest = 950 · #2A1537
:root {
  --brand-50: #F8F4FA;
  --brand-100: #F1EAF5;
  --brand-200: #E1D0EC;
  --brand-300: #CEACE2;
  --brand-400: #B582D4;
  --brand-500: #9C58C5;
  --brand-600: #873eb3;
  --brand-700: #723597;
  --brand-800: #5B2A79;
  --brand-900: #442259;
  --brand-950: #2A1537;
  --brand: #873eb3;
  --brand-ink: #ffffff;
}

Colors that work with #873eb3

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#DBC2EA
Hairlines and dividers
Muted text#7D4B9B
Captions on the surface
Accent#749C30
Second voice, not a rival
Dark variant#47215F
Hover, pressed, headers
Light variant#F4ECF8
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 #873eb3

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#6AB33E
Analogous left#4D3EB3
Analogous right#B33EA5
Split-complement 1#A5B33E
Split-complement 2#3EB34D
Triadic 1#B3873E
Triadic 2#3EB387
Tetradic#B34D3E

RGB percentages

Red52.9%
Green24.3%
Blue70.2%

CMYK percentages

Cyan24.6%
Magenta65.4%
Yellow0.0%
Key (black)29.8%

Color previews

#873eb3 text on a black background

contrast 3.37:1

Card sample

#873eb3 text on a white background

contrast 6.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(135, 62, 179, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(135, 62, 179, 0.45);
Border & gradient
Gradient panel
border: 3px solid #873eb3;
background: linear-gradient(135deg, #873eb3, #B33E91);

Monochromatic scale

Palettes built from #873eb3

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.

#873eb3 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

Converts to four-color process without much drama. Proof it anyway.

#873eb3, answered

What color is #873eb3?

#873eb3 is a balanced vivid violet, closest to Dark Orchid (ΔE2000 4.4). It sits at 277° on the hue wheel with 49% saturation and 47% lightness, which reads as cool.

What is the RGB value of #873eb3?

rgb(135, 62, 179) — 135 red, 62 green and 179 blue out of 255, or 52.9% / 24.3% / 70.2% by channel.

Is #873eb3 a light or a dark color?

It is a dark color. Relative luminance is 0.1185 and perceived brightness is 42%, so white text on it reaches 6.23:1.

Should I use black or white text on #873eb3?

White. It scores 6.23:1 against #873eb3, versus 3.37:1 for black — AA at any size.

What is the complementary color of #873eb3?

#6AB33E sits directly opposite on the wheel. Softer options are the split-complements #A5B33E and #3EB34D, which give the same contrast with far less vibration.

What colors go well with #873eb3?

For interface work: #F8F4FA as the surface, #DBC2EA for borders, #7D4B9B for secondary text, #749C30 as an accent and #47215F for hover and pressed states. For a palette, the analogous pair #4D3EB3 and #B33EA5 stays calm, while #6AB33E is the loudest partner.

What is #873eb3 in CMYK for printing?

cmyk(25%, 65%, 0%, 30%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #873eb3 warm or cool?

Cool — it scores 63 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B23EB3; nudged cooler, #5B3CB6.

Work with #873eb3 in the Color Lab