Skip to content

#9f4fba

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

RGB
159, 79, 186
HSL
285°, 44%, 52%
CMYK
15, 58, 0, 27
Luminance
0.1651

At a glance

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

Hex
#9f4fba
Hue
285°
violet
Saturation
44%
soft
Lightness
52%
balanced
Brightness
73%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1651
WCAG relative
Temperature
Cool
58/100 cool
Color family
Violet
Tone
Soft
Best ink
White
4.88:1
Closest name
Medium Orchid
ΔE2000 6.5
Where it sits
Hue285° of 360°
Saturation44%
Lightness52%
Temperature
Warm ← → Cool58% 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#9f4fba
RGBrgb(159, 79, 186)
HSLhsl(285, 44%, 52%)
CMYKcmyk(15%, 58%, 0%, 27%)
LABlab(47.6 50.1 -42.8)
LCHlch(47.6 65.9 319.5)
OKLCHoklch(0.570 0.174 316.8)
Decimal10440634
Display P3color(display-p3 0.624 0.310 0.729)

Copy-ready code

/* CSS */
color: #9f4fba;
background-color: #9f4fba;
/* Tailwind (arbitrary) */
class="text-[#9f4fba] bg-[#9f4fba]"
/* SCSS */
$brand: #9f4fba;
/* SwiftUI */
Color(red: 0.624, green: 0.310, blue: 0.729)
/* Android */
Color.parseColor("#9f4fba")
/* Flutter */
Color(0xFF9F4FBA)
/* Python / OpenCV (BGR) */
(186, 79, 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#ffffff on #9f4fba · 4.88:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.88:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.30:1
AA fail · AA large pass · AAA fail
Reading the other direction: #9f4fba as text scores 4.88:1 on white and 4.30:1 on black.

Accessibility — WCAG contrast

Aa
#9f4fba on white: 4.88:1
AA ✓ pass · AA-large · AAA
Aa
#9f4fba on black: 4.30:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #346CBD
deuteranopia · #5173B7
tritanopia · #9E607D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #9f4fba is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F9F5FA
#F2EAF5
#E4D1EB
#D3AEDF
#BD86D0
#9f4fba
#9545B0
#7C3993
#632E75
#492556
#2E1736
Base = 500Lightest = 50 · #F9F5FADarkest = 950 · #2E1736
:root {
  --brand-50: #F9F5FA;
  --brand-100: #F2EAF5;
  --brand-200: #E4D1EB;
  --brand-300: #D3AEDF;
  --brand-400: #BD86D0;
  --brand-500: #9f4fba;
  --brand-600: #9545B0;
  --brand-700: #7C3993;
  --brand-800: #632E75;
  --brand-900: #492556;
  --brand-950: #2E1736;
  --brand: #9f4fba;
  --brand-ink: #ffffff;
}

Colors that work with #9f4fba

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F9F4FA
Tinted page background
Border#DFC4E8
Hairlines and dividers
Muted text#874B9B
Captions on the surface
Accent#669735
Second voice, not a rival
Dark variant#4E245C
Hover, pressed, headers
Light variant#F5EDF8
Selected rows, tints
Dark surface#201424
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 #9f4fba

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#6ABA4F
Analogous left#6A4FBA
Analogous right#BA4FA0
Split-complement 1#A0BA4F
Split-complement 2#4FBA6A
Triadic 1#BA9F4F
Triadic 2#4FBA9F
Tetradic#BA6A4F

RGB percentages

Red62.4%
Green31.0%
Blue72.9%

CMYK percentages

Cyan14.5%
Magenta57.5%
Yellow0.0%
Key (black)27.1%

Color previews

#9f4fba text on a black background

contrast 4.30:1

Card sample

#9f4fba text on a white background

contrast 4.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f4fba

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.

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

#9f4fba, answered

What color is #9f4fba?

#9f4fba is a balanced soft violet, closest to Medium Orchid (ΔE2000 6.5). It sits at 285° on the hue wheel with 44% saturation and 52% lightness, which reads as cool.

What is the RGB value of #9f4fba?

rgb(159, 79, 186) — 159 red, 79 green and 186 blue out of 255, or 62.4% / 31% / 72.9% by channel.

Is #9f4fba a light or a dark color?

It is a dark color. Relative luminance is 0.1651 and perceived brightness is 48%, so white text on it reaches 4.88:1.

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

White. It scores 4.88:1 against #9f4fba, versus 4.30:1 for black — AA at any size.

What is the complementary color of #9f4fba?

#6ABA4F sits directly opposite on the wheel. Softer options are the split-complements #A0BA4F and #4FBA6A, which give the same contrast with far less vibration.

What colors go well with #9f4fba?

For interface work: #F9F4FA as the surface, #DFC4E8 for borders, #874B9B for secondary text, #669735 as an accent and #4E245C for hover and pressed states. For a palette, the analogous pair #6A4FBA and #BA4FA0 stays calm, while #6ABA4F is the loudest partner.

What is #9f4fba in CMYK for printing?

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

Is #9f4fba warm or cool?

Cool — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA4FAE; nudged cooler, #774DBD.

Work with #9f4fba in the Color Lab