Skip to content

#9b7fd0

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

RGB
155, 127, 208
HSL
261°, 46%, 66%
CMYK
26, 39, 0, 18
Luminance
0.2670

At a glance

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

Hex
#9b7fd0
Hue
261°
violet
Saturation
46%
vivid
Lightness
66%
light
Brightness
82%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2670
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.34:1
Closest name
Medium Purple
ΔE2000 5.6
Where it sits
Hue261° of 360°
Saturation46%
Lightness66%
Temperature
Warm ← → Cool72% 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#9b7fd0
RGBrgb(155, 127, 208)
HSLhsl(261, 46%, 66%)
CMYKcmyk(26%, 39%, 0%, 18%)
LABlab(58.7 27.6 -38.0)
LCHlch(58.7 47.0 306.0)
OKLCHoklch(0.655 0.121 299.0)
Decimal10190800
Display P3color(display-p3 0.608 0.498 0.816)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b7fd0 on white: 3.31:1
AA ✗ fail · AA-large · AAA
Aa
#9b7fd0 on black: 6.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6A8DD3
deuteranopia · #6F8DCE
tritanopia · #918D9E

Color scale — 50 to 950

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

#F6F5FA
#EEEAF5
#DAD0EB
#BFADE1
#9b7fd0
#7F5BC3
#6942B3
#573795
#462C77
#352357
#211637
Base = 400Lightest = 50 · #F6F5FADarkest = 950 · #211637
:root {
  --brand-50: #F6F5FA;
  --brand-100: #EEEAF5;
  --brand-200: #DAD0EB;
  --brand-300: #BFADE1;
  --brand-400: #9b7fd0;
  --brand-500: #7F5BC3;
  --brand-600: #6942B3;
  --brand-700: #573795;
  --brand-800: #462C77;
  --brand-900: #352357;
  --brand-950: #211637;
  --brand: #9b7fd0;
  --brand-ink: #000000;
}

Colors that work with #9b7fd0

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#D0C3E9
Hairlines and dividers
Muted text#664B9B
Captions on the surface
Accent#8F9A32
Second voice, not a rival
Dark variant#37225D
Hover, pressed, headers
Light variant#F0ECF8
Selected rows, tints
Dark surface#191424
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 #9b7fd0

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#B4D07F
Analogous left#7F8CD0
Analogous right#C37FD0
Split-complement 1#D0C37F
Split-complement 2#8CD07F
Triadic 1#D09B7F
Triadic 2#7FD09B
Tetradic#D07F8C

RGB percentages

Red60.8%
Green49.8%
Blue81.6%

CMYK percentages

Cyan25.5%
Magenta38.9%
Yellow0.0%
Key (black)18.4%

Color previews

#9b7fd0 text on a black background

contrast 6.34:1

Card sample

#9b7fd0 text on a white background

contrast 3.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b7fd0

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.

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

#9b7fd0, answered

What color is #9b7fd0?

#9b7fd0 is a light vivid violet, closest to Medium Purple (ΔE2000 5.6). It sits at 261° on the hue wheel with 46% saturation and 66% lightness, which reads as cool.

What is the RGB value of #9b7fd0?

rgb(155, 127, 208) — 155 red, 127 green and 208 blue out of 255, or 60.8% / 49.8% / 81.6% by channel.

Is #9b7fd0 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2670 and perceived brightness is 58%, so black text on it reaches 6.34:1.

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

Black. It scores 6.34:1 against #9b7fd0, versus 3.31:1 for white — AA at any size.

What is the complementary color of #9b7fd0?

#B4D07F sits directly opposite on the wheel. Softer options are the split-complements #D0C37F and #8CD07F, which give the same contrast with far less vibration.

What colors go well with #9b7fd0?

For interface work: #F6F4FA as the surface, #D0C3E9 for borders, #664B9B for secondary text, #8F9A32 as an accent and #37225D for hover and pressed states. For a palette, the analogous pair #7F8CD0 and #C37FD0 stays calm, while #B4D07F is the loudest partner.

What is #9b7fd0 in CMYK for printing?

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

Is #9b7fd0 warm or cool?

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

Work with #9b7fd0 in the Color Lab