Skip to content

#9f1df4

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

RGB
159, 29, 244
HSL
276°, 91%, 54%
CMYK
35, 88, 0, 4
Luminance
0.1478

At a glance

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

Hex
#9f1df4
Hue
276°
violet
Saturation
91%
electric
Lightness
54%
balanced
Brightness
96%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1478
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.31:1
Closest name
Blue Violet
ΔE2000 3.8
Where it sits
Hue276° of 360°
Saturation91%
Lightness54%
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#9f1df4
RGBrgb(159, 29, 244)
HSLhsl(276, 91%, 54%)
CMYKcmyk(35%, 88%, 0%, 4%)
LABlab(45.3 80.0 -79.7)
LCHlch(45.3 113.0 315.1)
OKLCHoklch(0.566 0.279 305.4)
Decimal10427892
Display P3color(display-p3 0.624 0.114 0.957)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9f1df4 on white: 5.31:1
AA ✓ pass · AA-large · AAA
Aa
#9f1df4 on black: 3.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0068F9
deuteranopia · #006BF0
tritanopia · #8F6091

Color scale — 50 to 950

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

#F9F2FD
#F2E5FB
#E3C3F9
#D294FA
#BB5FF7
#9f1df4
#920BE9
#7909C3
#61089C
#480A70
#2D0646
Base = 500Lightest = 50 · #F9F2FDDarkest = 950 · #2D0646
:root {
  --brand-50: #F9F2FD;
  --brand-100: #F2E5FB;
  --brand-200: #E3C3F9;
  --brand-300: #D294FA;
  --brand-400: #BB5FF7;
  --brand-500: #9f1df4;
  --brand-600: #920BE9;
  --brand-700: #7909C3;
  --brand-800: #61089C;
  --brand-900: #480A70;
  --brand-950: #2D0646;
  --brand: #9f1df4;
  --brand-ink: #ffffff;
}

Colors that work with #9f1df4

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#82C705
Second voice, not a rival
Dark variant#4C067A
Hover, pressed, headers
Light variant#F5E7FE
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 #9f1df4

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#72F41D
Analogous left#331DF4
Analogous right#F41DDD
Split-complement 1#DDF41D
Split-complement 2#1DF433
Triadic 1#F49F1D
Triadic 2#1DF49F
Tetradic#F4331D

RGB percentages

Red62.4%
Green11.4%
Blue95.7%

CMYK percentages

Cyan34.8%
Magenta88.1%
Yellow0.0%
Key (black)4.3%

Color previews

#9f1df4 text on a black background

contrast 3.96:1

Card sample

#9f1df4 text on a white background

contrast 5.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9f1df4

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.

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

#9f1df4, answered

What color is #9f1df4?

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

What is the RGB value of #9f1df4?

rgb(159, 29, 244) — 159 red, 29 green and 244 blue out of 255, or 62.4% / 11.4% / 95.7% by channel.

Is #9f1df4 a light or a dark color?

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

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

White. It scores 5.31:1 against #9f1df4, versus 3.96:1 for black — AA at any size.

What is the complementary color of #9f1df4?

#72F41D sits directly opposite on the wheel. Softer options are the split-complements #DDF41D and #1DF433, which give the same contrast with far less vibration.

What colors go well with #9f1df4?

For interface work: #F8F4FA as the surface, #DBC0ED for borders, #7B4B9B for secondary text, #82C705 as an accent and #4C067A for hover and pressed states. For a palette, the analogous pair #331DF4 and #F41DDD stays calm, while #72F41D is the loudest partner.

What is #9f1df4 in CMYK for printing?

cmyk(35%, 88%, 0%, 4%). 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 #9f1df4 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 #EE1DF4; nudged cooler, #4F1BF6.

Work with #9f1df4 in the Color Lab