Skip to content

#9b2dec

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

RGB
155, 45, 236
HSL
275°, 83%, 55%
CMYK
34, 81, 0, 8
Luminance
0.1490

At a glance

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

Hex
#9b2dec
Hue
275°
violet
Saturation
83%
electric
Lightness
55%
balanced
Brightness
93%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1490
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.28:1
Closest name
Blue Violet
ΔE2000 3.3
Where it sits
Hue275° of 360°
Saturation83%
Lightness55%
Temperature
Warm ← → Cool64% 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#9b2dec
RGBrgb(155, 45, 236)
HSLhsl(275, 83%, 55%)
CMYKcmyk(34%, 81%, 0%, 8%)
LABlab(45.5 73.8 -74.9)
LCHlch(45.5 105.2 314.6)
OKLCHoklch(0.564 0.261 305.0)
Decimal10169836
Display P3color(display-p3 0.608 0.176 0.925)

Copy-ready code

/* CSS */
color: #9b2dec;
background-color: #9b2dec;
/* Tailwind (arbitrary) */
class="text-[#9b2dec] bg-[#9b2dec]"
/* SCSS */
$brand: #9b2dec;
/* SwiftUI */
Color(red: 0.608, green: 0.176, blue: 0.925)
/* Android */
Color.parseColor("#9b2dec")
/* Flutter */
Color(0xFF9B2DEC)
/* Python / OpenCV (BGR) */
(236, 45, 155)

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 #9b2dec · 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: #9b2dec as text scores 5.28:1 on white and 3.98:1 on black.

Accessibility — WCAG contrast

Aa
#9b2dec on white: 5.28:1
AA ✓ pass · AA-large · AAA
Aa
#9b2dec on black: 3.98:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0069F1
deuteranopia · #006CE8
tritanopia · #8B628F

Color scale — 50 to 950

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

#F8F2FC
#F1E6FA
#E2C6F6
#CE98F6
#B665F1
#9b2dec
#8A14E0
#7311BB
#5C0E96
#440E6C
#2B0944
Base = 500Lightest = 50 · #F8F2FCDarkest = 950 · #2B0944
:root {
  --brand-50: #F8F2FC;
  --brand-100: #F1E6FA;
  --brand-200: #E2C6F6;
  --brand-300: #CE98F6;
  --brand-400: #B665F1;
  --brand-500: #9b2dec;
  --brand-600: #8A14E0;
  --brand-700: #7311BB;
  --brand-800: #5C0E96;
  --brand-900: #440E6C;
  --brand-950: #2B0944;
  --brand: #9b2dec;
  --brand-ink: #ffffff;
}

Colors that work with #9b2dec

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#F8F4FA
Tinted page background
Border#DAC0ED
Hairlines and dividers
Muted text#794B9B
Captions on the surface
Accent#85C00C
Second voice, not a rival
Dark variant#480B75
Hover, pressed, headers
Light variant#F4E8FD
Selected rows, tints
Dark surface#1D1424
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 #9b2dec

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#7EEC2D
Analogous left#3C2DEC
Analogous right#EC2DDD
Split-complement 1#DDEC2D
Split-complement 2#2DEC3C
Triadic 1#EC9B2D
Triadic 2#2DEC9B
Tetradic#EC3C2D

RGB percentages

Red60.8%
Green17.6%
Blue92.5%

CMYK percentages

Cyan34.3%
Magenta80.9%
Yellow0.0%
Key (black)7.5%

Color previews

#9b2dec text on a black background

contrast 3.98:1

Card sample

#9b2dec text on a white background

contrast 5.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(155, 45, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(155, 45, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9b2dec;
background: linear-gradient(135deg, #9b2dec, #EC2DBE);

Monochromatic scale

Palettes built from #9b2dec

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.

#9b2dec 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.

#9b2dec, answered

What color is #9b2dec?

#9b2dec is a balanced electric violet, closest to Blue Violet (ΔE2000 3.3). It sits at 275° on the hue wheel with 83% saturation and 55% lightness, which reads as cool.

What is the RGB value of #9b2dec?

rgb(155, 45, 236) — 155 red, 45 green and 236 blue out of 255, or 60.8% / 17.6% / 92.5% by channel.

Is #9b2dec a light or a dark color?

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

Should I use black or white text on #9b2dec?

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

What is the complementary color of #9b2dec?

#7EEC2D sits directly opposite on the wheel. Softer options are the split-complements #DDEC2D and #2DEC3C, which give the same contrast with far less vibration.

What colors go well with #9b2dec?

For interface work: #F8F4FA as the surface, #DAC0ED for borders, #794B9B for secondary text, #85C00C as an accent and #480B75 for hover and pressed states. For a palette, the analogous pair #3C2DEC and #EC2DDD stays calm, while #7EEC2D is the loudest partner.

What is #9b2dec in CMYK for printing?

cmyk(34%, 81%, 0%, 8%). 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 #9b2dec warm or cool?

Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E12DEC; nudged cooler, #542BEE.

Work with #9b2dec in the Color Lab