Skip to content

#9c0cd2

a dark, electric violet · cool · closest name: Dark Violet

RGB
156, 12, 210
HSL
284°, 89%, 44%
CMYK
26, 94, 0, 18
Luminance
0.1198

At a glance

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

Hex
#9c0cd2
Hue
284°
violet
Saturation
89%
electric
Lightness
44%
dark
Brightness
82%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1198
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
White
6.18:1
Closest name
Dark Violet
ΔE2000 1.7
Where it sits
Hue284° of 360°
Saturation89%
Lightness44%
Temperature
Warm ← → Cool59% 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#9c0cd2
RGBrgb(156, 12, 210)
HSLhsl(284, 89%, 44%)
CMYKcmyk(26%, 94%, 0%, 18%)
LABlab(41.2 75.8 -67.1)
LCHlch(41.2 101.3 318.5)
OKLCHoklch(0.528 0.258 312.5)
Decimal10226898
Display P3color(display-p3 0.612 0.047 0.824)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9c0cd2 on white: 6.18:1
AA ✓ pass · AA-large · AAA
Aa
#9c0cd2 on black: 3.40:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005BD7
deuteranopia · #0064CF
tritanopia · #954C7C

Color scale — 50 to 950

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

#FAF2FD
#F5E5FB
#EAC4F8
#DE95F9
#CD60F6
#BC2BF3
#AC0DE8
#9c0cd2
#73099A
#540B6F
#340746
Base = 700Lightest = 50 · #FAF2FDDarkest = 950 · #340746
:root {
  --brand-50: #FAF2FD;
  --brand-100: #F5E5FB;
  --brand-200: #EAC4F8;
  --brand-300: #DE95F9;
  --brand-400: #CD60F6;
  --brand-500: #BC2BF3;
  --brand-600: #AC0DE8;
  --brand-700: #9c0cd2;
  --brand-800: #73099A;
  --brand-900: #540B6F;
  --brand-950: #340746;
  --brand: #9c0cd2;
  --brand-ink: #ffffff;
}

Colors that work with #9c0cd2

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#E0C0ED
Hairlines and dividers
Muted text#854B9B
Captions on the surface
Accent#6BC507
Second voice, not a rival
Dark variant#5A0779
Hover, pressed, headers
Light variant#F7E7FE
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 #9c0cd2

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black 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#42D20C
Analogous left#390CD2
Analogous right#D20CA5
Split-complement 1#A5D20C
Split-complement 2#0CD239
Triadic 1#D29C0C
Triadic 2#0CD29C
Tetradic#D2390C

RGB percentages

Red61.2%
Green4.7%
Blue82.4%

CMYK percentages

Cyan25.7%
Magenta94.3%
Yellow0.0%
Key (black)17.6%

Color previews

#9c0cd2 text on a black background

contrast 3.40:1

Card sample

#9c0cd2 text on a white background

contrast 6.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9c0cd2

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.

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

#9c0cd2, answered

What color is #9c0cd2?

#9c0cd2 is a dark electric violet, closest to Dark Violet (ΔE2000 1.7). It sits at 284° on the hue wheel with 89% saturation and 44% lightness, which reads as cool.

What is the RGB value of #9c0cd2?

rgb(156, 12, 210) — 156 red, 12 green and 210 blue out of 255, or 61.2% / 4.7% / 82.4% by channel.

Is #9c0cd2 a light or a dark color?

It is a dark color. Relative luminance is 0.1198 and perceived brightness is 44%, so white text on it reaches 6.18:1.

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

White. It scores 6.18:1 against #9c0cd2, versus 3.40:1 for black — AA at any size.

What is the complementary color of #9c0cd2?

#42D20C sits directly opposite on the wheel. Softer options are the split-complements #A5D20C and #0CD239, which give the same contrast with far less vibration.

What colors go well with #9c0cd2?

For interface work: #F9F4FA as the surface, #E0C0ED for borders, #854B9B for secondary text, #6BC507 as an accent and #5A0779 for hover and pressed states. For a palette, the analogous pair #390CD2 and #D20CA5 stays calm, while #42D20C is the loudest partner.

What is #9c0cd2 in CMYK for printing?

cmyk(26%, 94%, 0%, 18%). 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 #9c0cd2 warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D20CBF; nudged cooler, #530AD4.

Work with #9c0cd2 in the Color Lab