Skip to content

#841dfb

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

RGB
132, 29, 251
HSL
268°, 97%, 55%
CMYK
47, 88, 0, 2
Luminance
0.1275

At a glance

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

Hex
#841dfb
Hue
268°
violet
Saturation
97%
electric
Lightness
55%
balanced
Brightness
98%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1275
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.92:1
Closest name
Blue Violet
ΔE2000 3.1
Where it sits
Hue268° of 360°
Saturation97%
Lightness55%
Temperature
Warm ← → Cool68% 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#841dfb
RGBrgb(132, 29, 251)
HSLhsl(268, 97%, 55%)
CMYKcmyk(47%, 88%, 0%, 2%)
LABlab(42.4 78.5 -88.6)
LCHlch(42.4 118.4 311.5)
OKLCHoklch(0.540 0.281 295.2)
Decimal8658427
Display P3color(display-p3 0.518 0.114 0.984)

Copy-ready code

/* CSS */
color: #841dfb;
background-color: #841dfb;
/* Tailwind (arbitrary) */
class="text-[#841dfb] bg-[#841dfb]"
/* SCSS */
$brand: #841dfb;
/* SwiftUI */
Color(red: 0.518, green: 0.114, blue: 0.984)
/* Android */
Color.parseColor("#841dfb")
/* Flutter */
Color(0xFF841DFB)
/* Python / OpenCV (BGR) */
(251, 29, 132)

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

Accessibility — WCAG contrast

Aa
#841dfb on white: 5.92:1
AA ✓ pass · AA-large · AAA
Aa
#841dfb on black: 3.55:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0066FF
deuteranopia · #0061F7
tritanopia · #606795

Color scale — 50 to 950

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

#F7F1FD
#EFE4FC
#DCC1FB
#C391FD
#A55AFC
#841dfb
#7204F1
#5F04C8
#4C03A0
#390774
#240448
Base = 500Lightest = 50 · #F7F1FDDarkest = 950 · #240448
:root {
  --brand-50: #F7F1FD;
  --brand-100: #EFE4FC;
  --brand-200: #DCC1FB;
  --brand-300: #C391FD;
  --brand-400: #A55AFC;
  --brand-500: #841dfb;
  --brand-600: #7204F1;
  --brand-700: #5F04C8;
  --brand-800: #4C03A0;
  --brand-900: #390774;
  --brand-950: #240448;
  --brand: #841dfb;
  --brand-ink: #ffffff;
}

Colors that work with #841dfb

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#D5C0ED
Hairlines and dividers
Muted text#704B9B
Captions on the surface
Accent#A0CC00
Second voice, not a rival
Dark variant#3B027D
Hover, pressed, headers
Light variant#F1E6FF
Selected rows, tints
Dark surface#1B1424
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 #841dfb

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#94FB1D
Analogous left#1D25FB
Analogous right#F31DFB
Split-complement 1#FBF31D
Split-complement 2#25FB1D
Triadic 1#FB841D
Triadic 2#1DFB84
Tetradic#FB1D25

RGB percentages

Red51.8%
Green11.4%
Blue98.4%

CMYK percentages

Cyan47.4%
Magenta88.4%
Yellow0.0%
Key (black)1.6%

Color previews

#841dfb text on a black background

contrast 3.55:1

Card sample

#841dfb text on a white background

contrast 5.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(132, 29, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(132, 29, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #841dfb;
background: linear-gradient(135deg, #841dfb, #FB1DDE);

Monochromatic scale

Palettes built from #841dfb

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.

#841dfb 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.

#841dfb, answered

What color is #841dfb?

#841dfb is a balanced electric violet, closest to Blue Violet (ΔE2000 3.1). It sits at 268° on the hue wheel with 97% saturation and 55% lightness, which reads as cool.

What is the RGB value of #841dfb?

rgb(132, 29, 251) — 132 red, 29 green and 251 blue out of 255, or 51.8% / 11.4% / 98.4% by channel.

Is #841dfb a light or a dark color?

It is a dark color. Relative luminance is 0.1275 and perceived brightness is 45%, so white text on it reaches 5.92:1.

Should I use black or white text on #841dfb?

White. It scores 5.92:1 against #841dfb, versus 3.55:1 for black — AA at any size.

What is the complementary color of #841dfb?

#94FB1D sits directly opposite on the wheel. Softer options are the split-complements #FBF31D and #25FB1D, which give the same contrast with far less vibration.

What colors go well with #841dfb?

For interface work: #F7F4FA as the surface, #D5C0ED for borders, #704B9B for secondary text, #A0CC00 as an accent and #3B027D for hover and pressed states. For a palette, the analogous pair #1D25FB and #F31DFB stays calm, while #94FB1D is the loudest partner.

What is #841dfb in CMYK for printing?

cmyk(47%, 88%, 0%, 2%). 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 #841dfb warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D51DFB; nudged cooler, #311BFD.

Work with #841dfb in the Color Lab