Skip to content

#9b7dec

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

RGB
155, 125, 236
HSL
256°, 75%, 71%
CMYK
34, 47, 0, 8
Luminance
0.2769

At a glance

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

Hex
#9b7dec
Hue
256°
violet
Saturation
75%
vivid
Lightness
71%
light
Brightness
93%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2769
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.54:1
Closest name
Medium Purple
ΔE2000 4.5
Where it sits
Hue256° of 360°
Saturation75%
Lightness71%
Temperature
Warm ← → Cool74% 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#9b7dec
RGBrgb(155, 125, 236)
HSLhsl(256, 75%, 71%)
CMYKcmyk(34%, 47%, 0%, 8%)
LABlab(59.6 35.8 -52.2)
LCHlch(59.6 63.3 304.5)
OKLCHoklch(0.666 0.161 294.0)
Decimal10190316
Display P3color(display-p3 0.608 0.490 0.925)

Copy-ready code

/* CSS */
color: #9b7dec;
background-color: #9b7dec;
/* Tailwind (arbitrary) */
class="text-[#9b7dec] bg-[#9b7dec]"
/* SCSS */
$brand: #9b7dec;
/* SwiftUI */
Color(red: 0.608, green: 0.490, blue: 0.925)
/* Android */
Color.parseColor("#9b7dec")
/* Flutter */
Color(0xFF9B7DEC)
/* Python / OpenCV (BGR) */
(236, 125, 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#000000 on #9b7dec · 6.54:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.21:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.54:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #9b7dec as text scores 3.21:1 on white and 6.54:1 on black.

Accessibility — WCAG contrast

Aa
#9b7dec on white: 3.21:1
AA ✗ fail · AA-large · AAA
Aa
#9b7dec on black: 6.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5691F0
deuteranopia · #5B8EE9
tritanopia · #8892A9

Color scale — 50 to 950

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

#F5F3FC
#ECE7F9
#D4C8F4
#B49DF1
#9b7dec
#683BE2
#501FD6
#431AB2
#36158E
#2A1367
#1A0C40
Base = 400Lightest = 50 · #F5F3FCDarkest = 950 · #1A0C40
:root {
  --brand-50: #F5F3FC;
  --brand-100: #ECE7F9;
  --brand-200: #D4C8F4;
  --brand-300: #B49DF1;
  --brand-400: #9b7dec;
  --brand-500: #683BE2;
  --brand-600: #501FD6;
  --brand-700: #431AB2;
  --brand-800: #36158E;
  --brand-900: #2A1367;
  --brand-950: #1A0C40;
  --brand: #9b7dec;
  --brand-ink: #000000;
}

Colors that work with #9b7dec

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#F6F4FA
Tinted page background
Border#CCC0ED
Hairlines and dividers
Muted text#604B9B
Captions on the surface
Accent#B3B616
Second voice, not a rival
Dark variant#2A106F
Hover, pressed, headers
Light variant#EEE9FC
Selected rows, tints
Dark surface#181424
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 #9b7dec

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

Works well for
  • Headings from 24px up on white
  • 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
  • Small text on white — under 4.5:1
  • 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#CEEC7D
Analogous left#7D97EC
Analogous right#D27DEC
Split-complement 1#ECD27D
Split-complement 2#97EC7D
Triadic 1#EC9B7D
Triadic 2#7DEC9B
Tetradic#EC7D97

RGB percentages

Red60.8%
Green49.0%
Blue92.5%

CMYK percentages

Cyan34.3%
Magenta47.0%
Yellow0.0%
Key (black)7.5%

Color previews

#9b7dec text on a black background

contrast 6.54:1

Card sample

#9b7dec text on a white background

contrast 3.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b7dec

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.

#9b7dec 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

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

#9b7dec, answered

What color is #9b7dec?

#9b7dec is a light vivid violet, closest to Medium Purple (ΔE2000 4.5). It sits at 256° on the hue wheel with 75% saturation and 71% lightness, which reads as cool.

What is the RGB value of #9b7dec?

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

Is #9b7dec a light or a dark color?

It is a mid-tone. Relative luminance is 0.2769 and perceived brightness is 59%, so black text on it reaches 6.54:1.

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

Black. It scores 6.54:1 against #9b7dec, versus 3.21:1 for white — AA at any size.

What is the complementary color of #9b7dec?

#CEEC7D sits directly opposite on the wheel. Softer options are the split-complements #ECD27D and #97EC7D, which give the same contrast with far less vibration.

What colors go well with #9b7dec?

For interface work: #F6F4FA as the surface, #CCC0ED for borders, #604B9B for secondary text, #B3B616 as an accent and #2A106F for hover and pressed states. For a palette, the analogous pair #7D97EC and #D27DEC stays calm, while #CEEC7D is the loudest partner.

What is #9b7dec in CMYK for printing?

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

Is #9b7dec warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C47DEC; nudged cooler, #7C87EE.

Work with #9b7dec in the Color Lab