Skip to content

#9c5ef1

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

RGB
156, 94, 241
HSL
265°, 84%, 66%
CMYK
35, 61, 0, 6
Luminance
0.2142

At a glance

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

Hex
#9c5ef1
Hue
265°
violet
Saturation
84%
electric
Lightness
66%
light
Brightness
95%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2142
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.28:1
Closest name
Medium Purple
ΔE2000 5.6
Where it sits
Hue265° of 360°
Saturation84%
Lightness66%
Temperature
Warm ← → Cool69% 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#9c5ef1
RGBrgb(156, 94, 241)
HSLhsl(265, 84%, 66%)
CMYKcmyk(35%, 61%, 0%, 6%)
LABlab(53.4 54.3 -64.9)
LCHlch(53.4 84.6 309.9)
OKLCHoklch(0.622 0.212 299.6)
Decimal10247921
Display P3color(display-p3 0.612 0.369 0.945)

Copy-ready code

/* CSS */
color: #9c5ef1;
background-color: #9c5ef1;
/* Tailwind (arbitrary) */
class="text-[#9c5ef1] bg-[#9c5ef1]"
/* SCSS */
$brand: #9c5ef1;
/* SwiftUI */
Color(red: 0.612, green: 0.369, blue: 0.945)
/* Android */
Color.parseColor("#9c5ef1")
/* Flutter */
Color(0xFF9C5EF1)
/* Python / OpenCV (BGR) */
(241, 94, 156)

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

Accessibility — WCAG contrast

Aa
#9c5ef1 on white: 3.97:1
AA ✗ fail · AA-large · AAA
Aa
#9c5ef1 on black: 5.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007FF6
deuteranopia · #247EEE
tritanopia · #897E9F

Color scale — 50 to 950

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

#F7F2FC
#EEE6FA
#DAC5F6
#C098F6
#9c5ef1
#8031ED
#6A14E1
#5910BC
#470D96
#360E6C
#220944
Base = 400Lightest = 50 · #F7F2FCDarkest = 950 · #220944
:root {
  --brand-50: #F7F2FC;
  --brand-100: #EEE6FA;
  --brand-200: #DAC5F6;
  --brand-300: #C098F6;
  --brand-400: #9c5ef1;
  --brand-500: #8031ED;
  --brand-600: #6A14E1;
  --brand-700: #5910BC;
  --brand-800: #470D96;
  --brand-900: #360E6C;
  --brand-950: #220944;
  --brand: #9c5ef1;
  --brand-ink: #000000;
}

Colors that work with #9c5ef1

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#D3C0ED
Hairlines and dividers
Muted text#6C4B9B
Captions on the surface
Accent#A1C00C
Second voice, not a rival
Dark variant#370A75
Hover, pressed, headers
Light variant#F1E8FD
Selected rows, tints
Dark surface#1B1424
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 #9c5ef1

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#B3F15E
Analogous left#5E6AF1
Analogous right#E55EF1
Split-complement 1#F1E55E
Split-complement 2#6AF15E
Triadic 1#F19C5E
Triadic 2#5EF19C
Tetradic#F15E6A

RGB percentages

Red61.2%
Green36.9%
Blue94.5%

CMYK percentages

Cyan35.3%
Magenta61.0%
Yellow0.0%
Key (black)5.5%

Color previews

#9c5ef1 text on a black background

contrast 5.28:1

Card sample

#9c5ef1 text on a white background

contrast 3.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(156, 94, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(156, 94, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9c5ef1;
background: linear-gradient(135deg, #9c5ef1, #F15EE4);

Monochromatic scale

Palettes built from #9c5ef1

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.

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

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

#9c5ef1, answered

What color is #9c5ef1?

#9c5ef1 is a light electric violet, closest to Medium Purple (ΔE2000 5.6). It sits at 265° on the hue wheel with 84% saturation and 66% lightness, which reads as cool.

What is the RGB value of #9c5ef1?

rgb(156, 94, 241) — 156 red, 94 green and 241 blue out of 255, or 61.2% / 36.9% / 94.5% by channel.

Is #9c5ef1 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2142 and perceived brightness is 54%, so black text on it reaches 5.28:1.

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

Black. It scores 5.28:1 against #9c5ef1, versus 3.97:1 for white — AA at any size.

What is the complementary color of #9c5ef1?

#B3F15E sits directly opposite on the wheel. Softer options are the split-complements #F1E55E and #6AF15E, which give the same contrast with far less vibration.

What colors go well with #9c5ef1?

For interface work: #F7F4FA as the surface, #D3C0ED for borders, #6C4B9B for secondary text, #A1C00C as an accent and #370A75 for hover and pressed states. For a palette, the analogous pair #5E6AF1 and #E55EF1 stays calm, while #B3F15E is the loudest partner.

What is #9c5ef1 in CMYK for printing?

cmyk(35%, 61%, 0%, 6%). 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 #9c5ef1 warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D25EF1; nudged cooler, #655CF3.

Work with #9c5ef1 in the Color Lab