Skip to content

#9c0dfd

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

RGB
156, 13, 253
HSL
276°, 98%, 52%
CMYK
38, 95, 0, 1
Luminance
0.1445

At a glance

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

Hex
#9c0dfd
Hue
276°
violet
Saturation
98%
electric
Lightness
52%
balanced
Brightness
99%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1445
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.40:1
Closest name
Blue Violet
ΔE2000 3.9
Where it sits
Hue276° of 360°
Saturation98%
Lightness52%
Temperature
Warm ← → Cool63% 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#9c0dfd
RGBrgb(156, 13, 253)
HSLhsl(276, 98%, 52%)
CMYKcmyk(38%, 95%, 0%, 1%)
LABlab(44.9 83.9 -85.5)
LCHlch(44.9 119.8 314.5)
OKLCHoklch(0.564 0.292 303.0)
Decimal10227197
Display P3color(display-p3 0.612 0.051 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9c0dfd on white: 5.40:1
AA ✓ pass · AA-large · AAA
Aa
#9c0dfd on black: 3.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0068FF
deuteranopia · #0069F9
tritanopia · #876296

Color scale — 50 to 950

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

#F9F1FE
#F2E3FC
#E4C1FB
#D290FE
#BB58FE
#9c0dfd
#9202F3
#7902CA
#6101A2
#480675
#2D0449
Base = 500Lightest = 50 · #F9F1FEDarkest = 950 · #2D0449
:root {
  --brand-50: #F9F1FE;
  --brand-100: #F2E3FC;
  --brand-200: #E4C1FB;
  --brand-300: #D290FE;
  --brand-400: #BB58FE;
  --brand-500: #9c0dfd;
  --brand-600: #9202F3;
  --brand-700: #7902CA;
  --brand-800: #6101A2;
  --brand-900: #480675;
  --brand-950: #2D0449;
  --brand: #9c0dfd;
  --brand-ink: #ffffff;
}

Colors that work with #9c0dfd

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#DBC0ED
Hairlines and dividers
Muted text#7B4B9B
Captions on the surface
Accent#85CC00
Second voice, not a rival
Dark variant#4C017E
Hover, pressed, headers
Light variant#F5E6FF
Selected rows, tints
Dark surface#1E1424
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 #9c0dfd

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#6EFD0D
Analogous left#240DFD
Analogous right#FD0DE6
Split-complement 1#E6FD0D
Split-complement 2#0DFD24
Triadic 1#FD9C0D
Triadic 2#0DFD9C
Tetradic#FD240D

RGB percentages

Red61.2%
Green5.1%
Blue99.2%

CMYK percentages

Cyan38.3%
Magenta94.9%
Yellow0.0%
Key (black)0.8%

Color previews

#9c0dfd text on a black background

contrast 3.89:1

Card sample

#9c0dfd text on a white background

contrast 5.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9c0dfd

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.

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

#9c0dfd, answered

What color is #9c0dfd?

#9c0dfd is a balanced electric violet, closest to Blue Violet (ΔE2000 3.9). It sits at 276° on the hue wheel with 98% saturation and 52% lightness, which reads as cool.

What is the RGB value of #9c0dfd?

rgb(156, 13, 253) — 156 red, 13 green and 253 blue out of 255, or 61.2% / 5.1% / 99.2% by channel.

Is #9c0dfd a light or a dark color?

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

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

White. It scores 5.40:1 against #9c0dfd, versus 3.89:1 for black — AA at any size.

What is the complementary color of #9c0dfd?

#6EFD0D sits directly opposite on the wheel. Softer options are the split-complements #E6FD0D and #0DFD24, which give the same contrast with far less vibration.

What colors go well with #9c0dfd?

For interface work: #F8F4FA as the surface, #DBC0ED for borders, #7B4B9B for secondary text, #85CC00 as an accent and #4C017E for hover and pressed states. For a palette, the analogous pair #240DFD and #FD0DE6 stays calm, while #6EFD0D is the loudest partner.

What is #9c0dfd in CMYK for printing?

cmyk(38%, 95%, 0%, 1%). 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 #9c0dfd warm or cool?

Cool — it scores 63 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F40DFD; nudged cooler, #430BFF.

Work with #9c0dfd in the Color Lab