#9f3afd
a balanced, electric violet · cool · closest name: Blue Violet
At a glance
Every number on this page in one read: what #9f3afd is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #9f3afd |
| RGB | rgb(159, 58, 253) |
| HSL | hsl(271, 98%, 61%) |
| CMYK | cmyk(37%, 77%, 0%, 1%) |
| LAB | lab(48.9 73.7 -78.9) |
| LCH | lch(48.9 108.0 313.0) |
| OKLCH | oklch(0.593 0.266 302.1) |
| Decimal | 10435325 |
| Display P3 | color(display-p3 0.624 0.227 0.992) |
Copy-ready code
/* CSS */
color: #9f3afd;
background-color: #9f3afd;
/* Tailwind (arbitrary) */
class="text-[#9f3afd] bg-[#9f3afd]"
/* SCSS */
$brand: #9f3afd;
/* SwiftUI */
Color(red: 0.624, green: 0.227, blue: 0.992)
/* Android */
Color.parseColor("#9f3afd")
/* Flutter */
Color(0xFF9F3AFD)
/* Python / OpenCV (BGR) */
(253, 58, 159)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #9f3afd 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.
:root {
--brand-50: #F8F1FD;
--brand-100: #F0E3FC;
--brand-200: #DFC1FB;
--brand-300: #C990FE;
--brand-400: #AE58FD;
--brand-500: #9f3afd;
--brand-600: #7F02F2;
--brand-700: #6A02CA;
--brand-800: #5502A2;
--brand-900: #3F0674;
--brand-950: #280449;
--brand: #9f3afd;
--brand-ink: #ffffff;
}Colors that work with #9f3afd
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #9f3afd
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠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 | #98FD3A | Directly opposite — maximum tension | |
| Analogous left | #3E3AFD | Neighbour, quieter | |
| Analogous right | #FD3AF9 | Neighbour, quieter | |
| Split-complement 1 | #F9FD3A | Contrast without the clash | |
| Split-complement 2 | #3AFD3E | Contrast without the clash | |
| Triadic 1 | #FD9F3A | Even thirds — balanced and loud | |
| Triadic 2 | #3AFD9F | Even thirds — balanced and loud | |
| Tetradic | #FD3E3A | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#9f3afd text on a black background
contrast 4.50:1
#9f3afd text on a white background
contrast 4.67:1
CSS3 live lab
The quick brown fox
color: #9f3afd;
background-color: #9f3afd;
Glowing headline
text-shadow: 2px 2px 8px #9f3afd;
Soft neon halo
text-shadow: 0 0 14px rgba(159, 58, 253, 0.45);
box-shadow: 0 12px 32px -8px rgba(159, 58, 253, 0.45);
border: 3px solid #9f3afd; background: linear-gradient(135deg, #9f3afd, #FD3AD9);
Monochromatic scale
Palettes built from #9f3afd
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.
Closest color with a full write-up: Iris (#5a4fcf) — ΔE2000 12.5 away, with its history, psychology and brand usage.
#9f3afd in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#9f3afd, answered
What color is #9f3afd?
#9f3afd is a balanced electric violet, closest to Blue Violet (ΔE2000 6.5). It sits at 271° on the hue wheel with 98% saturation and 61% lightness, which reads as cool.
What is the RGB value of #9f3afd?
rgb(159, 58, 253) — 159 red, 58 green and 253 blue out of 255, or 62.4% / 22.7% / 99.2% by channel.
Is #9f3afd a light or a dark color?
It is a dark color. Relative luminance is 0.1749 and perceived brightness is 51%, so white text on it reaches 4.67:1.
Should I use black or white text on #9f3afd?
White. It scores 4.67:1 against #9f3afd, versus 4.50:1 for black — AA at any size.
What is the complementary color of #9f3afd?
#98FD3A sits directly opposite on the wheel. Softer options are the split-complements #F9FD3A and #3AFD3E, which give the same contrast with far less vibration.
What colors go well with #9f3afd?
For interface work: #F7F4FA as the surface, #D7C0ED for borders, #744B9B for secondary text, #96CC00 as an accent and #42017E for hover and pressed states. For a palette, the analogous pair #3E3AFD and #FD3AF9 stays calm, while #98FD3A is the loudest partner.
What is #9f3afd in CMYK for printing?
cmyk(37%, 77%, 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 #9f3afd warm or cool?
Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E73AFD; nudged cooler, #5638FF.