Skip to content

#873afd

a balanced, electric violet · cool · closest name: Blue Violet

RGB
135, 58, 253
HSL
264°, 98%, 61%
CMYK
47, 77, 0, 1
Luminance
0.1527

At a glance

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

Hex
#873afd
Hue
264°
violet
Saturation
98%
electric
Lightness
61%
balanced
Brightness
99%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1527
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.18:1
Closest name
Blue Violet
ΔE2000 4.7
Where it sits
Hue264° of 360°
Saturation98%
Lightness61%
Temperature
Warm ← → Cool70% 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#873afd
RGBrgb(135, 58, 253)
HSLhsl(264, 98%, 61%)
CMYKcmyk(47%, 77%, 0%, 1%)
LABlab(46.0 70.3 -83.8)
LCHlch(46.0 109.3 310.0)
OKLCHoklch(0.567 0.263 294.1)
Decimal8862461
Display P3color(display-p3 0.529 0.227 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#873afd on white: 5.18:1
AA ✓ pass · AA-large · AAA
Aa
#873afd on black: 4.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006FFF
deuteranopia · #006AF9
tritanopia · #63719B

Color scale — 50 to 950

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

#F6F1FD
#EDE3FC
#D8C1FB
#BB90FE
#9A58FD
#873afd
#6102F2
#5102CA
#4102A2
#320674
#1F0449
Base = 500Lightest = 50 · #F6F1FDDarkest = 950 · #1F0449
:root {
  --brand-50: #F6F1FD;
  --brand-100: #EDE3FC;
  --brand-200: #D8C1FB;
  --brand-300: #BB90FE;
  --brand-400: #9A58FD;
  --brand-500: #873afd;
  --brand-600: #6102F2;
  --brand-700: #5102CA;
  --brand-800: #4102A2;
  --brand-900: #320674;
  --brand-950: #1F0449;
  --brand: #873afd;
  --brand-ink: #ffffff;
}

Colors that work with #873afd

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#F7F4FA
Tinted page background
Border#D1C0ED
Hairlines and dividers
Muted text#6A4B9B
Captions on the surface
Accent#AECC00
Second voice, not a rival
Dark variant#33017E
Hover, pressed, headers
Light variant#F0E6FF
Selected rows, tints
Dark surface#1A1424
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 #873afd

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#B0FD3A
Analogous left#3A4FFD
Analogous right#E93AFD
Split-complement 1#FDE93A
Split-complement 2#4FFD3A
Triadic 1#FD873A
Triadic 2#3AFD87
Tetradic#FD3A4F

RGB percentages

Red52.9%
Green22.7%
Blue99.2%

CMYK percentages

Cyan46.6%
Magenta77.1%
Yellow0.0%
Key (black)0.8%

Color previews

#873afd text on a black background

contrast 4.05:1

Card sample

#873afd text on a white background

contrast 5.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #873afd

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.

#873afd 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.

#873afd, answered

What color is #873afd?

#873afd is a balanced electric violet, closest to Blue Violet (ΔE2000 4.7). It sits at 264° on the hue wheel with 98% saturation and 61% lightness, which reads as cool.

What is the RGB value of #873afd?

rgb(135, 58, 253) — 135 red, 58 green and 253 blue out of 255, or 52.9% / 22.7% / 99.2% by channel.

Is #873afd a light or a dark color?

It is a dark color. Relative luminance is 0.1527 and perceived brightness is 48%, so white text on it reaches 5.18:1.

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

White. It scores 5.18:1 against #873afd, versus 4.05:1 for black — AA at any size.

What is the complementary color of #873afd?

#B0FD3A sits directly opposite on the wheel. Softer options are the split-complements #FDE93A and #4FFD3A, which give the same contrast with far less vibration.

What colors go well with #873afd?

For interface work: #F7F4FA as the surface, #D1C0ED for borders, #6A4B9B for secondary text, #AECC00 as an accent and #33017E for hover and pressed states. For a palette, the analogous pair #3A4FFD and #E93AFD stays calm, while #B0FD3A is the loudest partner.

What is #873afd in CMYK for printing?

cmyk(47%, 77%, 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 #873afd warm or cool?

Cool — it scores 70 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CF3AFD; nudged cooler, #3E38FF.

Work with #873afd in the Color Lab