Skip to content

#9b71cd

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

RGB
155, 113, 205
HSL
267°, 48%, 62%
CMYK
24, 45, 0, 20
Luminance
0.2319

At a glance

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

Hex
#9b71cd
Hue
267°
violet
Saturation
48%
vivid
Lightness
62%
balanced
Brightness
80%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2319
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
5.64:1
Closest name
Medium Purple
ΔE2000 3.5
Where it sits
Hue267° of 360°
Saturation48%
Lightness62%
Temperature
Warm ← → Cool68% 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#9b71cd
RGBrgb(155, 113, 205)
HSLhsl(267, 48%, 62%)
CMYKcmyk(24%, 45%, 0%, 20%)
LABlab(55.3 34.9 -41.7)
LCHlch(55.3 54.4 310.0)
OKLCHoklch(0.629 0.140 303.7)
Decimal10187213
Display P3color(display-p3 0.608 0.443 0.804)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b71cd on white: 3.73:1
AA ✗ fail · AA-large · AAA
Aa
#9b71cd on black: 5.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5883D0
deuteranopia · #6284CB
tritanopia · #938195

Color scale — 50 to 950

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

#F7F4FA
#EFEAF5
#DDD0EC
#C5ACE2
#9b71cd
#8A59C5
#7540B5
#623597
#4E2B79
#3B2258
#251537
Base = 400Lightest = 50 · #F7F4FADarkest = 950 · #251537
:root {
  --brand-50: #F7F4FA;
  --brand-100: #EFEAF5;
  --brand-200: #DDD0EC;
  --brand-300: #C5ACE2;
  --brand-400: #9b71cd;
  --brand-500: #8A59C5;
  --brand-600: #7540B5;
  --brand-700: #623597;
  --brand-800: #4E2B79;
  --brand-900: #3B2258;
  --brand-950: #251537;
  --brand: #9b71cd;
  --brand-ink: #000000;
}

Colors that work with #9b71cd

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#D5C3EA
Hairlines and dividers
Muted text#6F4B9B
Captions on the surface
Accent#859B31
Second voice, not a rival
Dark variant#3D215E
Hover, pressed, headers
Light variant#F2ECF8
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 #9b71cd

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
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#A3CD71
Analogous left#7175CD
Analogous right#C971CD
Split-complement 1#CDC971
Split-complement 2#75CD71
Triadic 1#CD9B71
Triadic 2#71CD9B
Tetradic#CD7175

RGB percentages

Red60.8%
Green44.3%
Blue80.4%

CMYK percentages

Cyan24.4%
Magenta44.9%
Yellow0.0%
Key (black)19.6%

Color previews

#9b71cd text on a black background

contrast 5.64:1

Card sample

#9b71cd text on a white background

contrast 3.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b71cd

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.

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

#9b71cd, answered

What color is #9b71cd?

#9b71cd is a balanced vivid violet, closest to Medium Purple (ΔE2000 3.5). It sits at 267° on the hue wheel with 48% saturation and 62% lightness, which reads as cool.

What is the RGB value of #9b71cd?

rgb(155, 113, 205) — 155 red, 113 green and 205 blue out of 255, or 60.8% / 44.3% / 80.4% by channel.

Is #9b71cd a light or a dark color?

It is a mid-tone. Relative luminance is 0.2319 and perceived brightness is 55%, so black text on it reaches 5.64:1.

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

Black. It scores 5.64:1 against #9b71cd, versus 3.73:1 for white — AA at any size.

What is the complementary color of #9b71cd?

#A3CD71 sits directly opposite on the wheel. Softer options are the split-complements #CDC971 and #75CD71, which give the same contrast with far less vibration.

What colors go well with #9b71cd?

For interface work: #F7F4FA as the surface, #D5C3EA for borders, #6F4B9B for secondary text, #859B31 as an accent and #3D215E for hover and pressed states. For a palette, the analogous pair #7175CD and #C971CD stays calm, while #A3CD71 is the loudest partner.

What is #9b71cd in CMYK for printing?

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

Is #9b71cd warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BD71CD; nudged cooler, #786FCF.

Work with #9b71cd in the Color Lab