Skip to content

#b331d4

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

RGB
179, 49, 212
HSL
288°, 66%, 51%
CMYK
16, 77, 0, 17
Luminance
0.1653

At a glance

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

Hex
#b331d4
Hue
288°
violet
Saturation
66%
vivid
Lightness
51%
balanced
Brightness
83%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1653
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
4.88:1
Closest name
Dark Orchid
ΔE2000 4.9
Where it sits
Hue288° of 360°
Saturation66%
Lightness51%
Temperature
Warm ← → Cool57% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#b331d4
RGBrgb(179, 49, 212)
HSLhsl(288, 66%, 51%)
CMYKcmyk(16%, 77%, 0%, 17%)
LABlab(47.7 71.8 -57.6)
LCHlch(47.7 92.1 321.3)
OKLCHoklch(0.581 0.244 318.4)
Decimal11743700
Display P3color(display-p3 0.702 0.192 0.831)

Copy-ready code

/* CSS */
color: #b331d4;
background-color: #b331d4;
/* Tailwind (arbitrary) */
class="text-[#b331d4] bg-[#b331d4]"
/* SCSS */
$brand: #b331d4;
/* SwiftUI */
Color(red: 0.702, green: 0.192, blue: 0.831)
/* Android */
Color.parseColor("#b331d4")
/* Flutter */
Color(0xFFB331D4)
/* Python / OpenCV (BGR) */
(212, 49, 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#ffffff on #b331d4 · 4.88:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.88:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.31:1
AA fail · AA large pass · AAA fail
Reading the other direction: #b331d4 as text scores 4.88:1 on white and 4.31:1 on black.

Accessibility — WCAG contrast

Aa
#b331d4 on white: 4.88:1
AA ✓ pass · AA-large · AAA
Aa
#b331d4 on black: 4.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0069D8
deuteranopia · #3A75D0
tritanopia · #B25582

Color scale — 50 to 950

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

#FAF3FB
#F4E8F8
#E9CBF1
#DDA2EC
#CC74E2
#BB45D8
#b331d4
#8E23A9
#711C87
#531862
#340F3D
Base = 600Lightest = 50 · #FAF3FBDarkest = 950 · #340F3D
:root {
  --brand-50: #FAF3FB;
  --brand-100: #F4E8F8;
  --brand-200: #E9CBF1;
  --brand-300: #DDA2EC;
  --brand-400: #CC74E2;
  --brand-500: #BB45D8;
  --brand-600: #b331d4;
  --brand-700: #8E23A9;
  --brand-800: #711C87;
  --brand-900: #531862;
  --brand-950: #340F3D;
  --brand: #b331d4;
  --brand-ink: #ffffff;
}

Colors that work with #b331d4

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#E4C0ED
Hairlines and dividers
Muted text#8B4B9B
Captions on the surface
Accent#5FAD1F
Second voice, not a rival
Dark variant#59166A
Hover, pressed, headers
Light variant#F7EAFB
Selected rows, tints
Dark surface#211424
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 #b331d4

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#52D431
Analogous left#6231D4
Analogous right#D431A3
Split-complement 1#A3D431
Split-complement 2#31D462
Triadic 1#D4B331
Triadic 2#31D4B3
Tetradic#D46231

RGB percentages

Red70.2%
Green19.2%
Blue83.1%

CMYK percentages

Cyan15.6%
Magenta76.9%
Yellow0.0%
Key (black)16.9%

Color previews

#b331d4 text on a black background

contrast 4.31:1

Card sample

#b331d4 text on a white background

contrast 4.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b331d4

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.

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

#b331d4, answered

What color is #b331d4?

#b331d4 is a balanced vivid violet, closest to Dark Orchid (ΔE2000 4.9). It sits at 288° on the hue wheel with 66% saturation and 51% lightness, which reads as neutral.

What is the RGB value of #b331d4?

rgb(179, 49, 212) — 179 red, 49 green and 212 blue out of 255, or 70.2% / 19.2% / 83.1% by channel.

Is #b331d4 a light or a dark color?

It is a dark color. Relative luminance is 0.1653 and perceived brightness is 50%, so white text on it reaches 4.88:1.

Should I use black or white text on #b331d4?

White. It scores 4.88:1 against #b331d4, versus 4.31:1 for black — AA at any size.

What is the complementary color of #b331d4?

#52D431 sits directly opposite on the wheel. Softer options are the split-complements #A3D431 and #31D462, which give the same contrast with far less vibration.

What colors go well with #b331d4?

For interface work: #F9F4FA as the surface, #E4C0ED for borders, #8B4B9B for secondary text, #5FAD1F as an accent and #59166A for hover and pressed states. For a palette, the analogous pair #6231D4 and #D431A3 stays calm, while #52D431 is the loudest partner.

What is #b331d4 in CMYK for printing?

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

Is #b331d4 warm or cool?

Neutral — it scores 57 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D431B9; nudged cooler, #772FD7.

Work with #b331d4 in the Color Lab