Skip to content

#9c2df6

a balanced, electric violet · cool · closest name: Blue Violet

RGB
156, 45, 246
HSL
273°, 92%, 57%
CMYK
37, 82, 0, 4
Luminance
0.1560

At a glance

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

Hex
#9c2df6
Hue
273°
violet
Saturation
92%
electric
Lightness
57%
balanced
Brightness
96%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1560
WCAG relative
Temperature
Cool
65/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.10:1
Closest name
Blue Violet
ΔE2000 4.2
Where it sits
Hue273° of 360°
Saturation92%
Lightness57%
Temperature
Warm ← → Cool65% 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#9c2df6
RGBrgb(156, 45, 246)
HSLhsl(273, 92%, 57%)
CMYKcmyk(37%, 82%, 0%, 4%)
LABlab(46.4 76.0 -79.0)
LCHlch(46.4 109.7 313.9)
OKLCHoklch(0.573 0.270 303.3)
Decimal10235382
Display P3color(display-p3 0.612 0.176 0.965)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9c2df6 on white: 5.10:1
AA ✓ pass · AA-large · AAA
Aa
#9c2df6 on black: 4.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006CFB
deuteranopia · #006EF2
tritanopia · #896795

Color scale — 50 to 950

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

#F8F2FD
#F1E4FB
#E1C3F9
#CC93FA
#B35EF8
#9c2df6
#860AEB
#7008C4
#59079D
#430A71
#2A0647
Base = 500Lightest = 50 · #F8F2FDDarkest = 950 · #2A0647
:root {
  --brand-50: #F8F2FD;
  --brand-100: #F1E4FB;
  --brand-200: #E1C3F9;
  --brand-300: #CC93FA;
  --brand-400: #B35EF8;
  --brand-500: #9c2df6;
  --brand-600: #860AEB;
  --brand-700: #7008C4;
  --brand-800: #59079D;
  --brand-900: #430A71;
  --brand-950: #2A0647;
  --brand: #9c2df6;
  --brand-ink: #ffffff;
}

Colors that work with #9c2df6

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#F8F4FA
Tinted page background
Border#D9C0ED
Hairlines and dividers
Muted text#774B9B
Captions on the surface
Accent#8DC705
Second voice, not a rival
Dark variant#46057A
Hover, pressed, headers
Light variant#F3E7FE
Selected rows, tints
Dark surface#1D1424
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 #9c2df6

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#87F62D
Analogous left#382DF6
Analogous right#F62DEC
Split-complement 1#ECF62D
Split-complement 2#2DF638
Triadic 1#F69C2D
Triadic 2#2DF69C
Tetradic#F6382D

RGB percentages

Red61.2%
Green17.6%
Blue96.5%

CMYK percentages

Cyan36.6%
Magenta81.7%
Yellow0.0%
Key (black)3.5%

Color previews

#9c2df6 text on a black background

contrast 4.12:1

Card sample

#9c2df6 text on a white background

contrast 5.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9c2df6

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.

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

#9c2df6, answered

What color is #9c2df6?

#9c2df6 is a balanced electric violet, closest to Blue Violet (ΔE2000 4.2). It sits at 273° on the hue wheel with 92% saturation and 57% lightness, which reads as cool.

What is the RGB value of #9c2df6?

rgb(156, 45, 246) — 156 red, 45 green and 246 blue out of 255, or 61.2% / 17.6% / 96.5% by channel.

Is #9c2df6 a light or a dark color?

It is a dark color. Relative luminance is 0.1560 and perceived brightness is 49%, so white text on it reaches 5.10:1.

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

White. It scores 5.10:1 against #9c2df6, versus 4.12:1 for black — AA at any size.

What is the complementary color of #9c2df6?

#87F62D sits directly opposite on the wheel. Softer options are the split-complements #ECF62D and #2DF638, which give the same contrast with far less vibration.

What colors go well with #9c2df6?

For interface work: #F8F4FA as the surface, #D9C0ED for borders, #774B9B for secondary text, #8DC705 as an accent and #46057A for hover and pressed states. For a palette, the analogous pair #382DF6 and #F62DEC stays calm, while #87F62D is the loudest partner.

What is #9c2df6 in CMYK for printing?

cmyk(37%, 82%, 0%, 4%). 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 #9c2df6 warm or cool?

Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E62DF6; nudged cooler, #512BF8.

Work with #9c2df6 in the Color Lab