Skip to content

#9802af

a dark, electric magenta / pink · neutral · closest name: Dark Violet

RGB
152, 2, 175
HSL
292°, 98%, 35%
CMYK
13, 99, 0, 31
Luminance
0.0981

At a glance

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

Hex
#9802af
Hue
292°
magenta / pink
Saturation
98%
electric
Lightness
35%
dark
Brightness
69%
HSV value
Perceived
40%
weighted brightness
Luminance
0.0981
WCAG relative
Temperature
Neutral
54/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
7.09:1
Closest name
Dark Violet
ΔE2000 5.4
Where it sits
Hue292° of 360°
Saturation98%
Lightness35%
Temperature
Warm ← → Cool54% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#9802af
RGBrgb(152, 2, 175)
HSLhsl(292, 98%, 35%)
CMYKcmyk(13%, 99%, 0%, 31%)
LABlab(37.5 70.2 -52.6)
LCHlch(37.5 87.7 323.2)
OKLCHoklch(0.493 0.235 320.9)
Decimal9962159
Display P3color(display-p3 0.596 0.008 0.686)

Copy-ready code

/* CSS */
color: #9802af;
background-color: #9802af;
/* Tailwind (arbitrary) */
class="text-[#9802af] bg-[#9802af]"
/* SCSS */
$brand: #9802af;
/* SwiftUI */
Color(red: 0.596, green: 0.008, blue: 0.686)
/* Android */
Color.parseColor("#9802af")
/* Flutter */
Color(0xFF9802AF)
/* Python / OpenCV (BGR) */
(175, 2, 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 #9802af · 7.09:1
Use #ffffffAAA at every size.
Aa
White text · 7.09:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.96:1
AA fail · AA large fail · AAA fail
Reading the other direction: #9802af as text scores 7.09:1 on white and 2.96:1 on black.

Accessibility — WCAG contrast

Aa
#9802af on white: 7.09:1
AA ✓ pass · AA-large · AAA
Aa
#9802af on black: 2.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004FB3
deuteranopia · #255DAC
tritanopia · #993866

Color scale — 50 to 950

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

#FCF1FD
#F9E4FC
#F3C1FB
#EF90FE
#E759FD
#DF21FC
#D203F2
#AF02CA
#9802af
#660674
#3F0449
Base = 800Lightest = 50 · #FCF1FDDarkest = 950 · #3F0449
:root {
  --brand-50: #FCF1FD;
  --brand-100: #F9E4FC;
  --brand-200: #F3C1FB;
  --brand-300: #EF90FE;
  --brand-400: #E759FD;
  --brand-500: #DF21FC;
  --brand-600: #D203F2;
  --brand-700: #AF02CA;
  --brand-800: #9802af;
  --brand-900: #660674;
  --brand-950: #3F0449;
  --brand: #9802af;
  --brand-ink: #ffffff;
}

Colors that work with #9802af

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#FAF4FA
Tinted page background
Border#E7C0ED
Hairlines and dividers
Muted text#904B9B
Captions on the surface
Accent#4FCC00
Second voice, not a rival
Dark variant#6D017E
Hover, pressed, headers
Light variant#FBE6FF
Selected rows, tints
Dark surface#221424
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 #9802af

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
  • Text on black or near-black surfaces
  • 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#19AF02
Analogous left#4102AF
Analogous right#AF0270
Split-complement 1#70AF02
Split-complement 2#02AF41
Triadic 1#AF9802
Triadic 2#02AF98
Tetradic#AF4102

RGB percentages

Red59.6%
Green0.8%
Blue68.6%

CMYK percentages

Cyan13.1%
Magenta98.9%
Yellow0.0%
Key (black)31.4%

Color previews

#9802af text on a black background

contrast 2.96:1

Card sample

#9802af text on a white background

contrast 7.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #9802af;
Background color
Panel with #9802af background
background-color: #9802af;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #9802af;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(152, 2, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(152, 2, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9802af;
background: linear-gradient(135deg, #9802af, #AF0253);

Monochromatic scale

Palettes built from #9802af

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.

#9802af in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#9802af, answered

What color is #9802af?

#9802af is a dark electric magenta / pink, closest to Dark Violet (ΔE2000 5.4). It sits at 292° on the hue wheel with 98% saturation and 35% lightness, which reads as neutral.

What is the RGB value of #9802af?

rgb(152, 2, 175) — 152 red, 2 green and 175 blue out of 255, or 59.6% / 0.8% / 68.6% by channel.

Is #9802af a light or a dark color?

It is a dark color. Relative luminance is 0.0981 and perceived brightness is 40%, so white text on it reaches 7.09:1.

Should I use black or white text on #9802af?

White. It scores 7.09:1 against #9802af, versus 2.96:1 for black — AAA at any size.

What is the complementary color of #9802af?

#19AF02 sits directly opposite on the wheel. Softer options are the split-complements #70AF02 and #02AF41, which give the same contrast with far less vibration.

What colors go well with #9802af?

For interface work: #FAF4FA as the surface, #E7C0ED for borders, #904B9B for secondary text, #4FCC00 as an accent and #6D017E for hover and pressed states. For a palette, the analogous pair #4102AF and #AF0270 stays calm, while #19AF02 is the loudest partner.

What is #9802af in CMYK for printing?

cmyk(13%, 99%, 0%, 31%). 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 #9802af warm or cool?

Neutral — it scores 54 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF0287; nudged cooler, #5800B1.

Work with #9802af in the Color Lab