Skip to content

#9f4fec

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

RGB
159, 79, 236
HSL
271°, 81%, 62%
CMYK
33, 67, 0, 8
Luminance
0.1902

At a glance

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

Hex
#9f4fec
Hue
271°
violet
Saturation
81%
electric
Lightness
62%
balanced
Brightness
93%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1902
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.80:1
Closest name
Medium Orchid
ΔE2000 7.4
Where it sits
Hue271° of 360°
Saturation81%
Lightness62%
Temperature
Warm ← → Cool66% 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#9f4fec
RGBrgb(159, 79, 236)
HSLhsl(271, 81%, 62%)
CMYKcmyk(33%, 67%, 0%, 8%)
LABlab(50.7 61.1 -66.4)
LCHlch(50.7 90.3 312.6)
OKLCHoklch(0.602 0.227 303.6)
Decimal10440684
Display P3color(display-p3 0.624 0.310 0.925)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f4fec on white: 4.37:1
AA ✗ fail · AA-large · AAA
Aa
#9f4fec on black: 4.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0077F1
deuteranopia · #0B78E9
tritanopia · #907297

Color scale — 50 to 950

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

#F7F3FC
#F0E6F9
#DEC6F5
#C89AF4
#9f4fec
#9134E9
#7C18DD
#6814B8
#531093
#3E106B
#270A43
Base = 400Lightest = 50 · #F7F3FCDarkest = 950 · #270A43
:root {
  --brand-50: #F7F3FC;
  --brand-100: #F0E6F9;
  --brand-200: #DEC6F5;
  --brand-300: #C89AF4;
  --brand-400: #9f4fec;
  --brand-500: #9134E9;
  --brand-600: #7C18DD;
  --brand-700: #6814B8;
  --brand-800: #531093;
  --brand-900: #3E106B;
  --brand-950: #270A43;
  --brand: #9f4fec;
  --brand-ink: #000000;
}

Colors that work with #9f4fec

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#D7C0ED
Hairlines and dividers
Muted text#744B9B
Captions on the surface
Accent#8FBC10
Second voice, not a rival
Dark variant#410C73
Hover, pressed, headers
Light variant#F2E8FD
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 #9f4fec

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#9CEC4F
Analogous left#514FEC
Analogous right#EC4FEA
Split-complement 1#EAEC4F
Split-complement 2#4FEC51
Triadic 1#EC9F4F
Triadic 2#4FEC9F
Tetradic#EC514F

RGB percentages

Red62.4%
Green31.0%
Blue92.5%

CMYK percentages

Cyan32.6%
Magenta66.5%
Yellow0.0%
Key (black)7.5%

Color previews

#9f4fec text on a black background

contrast 4.80:1

Card sample

#9f4fec text on a white background

contrast 4.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f4fec

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.

#9f4fec 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#9f4fec, answered

What color is #9f4fec?

#9f4fec is a balanced electric violet, closest to Medium Orchid (ΔE2000 7.4). It sits at 271° on the hue wheel with 81% saturation and 62% lightness, which reads as cool.

What is the RGB value of #9f4fec?

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

Is #9f4fec a light or a dark color?

It is a mid-tone. Relative luminance is 0.1902 and perceived brightness is 52%, so black text on it reaches 4.80:1.

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

Black. It scores 4.80:1 against #9f4fec, versus 4.37:1 for white — AA at any size.

What is the complementary color of #9f4fec?

#9CEC4F sits directly opposite on the wheel. Softer options are the split-complements #EAEC4F and #4FEC51, which give the same contrast with far less vibration.

What colors go well with #9f4fec?

For interface work: #F7F4FA as the surface, #D7C0ED for borders, #744B9B for secondary text, #8FBC10 as an accent and #410C73 for hover and pressed states. For a palette, the analogous pair #514FEC and #EC4FEA stays calm, while #9CEC4F is the loudest partner.

What is #9f4fec in CMYK for printing?

cmyk(33%, 67%, 0%, 8%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #9f4fec warm or cool?

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D94FEC; nudged cooler, #644DEE.

Work with #9f4fec in the Color Lab