Skip to content

#9a7bc9

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

RGB
154, 123, 201
HSL
264°, 42%, 64%
CMYK
23, 39, 0, 21
Luminance
0.2525

At a glance

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

Hex
#9a7bc9
Hue
264°
violet
Saturation
42%
soft
Lightness
64%
balanced
Brightness
79%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2525
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
6.05:1
Closest name
Medium Purple
ΔE2000 5.5
Where it sits
Hue264° of 360°
Saturation42%
Lightness64%
Temperature
Warm ← → Cool70% 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#9a7bc9
RGBrgb(154, 123, 201)
HSLhsl(264, 42%, 64%)
CMYKcmyk(23%, 39%, 0%, 21%)
LABlab(57.3 27.9 -36.2)
LCHlch(57.3 45.7 307.7)
OKLCHoklch(0.643 0.118 301.5)
Decimal10124233
Display P3color(display-p3 0.604 0.482 0.788)

Copy-ready code

/* CSS */
color: #9a7bc9;
background-color: #9a7bc9;
/* Tailwind (arbitrary) */
class="text-[#9a7bc9] bg-[#9a7bc9]"
/* SCSS */
$brand: #9a7bc9;
/* SwiftUI */
Color(red: 0.604, green: 0.482, blue: 0.788)
/* Android */
Color.parseColor("#9a7bc9")
/* Flutter */
Color(0xFF9A7BC9)
/* Python / OpenCV (BGR) */
(201, 123, 154)

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 #9a7bc9 · 6.05:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.47:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.05:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #9a7bc9 as text scores 3.47:1 on white and 6.05:1 on black.

Accessibility — WCAG contrast

Aa
#9a7bc9 on white: 3.47:1
AA ✗ fail · AA-large · AAA
Aa
#9a7bc9 on black: 6.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6889CC
deuteranopia · #6E89C7
tritanopia · #928898

Color scale — 50 to 950

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

#F7F5FA
#EFEBF5
#DBD2EA
#C2AFDE
#9a7bc9
#8560BE
#7047AE
#5D3B91
#4B2F74
#382655
#231835
Base = 400Lightest = 50 · #F7F5FADarkest = 950 · #231835
:root {
  --brand-50: #F7F5FA;
  --brand-100: #EFEBF5;
  --brand-200: #DBD2EA;
  --brand-300: #C2AFDE;
  --brand-400: #9a7bc9;
  --brand-500: #8560BE;
  --brand-600: #7047AE;
  --brand-700: #5D3B91;
  --brand-800: #4B2F74;
  --brand-900: #382655;
  --brand-950: #231835;
  --brand: #9a7bc9;
  --brand-ink: #000000;
}

Colors that work with #9a7bc9

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#D3C5E7
Hairlines and dividers
Muted text#6A4B9B
Captions on the surface
Accent#879537
Second voice, not a rival
Dark variant#3A255A
Hover, pressed, headers
Light variant#F1EDF8
Selected rows, tints
Dark surface#1A1424
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 #9a7bc9

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
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#AAC97B
Analogous left#7B83C9
Analogous right#C17BC9
Split-complement 1#C9C17B
Split-complement 2#83C97B
Triadic 1#C99A7B
Triadic 2#7BC99A
Tetradic#C97B83

RGB percentages

Red60.4%
Green48.2%
Blue78.8%

CMYK percentages

Cyan23.4%
Magenta38.8%
Yellow0.0%
Key (black)21.2%

Color previews

#9a7bc9 text on a black background

contrast 6.05:1

Card sample

#9a7bc9 text on a white background

contrast 3.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(154, 123, 201, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(154, 123, 201, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9a7bc9;
background: linear-gradient(135deg, #9a7bc9, #C97BC4);

Monochromatic scale

Palettes built from #9a7bc9

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.

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

#9a7bc9, answered

What color is #9a7bc9?

#9a7bc9 is a balanced soft violet, closest to Medium Purple (ΔE2000 5.5). It sits at 264° on the hue wheel with 42% saturation and 64% lightness, which reads as cool.

What is the RGB value of #9a7bc9?

rgb(154, 123, 201) — 154 red, 123 green and 201 blue out of 255, or 60.4% / 48.2% / 78.8% by channel.

Is #9a7bc9 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2525 and perceived brightness is 56%, so black text on it reaches 6.05:1.

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

Black. It scores 6.05:1 against #9a7bc9, versus 3.47:1 for white — AA at any size.

What is the complementary color of #9a7bc9?

#AAC97B sits directly opposite on the wheel. Softer options are the split-complements #C9C17B and #83C97B, which give the same contrast with far less vibration.

What colors go well with #9a7bc9?

For interface work: #F7F4FA as the surface, #D3C5E7 for borders, #6A4B9B for secondary text, #879537 as an accent and #3A255A for hover and pressed states. For a palette, the analogous pair #7B83C9 and #C17BC9 stays calm, while #AAC97B is the loudest partner.

What is #9a7bc9 in CMYK for printing?

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

Is #9a7bc9 warm or cool?

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

Work with #9a7bc9 in the Color Lab