Skip to content

#b381f9

a light, electric violet · cool · closest name: Medium Purple

RGB
179, 129, 249
HSL
265°, 91%, 74%
CMYK
28, 48, 0, 2
Luminance
0.3212

At a glance

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

Hex
#b381f9
Hue
265°
violet
Saturation
91%
electric
Lightness
74%
light
Brightness
98%
HSV value
Perceived
64%
weighted brightness
Luminance
0.3212
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
7.42:1
Closest name
Medium Purple
ΔE2000 7.9
Where it sits
Hue265° of 360°
Saturation91%
Lightness74%
Temperature
Warm ← → Cool69% 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#b381f9
RGBrgb(179, 129, 249)
HSLhsl(265, 91%, 74%)
CMYKcmyk(28%, 48%, 0%, 2%)
LABlab(63.4 43.0 -53.1)
LCHlch(63.4 68.3 309.0)
OKLCHoklch(0.703 0.175 301.3)
Decimal11764217
Display P3color(display-p3 0.702 0.506 0.976)

Copy-ready code

/* CSS */
color: #b381f9;
background-color: #b381f9;
/* Tailwind (arbitrary) */
class="text-[#b381f9] bg-[#b381f9]"
/* SCSS */
$brand: #b381f9;
/* SwiftUI */
Color(red: 0.702, green: 0.506, blue: 0.976)
/* Android */
Color.parseColor("#b381f9")
/* Flutter */
Color(0xFFB381F9)
/* Python / OpenCV (BGR) */
(249, 129, 179)

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#000000 on #b381f9 · 7.42:1
Use #000000AAA at every size.
Aa
White text · 2.83:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.42:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #b381f9 as text scores 2.83:1 on white and 7.42:1 on black.

Accessibility — WCAG contrast

Aa
#b381f9 on white: 2.83:1
AA ✗ fail · AA-large · AAA
Aa
#b381f9 on black: 7.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5B99FD
deuteranopia · #6899F6
tritanopia · #A697B1

Color scale — 50 to 950

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

#F6F2FD
#EEE5FB
#D9C3F9
#b381f9
#9E5EF7
#7E29F5
#680BEA
#5709C3
#45079C
#350A70
#210646
Base = 300Lightest = 50 · #F6F2FDDarkest = 950 · #210646
:root {
  --brand-50: #F6F2FD;
  --brand-100: #EEE5FB;
  --brand-200: #D9C3F9;
  --brand-300: #b381f9;
  --brand-400: #9E5EF7;
  --brand-500: #7E29F5;
  --brand-600: #680BEA;
  --brand-700: #5709C3;
  --brand-800: #45079C;
  --brand-900: #350A70;
  --brand-950: #210646;
  --brand: #b381f9;
  --brand-ink: #000000;
}

Colors that work with #b381f9

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F7F4FA
Tinted page background
Border#D2C0ED
Hairlines and dividers
Muted text#6C4B9B
Captions on the surface
Accent#A7C705
Second voice, not a rival
Dark variant#36067A
Hover, pressed, headers
Light variant#F0E7FE
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 #b381f9

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • 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#C7F981
Analogous left#818BF9
Analogous right#EF81F9
Split-complement 1#F9EF81
Split-complement 2#8BF981
Triadic 1#F9B381
Triadic 2#81F9B3
Tetradic#F9818B

RGB percentages

Red70.2%
Green50.6%
Blue97.6%

CMYK percentages

Cyan28.1%
Magenta48.2%
Yellow0.0%
Key (black)2.4%

Color previews

#b381f9 text on a black background

contrast 7.42:1

Card sample

#b381f9 text on a white background

contrast 2.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b381f9

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.

#b381f9 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
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#b381f9, answered

What color is #b381f9?

#b381f9 is a light electric violet, closest to Medium Purple (ΔE2000 7.9). It sits at 265° on the hue wheel with 91% saturation and 74% lightness, which reads as cool.

What is the RGB value of #b381f9?

rgb(179, 129, 249) — 179 red, 129 green and 249 blue out of 255, or 70.2% / 50.6% / 97.6% by channel.

Is #b381f9 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3212 and perceived brightness is 64%, so black text on it reaches 7.42:1.

Should I use black or white text on #b381f9?

Black. It scores 7.42:1 against #b381f9, versus 2.83:1 for white — AAA at any size.

What is the complementary color of #b381f9?

#C7F981 sits directly opposite on the wheel. Softer options are the split-complements #F9EF81 and #8BF981, which give the same contrast with far less vibration.

What colors go well with #b381f9?

For interface work: #F7F4FA as the surface, #D2C0ED for borders, #6C4B9B for secondary text, #A7C705 as an accent and #36067A for hover and pressed states. For a palette, the analogous pair #818BF9 and #EF81F9 stays calm, while #C7F981 is the loudest partner.

What is #b381f9 in CMYK for printing?

cmyk(28%, 48%, 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 #b381f9 warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF81F9; nudged cooler, #8680FA.

Work with #b381f9 in the Color Lab