Skip to content

#9f6fd2

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

RGB
159, 111, 210
HSL
269°, 52%, 63%
CMYK
24, 47, 0, 18
Luminance
0.2339

At a glance

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

Hex
#9f6fd2
Hue
269°
violet
Saturation
52%
vivid
Lightness
63%
balanced
Brightness
82%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2339
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
5.68:1
Closest name
Medium Purple
ΔE2000 3.4
Where it sits
Hue269° of 360°
Saturation52%
Lightness63%
Temperature
Warm ← → Cool67% 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#9f6fd2
RGBrgb(159, 111, 210)
HSLhsl(269, 52%, 63%)
CMYKcmyk(24%, 47%, 0%, 18%)
LABlab(55.5 38.4 -44.1)
LCHlch(55.5 58.5 311.0)
OKLCHoklch(0.632 0.150 304.9)
Decimal10448850
Display P3color(display-p3 0.624 0.435 0.824)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f6fd2 on white: 3.70:1
AA ✗ fail · AA-large · AAA
Aa
#9f6fd2 on black: 5.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5483D6
deuteranopia · #6085CF
tritanopia · #978097

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #9f6fd2 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
#F0E9F6
#DDCFED
#C6AAE4
#9f6fd2
#8D54CA
#783ABB
#64319B
#50277C
#3C205B
#261439
Base = 400Lightest = 50 · #F7F4FADarkest = 950 · #261439
:root {
  --brand-50: #F7F4FA;
  --brand-100: #F0E9F6;
  --brand-200: #DDCFED;
  --brand-300: #C6AAE4;
  --brand-400: #9f6fd2;
  --brand-500: #8D54CA;
  --brand-600: #783ABB;
  --brand-700: #64319B;
  --brand-800: #50277C;
  --brand-900: #3C205B;
  --brand-950: #261439;
  --brand: #9f6fd2;
  --brand-ink: #000000;
}

Colors that work with #9f6fd2

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#D6C1EC
Hairlines and dividers
Muted text#724B9B
Captions on the surface
Accent#85A02C
Second voice, not a rival
Dark variant#3F1E61
Hover, pressed, headers
Light variant#F2ECF9
Selected rows, tints
Dark surface#1C1424
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 #9f6fd2

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#A2D26F
Analogous left#6F70D2
Analogous right#D06FD2
Split-complement 1#D2D06F
Split-complement 2#70D26F
Triadic 1#D29F6F
Triadic 2#6FD29F
Tetradic#D26F70

RGB percentages

Red62.4%
Green43.5%
Blue82.4%

CMYK percentages

Cyan24.3%
Magenta47.1%
Yellow0.0%
Key (black)17.6%

Color previews

#9f6fd2 text on a black background

contrast 5.68:1

Card sample

#9f6fd2 text on a white background

contrast 3.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f6fd2

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.

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

#9f6fd2, answered

What color is #9f6fd2?

#9f6fd2 is a balanced vivid violet, closest to Medium Purple (ΔE2000 3.4). It sits at 269° on the hue wheel with 52% saturation and 63% lightness, which reads as cool.

What is the RGB value of #9f6fd2?

rgb(159, 111, 210) — 159 red, 111 green and 210 blue out of 255, or 62.4% / 43.5% / 82.4% by channel.

Is #9f6fd2 a light or a dark color?

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

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

Black. It scores 5.68:1 against #9f6fd2, versus 3.70:1 for white — AA at any size.

What is the complementary color of #9f6fd2?

#A2D26F sits directly opposite on the wheel. Softer options are the split-complements #D2D06F and #70D26F, which give the same contrast with far less vibration.

What colors go well with #9f6fd2?

For interface work: #F7F4FA as the surface, #D6C1EC for borders, #724B9B for secondary text, #85A02C as an accent and #3F1E61 for hover and pressed states. For a palette, the analogous pair #6F70D2 and #D06FD2 stays calm, while #A2D26F is the loudest partner.

What is #9f6fd2 in CMYK for printing?

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

Is #9f6fd2 warm or cool?

Cool — it scores 67 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C36FD2; nudged cooler, #796DD4.

Work with #9f6fd2 in the Color Lab