Skip to content

#9730ec

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

RGB
151, 48, 236
HSL
273°, 83%, 56%
CMYK
36, 80, 0, 8
Luminance
0.1475

At a glance

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

Hex
#9730ec
Hue
273°
violet
Saturation
83%
electric
Lightness
56%
balanced
Brightness
93%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1475
WCAG relative
Temperature
Cool
65/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.32:1
Closest name
Blue Violet
ΔE2000 3
Where it sits
Hue273° of 360°
Saturation83%
Lightness56%
Temperature
Warm ← → Cool65% 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#9730ec
RGBrgb(151, 48, 236)
HSLhsl(273, 83%, 56%)
CMYKcmyk(36%, 80%, 0%, 8%)
LABlab(45.3 72.3 -75.3)
LCHlch(45.3 104.4 313.8)
OKLCHoklch(0.561 0.258 303.5)
Decimal9908460
Display P3color(display-p3 0.592 0.188 0.925)

Copy-ready code

/* CSS */
color: #9730ec;
background-color: #9730ec;
/* Tailwind (arbitrary) */
class="text-[#9730ec] bg-[#9730ec]"
/* SCSS */
$brand: #9730ec;
/* SwiftUI */
Color(red: 0.592, green: 0.188, blue: 0.925)
/* Android */
Color.parseColor("#9730ec")
/* Flutter */
Color(0xFF9730EC)
/* Python / OpenCV (BGR) */
(236, 48, 151)

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

Accessibility — WCAG contrast

Aa
#9730ec on white: 5.32:1
AA ✓ pass · AA-large · AAA
Aa
#9730ec on black: 3.95:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0069F1
deuteranopia · #006BE8
tritanopia · #856490

Color scale — 50 to 950

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

#F8F2FC
#F1E6FA
#E0C6F6
#CB98F6
#B265F1
#9730ec
#8415E0
#6E11BB
#580E95
#420E6C
#290944
Base = 500Lightest = 50 · #F8F2FCDarkest = 950 · #290944
:root {
  --brand-50: #F8F2FC;
  --brand-100: #F1E6FA;
  --brand-200: #E0C6F6;
  --brand-300: #CB98F6;
  --brand-400: #B265F1;
  --brand-500: #9730ec;
  --brand-600: #8415E0;
  --brand-700: #6E11BB;
  --brand-800: #580E95;
  --brand-900: #420E6C;
  --brand-950: #290944;
  --brand: #9730ec;
  --brand-ink: #ffffff;
}

Colors that work with #9730ec

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#D8C0ED
Hairlines and dividers
Muted text#774B9B
Captions on the surface
Accent#8ABF0D
Second voice, not a rival
Dark variant#450B75
Hover, pressed, headers
Light variant#F3E8FD
Selected rows, tints
Dark surface#1D1424
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 #9730ec

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#85EC30
Analogous left#3930EC
Analogous right#EC30E3
Split-complement 1#E3EC30
Split-complement 2#30EC39
Triadic 1#EC9730
Triadic 2#30EC97
Tetradic#EC3930

RGB percentages

Red59.2%
Green18.8%
Blue92.5%

CMYK percentages

Cyan36.0%
Magenta79.7%
Yellow0.0%
Key (black)7.5%

Color previews

#9730ec text on a black background

contrast 3.95:1

Card sample

#9730ec text on a white background

contrast 5.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #9730ec;
Background color
Panel with #9730ec background
background-color: #9730ec;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #9730ec;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(151, 48, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(151, 48, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9730ec;
background: linear-gradient(135deg, #9730ec, #EC30C4);

Monochromatic scale

Palettes built from #9730ec

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.

#9730ec 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.

#9730ec, answered

What color is #9730ec?

#9730ec is a balanced electric violet, closest to Blue Violet (ΔE2000 3). It sits at 273° on the hue wheel with 83% saturation and 56% lightness, which reads as cool.

What is the RGB value of #9730ec?

rgb(151, 48, 236) — 151 red, 48 green and 236 blue out of 255, or 59.2% / 18.8% / 92.5% by channel.

Is #9730ec a light or a dark color?

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

Should I use black or white text on #9730ec?

White. It scores 5.32:1 against #9730ec, versus 3.95:1 for black — AA at any size.

What is the complementary color of #9730ec?

#85EC30 sits directly opposite on the wheel. Softer options are the split-complements #E3EC30 and #30EC39, which give the same contrast with far less vibration.

What colors go well with #9730ec?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #774B9B for secondary text, #8ABF0D as an accent and #450B75 for hover and pressed states. For a palette, the analogous pair #3930EC and #EC30E3 stays calm, while #85EC30 is the loudest partner.

What is #9730ec in CMYK for printing?

cmyk(36%, 80%, 0%, 8%). 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 #9730ec warm or cool?

Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DC30EC; nudged cooler, #512EEE.

Work with #9730ec in the Color Lab