Skip to content

#9f7cd7

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

RGB
159, 124, 215
HSL
263°, 53%, 67%
CMYK
26, 42, 0, 16
Luminance
0.2669

At a glance

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

Hex
#9f7cd7
Hue
263°
violet
Saturation
53%
vivid
Lightness
67%
light
Brightness
84%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2669
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.34:1
Closest name
Medium Purple
ΔE2000 4.5
Where it sits
Hue263° of 360°
Saturation53%
Lightness67%
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#9f7cd7
RGBrgb(159, 124, 215)
HSLhsl(263, 53%, 67%)
CMYKcmyk(26%, 42%, 0%, 16%)
LABlab(58.7 32.2 -41.9)
LCHlch(58.7 52.8 307.5)
OKLCHoklch(0.657 0.136 300.4)
Decimal10452183
Display P3color(display-p3 0.624 0.486 0.843)

Copy-ready code

/* CSS */
color: #9f7cd7;
background-color: #9f7cd7;
/* Tailwind (arbitrary) */
class="text-[#9f7cd7] bg-[#9f7cd7]"
/* SCSS */
$brand: #9f7cd7;
/* SwiftUI */
Color(red: 0.624, green: 0.486, blue: 0.843)
/* Android */
Color.parseColor("#9f7cd7")
/* Flutter */
Color(0xFF9F7CD7)
/* Python / OpenCV (BGR) */
(215, 124, 159)

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 #9f7cd7 · 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: #9f7cd7 as text scores 3.31:1 on white and 6.34:1 on black.

Accessibility — WCAG contrast

Aa
#9f7cd7 on white: 3.31:1
AA ✗ fail · AA-large · AAA
Aa
#9f7cd7 on black: 6.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #638DDA
deuteranopia · #6B8DD5
tritanopia · #958C9F

Color scale — 50 to 950

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

#F7F4FB
#EEE9F6
#DACEED
#C0A9E5
#9f7cd7
#8153CA
#6B39BC
#5A309C
#48267D
#361F5B
#221439
Base = 400Lightest = 50 · #F7F4FBDarkest = 950 · #221439
:root {
  --brand-50: #F7F4FB;
  --brand-100: #EEE9F6;
  --brand-200: #DACEED;
  --brand-300: #C0A9E5;
  --brand-400: #9f7cd7;
  --brand-500: #8153CA;
  --brand-600: #6B39BC;
  --brand-700: #5A309C;
  --brand-800: #48267D;
  --brand-900: #361F5B;
  --brand-950: #221439;
  --brand: #9f7cd7;
  --brand-ink: #000000;
}

Colors that work with #9f7cd7

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#D1C0EC
Hairlines and dividers
Muted text#6A4B9B
Captions on the surface
Accent#90A02C
Second voice, not a rival
Dark variant#381E62
Hover, pressed, headers
Light variant#F1EBF9
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 #9f7cd7

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#B4D77C
Analogous left#7C87D7
Analogous right#CD7CD7
Split-complement 1#D7CD7C
Split-complement 2#87D77C
Triadic 1#D79F7C
Triadic 2#7CD79F
Tetradic#D77C87

RGB percentages

Red62.4%
Green48.6%
Blue84.3%

CMYK percentages

Cyan26.0%
Magenta42.3%
Yellow0.0%
Key (black)15.7%

Color previews

#9f7cd7 text on a black background

contrast 6.34:1

Card sample

#9f7cd7 text on a white background

contrast 3.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(159, 124, 215, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 124, 215, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9f7cd7;
background: linear-gradient(135deg, #9f7cd7, #D77CD2);

Monochromatic scale

Palettes built from #9f7cd7

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.

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

#9f7cd7, answered

What color is #9f7cd7?

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

What is the RGB value of #9f7cd7?

rgb(159, 124, 215) — 159 red, 124 green and 215 blue out of 255, or 62.4% / 48.6% / 84.3% by channel.

Is #9f7cd7 a light or a dark color?

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

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

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

What is the complementary color of #9f7cd7?

#B4D77C sits directly opposite on the wheel. Softer options are the split-complements #D7CD7C and #87D77C, which give the same contrast with far less vibration.

What colors go well with #9f7cd7?

For interface work: #F7F4FA as the surface, #D1C0EC for borders, #6A4B9B for secondary text, #90A02C as an accent and #381E62 for hover and pressed states. For a palette, the analogous pair #7C87D7 and #CD7CD7 stays calm, while #B4D77C is the loudest partner.

What is #9f7cd7 in CMYK for printing?

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

Is #9f7cd7 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 #C07CD7; nudged cooler, #7C7AD9.

Work with #9f7cd7 in the Color Lab