Skip to content

#9f2cdb

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

RGB
159, 44, 219
HSL
279°, 71%, 52%
CMYK
27, 80, 0, 14
Luminance
0.1429

At a glance

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

Hex
#9f2cdb
Hue
279°
violet
Saturation
71%
vivid
Lightness
52%
balanced
Brightness
86%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1429
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
5.44:1
Closest name
Dark Orchid
ΔE2000 2.1
Where it sits
Hue279° of 360°
Saturation71%
Lightness52%
Temperature
Warm ← → Cool61% 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#9f2cdb
RGBrgb(159, 44, 219)
HSLhsl(279, 71%, 52%)
CMYKcmyk(27%, 80%, 0%, 14%)
LABlab(44.6 71.2 -66.6)
LCHlch(44.6 97.5 316.9)
OKLCHoklch(0.555 0.248 310.2)
Decimal10431707
Display P3color(display-p3 0.624 0.173 0.859)

Copy-ready code

/* CSS */
color: #9f2cdb;
background-color: #9f2cdb;
/* Tailwind (arbitrary) */
class="text-[#9f2cdb] bg-[#9f2cdb]"
/* SCSS */
$brand: #9f2cdb;
/* SwiftUI */
Color(red: 0.624, green: 0.173, blue: 0.859)
/* Android */
Color.parseColor("#9f2cdb")
/* Flutter */
Color(0xFF9F2CDB)
/* Python / OpenCV (BGR) */
(219, 44, 159)

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

Accessibility — WCAG contrast

Aa
#9f2cdb on white: 5.44:1
AA ✓ pass · AA-large · AAA
Aa
#9f2cdb on black: 3.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0065E0
deuteranopia · #006BD8
tritanopia · #965985

Color scale — 50 to 950

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

#F9F3FC
#F2E7F8
#E4C9F3
#D39FEF
#BE6FE7
#A83FDE
#9f2cdb
#7D1EAE
#64188B
#4A1565
#2E0D3F
Base = 600Lightest = 50 · #F9F3FCDarkest = 950 · #2E0D3F
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F2E7F8;
  --brand-200: #E4C9F3;
  --brand-300: #D39FEF;
  --brand-400: #BE6FE7;
  --brand-500: #A83FDE;
  --brand-600: #9f2cdb;
  --brand-700: #7D1EAE;
  --brand-800: #64188B;
  --brand-900: #4A1565;
  --brand-950: #2E0D3F;
  --brand: #9f2cdb;
  --brand-ink: #ffffff;
}

Colors that work with #9f2cdb

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#DDC0ED
Hairlines and dividers
Muted text#7F4B9B
Captions on the surface
Accent#75B21A
Second voice, not a rival
Dark variant#4E136D
Hover, pressed, headers
Light variant#F5E9FB
Selected rows, tints
Dark surface#1F1424
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 #9f2cdb

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#68DB2C
Analogous left#472CDB
Analogous right#DB2CC0
Split-complement 1#C0DB2C
Split-complement 2#2CDB47
Triadic 1#DB9F2C
Triadic 2#2CDB9F
Tetradic#DB472C

RGB percentages

Red62.4%
Green17.3%
Blue85.9%

CMYK percentages

Cyan27.4%
Magenta79.9%
Yellow0.0%
Key (black)14.1%

Color previews

#9f2cdb text on a black background

contrast 3.86:1

Card sample

#9f2cdb text on a white background

contrast 5.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(159, 44, 219, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 44, 219, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9f2cdb;
background: linear-gradient(135deg, #9f2cdb, #DB2CA2);

Monochromatic scale

Palettes built from #9f2cdb

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.

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

#9f2cdb, answered

What color is #9f2cdb?

#9f2cdb is a balanced vivid violet, closest to Dark Orchid (ΔE2000 2.1). It sits at 279° on the hue wheel with 71% saturation and 52% lightness, which reads as cool.

What is the RGB value of #9f2cdb?

rgb(159, 44, 219) — 159 red, 44 green and 219 blue out of 255, or 62.4% / 17.3% / 85.9% by channel.

Is #9f2cdb a light or a dark color?

It is a dark color. Relative luminance is 0.1429 and perceived brightness is 47%, so white text on it reaches 5.44:1.

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

White. It scores 5.44:1 against #9f2cdb, versus 3.86:1 for black — AA at any size.

What is the complementary color of #9f2cdb?

#68DB2C sits directly opposite on the wheel. Softer options are the split-complements #C0DB2C and #2CDB47, which give the same contrast with far less vibration.

What colors go well with #9f2cdb?

For interface work: #F8F4FA as the surface, #DDC0ED for borders, #7F4B9B for secondary text, #75B21A as an accent and #4E136D for hover and pressed states. For a palette, the analogous pair #472CDB and #DB2CC0 stays calm, while #68DB2C is the loudest partner.

What is #9f2cdb in CMYK for printing?

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

Is #9f2cdb warm or cool?

Cool — it scores 61 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DB2CD7; nudged cooler, #5E2ADE.

Work with #9f2cdb in the Color Lab