Skip to content

#9801df

a dark, electric violet · cool · closest name: Dark Violet

RGB
152, 1, 223
HSL
281°, 99%, 44%
CMYK
32, 100, 0, 13
Luminance
0.1202

At a glance

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

Hex
#9801df
Hue
281°
violet
Saturation
99%
electric
Lightness
44%
dark
Brightness
87%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1202
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Electric
Best ink
White
6.17:1
Closest name
Dark Violet
ΔE2000 1.8
Where it sits
Hue281° of 360°
Saturation99%
Lightness44%
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#9801df
RGBrgb(152, 1, 223)
HSLhsl(281, 99%, 44%)
CMYKcmyk(32%, 100%, 0%, 13%)
LABlab(41.3 78.9 -74.5)
LCHlch(41.3 108.5 316.7)
OKLCHoklch(0.531 0.270 308.3)
Decimal9961951
Display P3color(display-p3 0.596 0.004 0.875)

Copy-ready code

/* CSS */
color: #9801df;
background-color: #9801df;
/* Tailwind (arbitrary) */
class="text-[#9801df] bg-[#9801df]"
/* SCSS */
$brand: #9801df;
/* SwiftUI */
Color(red: 0.596, green: 0.004, blue: 0.875)
/* Android */
Color.parseColor("#9801df")
/* Flutter */
Color(0xFF9801DF)
/* Python / OpenCV (BGR) */
(223, 1, 152)

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

Accessibility — WCAG contrast

Aa
#9801df on white: 6.17:1
AA ✓ pass · AA-large · AAA
Aa
#9801df on black: 3.40:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005DE4
deuteranopia · #0062DB
tritanopia · #8C5283

Color scale — 50 to 950

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

#FAF1FE
#F4E3FC
#E8C0FB
#DB8FFE
#C957FE
#B720FE
#A601F4
#9801df
#6F01A2
#510575
#330349
Base = 700Lightest = 50 · #FAF1FEDarkest = 950 · #330349
:root {
  --brand-50: #FAF1FE;
  --brand-100: #F4E3FC;
  --brand-200: #E8C0FB;
  --brand-300: #DB8FFE;
  --brand-400: #C957FE;
  --brand-500: #B720FE;
  --brand-600: #A601F4;
  --brand-700: #9801df;
  --brand-800: #6F01A2;
  --brand-900: #510575;
  --brand-950: #330349;
  --brand: #9801df;
  --brand-ink: #ffffff;
}

Colors that work with #9801df

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#DEC0ED
Hairlines and dividers
Muted text#814B9B
Captions on the surface
Accent#75CC00
Second voice, not a rival
Dark variant#56017F
Hover, pressed, headers
Light variant#F7E6FF
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 #9801df

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#48DF01
Analogous left#2901DF
Analogous right#DF01B7
Split-complement 1#B7DF01
Split-complement 2#01DF29
Triadic 1#DF9801
Triadic 2#01DF98
Tetradic#DF2901

RGB percentages

Red59.6%
Green0.4%
Blue87.5%

CMYK percentages

Cyan31.8%
Magenta99.6%
Yellow0.0%
Key (black)12.5%

Color previews

#9801df text on a black background

contrast 3.40:1

Card sample

#9801df text on a white background

contrast 6.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #9801df;
Background color
Panel with #9801df background
background-color: #9801df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #9801df;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(152, 1, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(152, 1, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9801df;
background: linear-gradient(135deg, #9801df, #DF0192);

Monochromatic scale

Palettes built from #9801df

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.

#9801df 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.

#9801df, answered

What color is #9801df?

#9801df is a dark electric violet, closest to Dark Violet (ΔE2000 1.8). It sits at 281° on the hue wheel with 99% saturation and 44% lightness, which reads as cool.

What is the RGB value of #9801df?

rgb(152, 1, 223) — 152 red, 1 green and 223 blue out of 255, or 59.6% / 0.4% / 87.5% by channel.

Is #9801df a light or a dark color?

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

Should I use black or white text on #9801df?

White. It scores 6.17:1 against #9801df, versus 3.40:1 for black — AA at any size.

What is the complementary color of #9801df?

#48DF01 sits directly opposite on the wheel. Softer options are the split-complements #B7DF01 and #01DF29, which give the same contrast with far less vibration.

What colors go well with #9801df?

For interface work: #F8F4FA as the surface, #DEC0ED for borders, #814B9B for secondary text, #75CC00 as an accent and #56017F for hover and pressed states. For a palette, the analogous pair #2901DF and #DF01B7 stays calm, while #48DF01 is the loudest partner.

What is #9801df in CMYK for printing?

cmyk(32%, 100%, 0%, 13%). 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 #9801df 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 #DF01D5; nudged cooler, #4600E0.

Work with #9801df in the Color Lab