Skip to content

#9d2dfe

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

RGB
157, 45, 254
HSL
272°, 99%, 59%
CMYK
38, 82, 0, 0
Luminance
0.1620

At a glance

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

Hex
#9d2dfe
Hue
272°
violet
Saturation
99%
electric
Lightness
59%
balanced
Brightness
100%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1620
WCAG relative
Temperature
Cool
65/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.95:1
Closest name
Blue Violet
ΔE2000 5.1
Where it sits
Hue272° of 360°
Saturation99%
Lightness59%
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#9d2dfe
RGBrgb(157, 45, 254)
HSLhsl(272, 99%, 59%)
CMYKcmyk(38%, 82%, 0%, 0%)
LABlab(47.2 77.9 -82.2)
LCHlch(47.2 113.2 313.5)
OKLCHoklch(0.581 0.277 302.0)
Decimal10300926
Display P3color(display-p3 0.616 0.176 0.996)

Copy-ready code

/* CSS */
color: #9d2dfe;
background-color: #9d2dfe;
/* Tailwind (arbitrary) */
class="text-[#9d2dfe] bg-[#9d2dfe]"
/* SCSS */
$brand: #9d2dfe;
/* SwiftUI */
Color(red: 0.616, green: 0.176, blue: 0.996)
/* Android */
Color.parseColor("#9d2dfe")
/* Flutter */
Color(0xFF9D2DFE)
/* Python / OpenCV (BGR) */
(254, 45, 157)

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

Accessibility — WCAG contrast

Aa
#9d2dfe on white: 4.95:1
AA ✓ pass · AA-large · AAA
Aa
#9d2dfe on black: 4.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006FFF
deuteranopia · #006FFA
tritanopia · #876A9A

Color scale — 50 to 950

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

#F8F1FE
#F1E3FC
#E0C0FB
#CB8FFE
#B157FE
#9d2dfe
#8301F4
#6D01CB
#5801A2
#410575
#290349
Base = 500Lightest = 50 · #F8F1FEDarkest = 950 · #290349
:root {
  --brand-50: #F8F1FE;
  --brand-100: #F1E3FC;
  --brand-200: #E0C0FB;
  --brand-300: #CB8FFE;
  --brand-400: #B157FE;
  --brand-500: #9d2dfe;
  --brand-600: #8301F4;
  --brand-700: #6D01CB;
  --brand-800: #5801A2;
  --brand-900: #410575;
  --brand-950: #290349;
  --brand: #9d2dfe;
  --brand-ink: #ffffff;
}

Colors that work with #9d2dfe

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#D8C0ED
Hairlines and dividers
Muted text#764B9B
Captions on the surface
Accent#91CC00
Second voice, not a rival
Dark variant#44017F
Hover, pressed, headers
Light variant#F3E6FF
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 #9d2dfe

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#8EFE2D
Analogous left#342DFE
Analogous right#FE2DF6
Split-complement 1#F6FE2D
Split-complement 2#2DFE34
Triadic 1#FE9D2D
Triadic 2#2DFE9D
Tetradic#FE342D

RGB percentages

Red61.6%
Green17.6%
Blue99.6%

CMYK percentages

Cyan38.2%
Magenta82.3%
Yellow0.0%
Key (black)0.4%

Color previews

#9d2dfe text on a black background

contrast 4.24:1

Card sample

#9d2dfe text on a white background

contrast 4.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9d2dfe

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.

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

#9d2dfe, answered

What color is #9d2dfe?

#9d2dfe is a balanced electric violet, closest to Blue Violet (ΔE2000 5.1). It sits at 272° on the hue wheel with 99% saturation and 59% lightness, which reads as cool.

What is the RGB value of #9d2dfe?

rgb(157, 45, 254) — 157 red, 45 green and 254 blue out of 255, or 61.6% / 17.6% / 99.6% by channel.

Is #9d2dfe a light or a dark color?

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

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

White. It scores 4.95:1 against #9d2dfe, versus 4.24:1 for black — AA at any size.

What is the complementary color of #9d2dfe?

#8EFE2D sits directly opposite on the wheel. Softer options are the split-complements #F6FE2D and #2DFE34, which give the same contrast with far less vibration.

What colors go well with #9d2dfe?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #764B9B for secondary text, #91CC00 as an accent and #44017F for hover and pressed states. For a palette, the analogous pair #342DFE and #FE2DF6 stays calm, while #8EFE2D is the loudest partner.

What is #9d2dfe in CMYK for printing?

cmyk(38%, 82%, 0%, 0%). 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 #9d2dfe 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 #EA2DFE; nudged cooler, #502CFF.

Work with #9d2dfe in the Color Lab