Skip to content

#9a2dbe

a balanced, vivid violet · cool · closest name: Dark Orchid

RGB
154, 45, 190
HSL
285°, 62%, 46%
CMYK
19, 76, 0, 26
Luminance
0.1246

At a glance

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

Hex
#9a2dbe
Hue
285°
violet
Saturation
62%
vivid
Lightness
46%
balanced
Brightness
75%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1246
WCAG relative
Temperature
Cool
58/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
6.01:1
Closest name
Dark Orchid
ΔE2000 2.4
Where it sits
Hue285° of 360°
Saturation62%
Lightness46%
Temperature
Warm ← → Cool58% 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#9a2dbe
RGBrgb(154, 45, 190)
HSLhsl(285, 62%, 46%)
CMYKcmyk(19%, 76%, 0%, 26%)
LABlab(42.0 64.3 -54.3)
LCHlch(42.0 84.1 319.8)
OKLCHoklch(0.528 0.220 316.0)
Decimal10104254
Display P3color(display-p3 0.604 0.176 0.745)

Copy-ready code

/* CSS */
color: #9a2dbe;
background-color: #9a2dbe;
/* Tailwind (arbitrary) */
class="text-[#9a2dbe] bg-[#9a2dbe]"
/* SCSS */
$brand: #9a2dbe;
/* SwiftUI */
Color(red: 0.604, green: 0.176, blue: 0.745)
/* Android */
Color.parseColor("#9a2dbe")
/* Flutter */
Color(0xFF9A2DBE)
/* Python / OpenCV (BGR) */
(190, 45, 154)

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

Accessibility — WCAG contrast

Aa
#9a2dbe on white: 6.01:1
AA ✓ pass · AA-large · AAA
Aa
#9a2dbe on black: 3.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005DC2
deuteranopia · #2B66BB
tritanopia · #974D74

Color scale — 50 to 950

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

#F9F4FB
#F3E8F7
#E7CCF0
#D8A4EA
#C577DF
#B24AD4
#9a2dbe
#8627A5
#6B1F84
#4F1A60
#31113C
Base = 600Lightest = 50 · #F9F4FBDarkest = 950 · #31113C
:root {
  --brand-50: #F9F4FB;
  --brand-100: #F3E8F7;
  --brand-200: #E7CCF0;
  --brand-300: #D8A4EA;
  --brand-400: #C577DF;
  --brand-500: #B24AD4;
  --brand-600: #9a2dbe;
  --brand-700: #8627A5;
  --brand-800: #6B1F84;
  --brand-900: #4F1A60;
  --brand-950: #31113C;
  --brand: #9a2dbe;
  --brand-ink: #ffffff;
}

Colors that work with #9a2dbe

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#E1C0ED
Hairlines and dividers
Muted text#874B9B
Captions on the surface
Accent#66A923
Second voice, not a rival
Dark variant#541867
Hover, pressed, headers
Light variant#F6EAFA
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 #9a2dbe

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#51BE2D
Analogous left#522DBE
Analogous right#BE2D9A
Split-complement 1#9ABE2D
Split-complement 2#2DBE52
Triadic 1#BE9A2D
Triadic 2#2DBE9A
Tetradic#BE522D

RGB percentages

Red60.4%
Green17.6%
Blue74.5%

CMYK percentages

Cyan18.9%
Magenta76.3%
Yellow0.0%
Key (black)25.5%

Color previews

#9a2dbe text on a black background

contrast 3.49:1

Card sample

#9a2dbe text on a white background

contrast 6.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9a2dbe

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.

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

Converts to four-color process without much drama. Proof it anyway.

#9a2dbe, answered

What color is #9a2dbe?

#9a2dbe is a balanced vivid violet, closest to Dark Orchid (ΔE2000 2.4). It sits at 285° on the hue wheel with 62% saturation and 46% lightness, which reads as cool.

What is the RGB value of #9a2dbe?

rgb(154, 45, 190) — 154 red, 45 green and 190 blue out of 255, or 60.4% / 17.6% / 74.5% by channel.

Is #9a2dbe a light or a dark color?

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

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

White. It scores 6.01:1 against #9a2dbe, versus 3.49:1 for black — AA at any size.

What is the complementary color of #9a2dbe?

#51BE2D sits directly opposite on the wheel. Softer options are the split-complements #9ABE2D and #2DBE52, which give the same contrast with far less vibration.

What colors go well with #9a2dbe?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #874B9B for secondary text, #66A923 as an accent and #541867 for hover and pressed states. For a palette, the analogous pair #522DBE and #BE2D9A stays calm, while #51BE2D is the loudest partner.

What is #9a2dbe in CMYK for printing?

cmyk(19%, 76%, 0%, 26%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #9a2dbe warm or cool?

Cool — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BE2DAD; nudged cooler, #642BC0.

Work with #9a2dbe in the Color Lab