Skip to content

#972df4

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

RGB
151, 45, 244
HSL
272°, 90%, 57%
CMYK
38, 82, 0, 4
Luminance
0.1499

At a glance

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

Hex
#972df4
Hue
272°
violet
Saturation
90%
electric
Lightness
57%
balanced
Brightness
96%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1499
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.25:1
Closest name
Blue Violet
ΔE2000 3.4
Where it sits
Hue272° of 360°
Saturation90%
Lightness57%
Temperature
Warm ← → Cool66% 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#972df4
RGBrgb(151, 45, 244)
HSLhsl(272, 90%, 57%)
CMYKcmyk(38%, 82%, 0%, 4%)
LABlab(45.6 74.9 -79.3)
LCHlch(45.6 109.1 313.4)
OKLCHoklch(0.566 0.267 302.0)
Decimal9907700
Display P3color(display-p3 0.592 0.176 0.957)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#972df4 on white: 5.25:1
AA ✓ pass · AA-large · AAA
Aa
#972df4 on black: 4.00:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006BF9
deuteranopia · #006BF0
tritanopia · #826694

Color scale — 50 to 950

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

#F8F2FD
#F0E5FB
#E0C3F8
#CA94F9
#B05FF7
#972df4
#820CE9
#6C0AC2
#56089B
#410B70
#280746
Base = 500Lightest = 50 · #F8F2FDDarkest = 950 · #280746
:root {
  --brand-50: #F8F2FD;
  --brand-100: #F0E5FB;
  --brand-200: #E0C3F8;
  --brand-300: #CA94F9;
  --brand-400: #B05FF7;
  --brand-500: #972df4;
  --brand-600: #820CE9;
  --brand-700: #6C0AC2;
  --brand-800: #56089B;
  --brand-900: #410B70;
  --brand-950: #280746;
  --brand: #972df4;
  --brand-ink: #ffffff;
}

Colors that work with #972df4

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#754B9B
Captions on the surface
Accent#90C606
Second voice, not a rival
Dark variant#440679
Hover, pressed, headers
Light variant#F3E7FE
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 #972df4

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#8AF42D
Analogous left#342DF4
Analogous right#F42DED
Split-complement 1#EDF42D
Split-complement 2#2DF434
Triadic 1#F4972D
Triadic 2#2DF497
Tetradic#F4342D

RGB percentages

Red59.2%
Green17.6%
Blue95.7%

CMYK percentages

Cyan38.1%
Magenta81.6%
Yellow0.0%
Key (black)4.3%

Color previews

#972df4 text on a black background

contrast 4.00:1

Card sample

#972df4 text on a white background

contrast 5.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #972df4;
Background color
Panel with #972df4 background
background-color: #972df4;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #972df4;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(151, 45, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(151, 45, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #972df4;
background: linear-gradient(135deg, #972df4, #F42DCC);

Monochromatic scale

Palettes built from #972df4

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.

#972df4 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.

#972df4, answered

What color is #972df4?

#972df4 is a balanced electric violet, closest to Blue Violet (ΔE2000 3.4). It sits at 272° on the hue wheel with 90% saturation and 57% lightness, which reads as cool.

What is the RGB value of #972df4?

rgb(151, 45, 244) — 151 red, 45 green and 244 blue out of 255, or 59.2% / 17.6% / 95.7% by channel.

Is #972df4 a light or a dark color?

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

Should I use black or white text on #972df4?

White. It scores 5.25:1 against #972df4, versus 4.00:1 for black — AA at any size.

What is the complementary color of #972df4?

#8AF42D sits directly opposite on the wheel. Softer options are the split-complements #EDF42D and #2DF434, which give the same contrast with far less vibration.

What colors go well with #972df4?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #754B9B for secondary text, #90C606 as an accent and #440679 for hover and pressed states. For a palette, the analogous pair #342DF4 and #F42DED stays calm, while #8AF42D is the loudest partner.

What is #972df4 in CMYK for printing?

cmyk(38%, 82%, 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 #972df4 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 #E02DF4; nudged cooler, #4D2BF6.

Work with #972df4 in the Color Lab