Skip to content

#b331af

a dark, vivid magenta / pink · neutral · closest name: Dark Orchid

RGB
179, 49, 175
HSL
302°, 57%, 45%
CMYK
0, 73, 2, 30
Luminance
0.1488

At a glance

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

Hex
#b331af
Hue
302°
magenta / pink
Saturation
57%
vivid
Lightness
45%
dark
Brightness
70%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1488
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.28:1
Closest name
Dark Orchid
ΔE2000 7.8
Where it sits
Hue302° of 360°
Saturation57%
Lightness45%
Temperature
Warm ← → Cool49% 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#b331af
RGBrgb(179, 49, 175)
HSLhsl(302, 57%, 45%)
CMYKcmyk(0%, 73%, 2%, 30%)
LABlab(45.5 65.5 -39.6)
LCHlch(45.5 76.5 328.8)
OKLCHoklch(0.558 0.214 329.3)
Decimal11743663
Display P3color(display-p3 0.702 0.192 0.686)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b331af on white: 5.28:1
AA ✓ pass · AA-large · AAA
Aa
#b331af on black: 3.98:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1E61B2
deuteranopia · #5772AC
tritanopia · #B9436D

Color scale — 50 to 950

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

#FBF4FB
#F7E9F6
#EECDED
#E7A7E5
#DB7BD8
#CF4FCB
#b331af
#A02C9D
#80237D
#5D1D5B
#3A1239
Base = 600Lightest = 50 · #FBF4FBDarkest = 950 · #3A1239
:root {
  --brand-50: #FBF4FB;
  --brand-100: #F7E9F6;
  --brand-200: #EECDED;
  --brand-300: #E7A7E5;
  --brand-400: #DB7BD8;
  --brand-500: #CF4FCB;
  --brand-600: #b331af;
  --brand-700: #A02C9D;
  --brand-800: #80237D;
  --brand-900: #5D1D5B;
  --brand-950: #3A1239;
  --brand: #b331af;
  --brand-ink: #ffffff;
}

Colors that work with #b331af

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#FAF4FA
Tinted page background
Border#EDC0EB
Hairlines and dividers
Muted text#9B4B99
Captions on the surface
Accent#43A527
Second voice, not a rival
Dark variant#641B62
Hover, pressed, headers
Light variant#FAEBF9
Selected rows, tints
Dark surface#241424
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 #b331af

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black 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#31B335
Analogous left#7631B3
Analogous right#B3316E
Split-complement 1#6EB331
Split-complement 2#31B376
Triadic 1#AFB331
Triadic 2#31AFB3
Tetradic#B37631

RGB percentages

Red70.2%
Green19.2%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta72.6%
Yellow2.2%
Key (black)29.8%

Color previews

#b331af text on a black background

contrast 3.98:1

Card sample

#b331af text on a white background

contrast 5.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b331af

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.

#b331af in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#b331af, answered

What color is #b331af?

#b331af is a dark vivid magenta / pink, closest to Dark Orchid (ΔE2000 7.8). It sits at 302° on the hue wheel with 57% saturation and 45% lightness, which reads as neutral.

What is the RGB value of #b331af?

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

Is #b331af a light or a dark color?

It is a dark color. Relative luminance is 0.1488 and perceived brightness is 47%, so white text on it reaches 5.28:1.

Should I use black or white text on #b331af?

White. It scores 5.28:1 against #b331af, versus 3.98:1 for black — AA at any size.

What is the complementary color of #b331af?

#31B335 sits directly opposite on the wheel. Softer options are the split-complements #6EB331 and #31B376, which give the same contrast with far less vibration.

What colors go well with #b331af?

For interface work: #FAF4FA as the surface, #EDC0EB for borders, #9B4B99 for secondary text, #43A527 as an accent and #641B62 for hover and pressed states. For a palette, the analogous pair #7631B3 and #B3316E stays calm, while #31B335 is the loudest partner.

What is #b331af in CMYK for printing?

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

Is #b331af warm or cool?

Neutral — it scores 49 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B3317F; nudged cooler, #882FB5.

Work with #b331af in the Color Lab