Skip to content

#976dfe

a light, electric violet · cool · closest name: Medium Purple

RGB
151, 109, 254
HSL
257°, 99%, 71%
CMYK
41, 57, 0, 0
Luminance
0.2467

At a glance

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

Hex
#976dfe
Hue
257°
violet
Saturation
99%
electric
Lightness
71%
light
Brightness
100%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2467
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.93:1
Closest name
Medium Purple
ΔE2000 5.1
Where it sits
Hue257° of 360°
Saturation99%
Lightness71%
Temperature
Warm ← → Cool74% 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#976dfe
RGBrgb(151, 109, 254)
HSLhsl(257, 99%, 71%)
CMYKcmyk(41%, 57%, 0%, 0%)
LABlab(56.8 48.6 -66.7)
LCHlch(56.8 82.5 306.0)
OKLCHoklch(0.648 0.206 293.1)
Decimal9924094
Display P3color(display-p3 0.592 0.427 0.996)

Copy-ready code

/* CSS */
color: #976dfe;
background-color: #976dfe;
/* Tailwind (arbitrary) */
class="text-[#976dfe] bg-[#976dfe]"
/* SCSS */
$brand: #976dfe;
/* SwiftUI */
Color(red: 0.592, green: 0.427, blue: 0.996)
/* Android */
Color.parseColor("#976dfe")
/* Flutter */
Color(0xFF976DFE)
/* Python / OpenCV (BGR) */
(254, 109, 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#000000 on #976dfe · 5.93:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.54:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.93:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #976dfe as text scores 3.54:1 on white and 5.93:1 on black.

Accessibility — WCAG contrast

Aa
#976dfe on white: 3.54:1
AA ✗ fail · AA-large · AAA
Aa
#976dfe on black: 5.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #108AFF
deuteranopia · #2686FB
tritanopia · #7B8DAB

Color scale — 50 to 950

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

#F5F1FE
#EBE3FC
#D2C0FB
#B090FE
#976dfe
#6020FD
#4802F3
#3C01CB
#3001A2
#260675
#180449
Base = 400Lightest = 50 · #F5F1FEDarkest = 950 · #180449
:root {
  --brand-50: #F5F1FE;
  --brand-100: #EBE3FC;
  --brand-200: #D2C0FB;
  --brand-300: #B090FE;
  --brand-400: #976dfe;
  --brand-500: #6020FD;
  --brand-600: #4802F3;
  --brand-700: #3C01CB;
  --brand-800: #3001A2;
  --brand-900: #260675;
  --brand-950: #180449;
  --brand: #976dfe;
  --brand-ink: #000000;
}

Colors that work with #976dfe

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F6F4FA
Tinted page background
Border#CDC0ED
Hairlines and dividers
Muted text#624B9B
Captions on the surface
Accent#C4CC00
Second voice, not a rival
Dark variant#25017F
Hover, pressed, headers
Light variant#EDE6FF
Selected rows, tints
Dark surface#191424
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 #976dfe

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • White 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#D4FE6D
Analogous left#6D8CFE
Analogous right#E06DFE
Split-complement 1#FEE06D
Split-complement 2#8CFE6D
Triadic 1#FE976D
Triadic 2#6DFE97
Tetradic#FE6D8C

RGB percentages

Red59.2%
Green42.7%
Blue99.6%

CMYK percentages

Cyan40.6%
Magenta57.1%
Yellow0.0%
Key (black)0.4%

Color previews

#976dfe text on a black background

contrast 5.93:1

Card sample

#976dfe text on a white background

contrast 3.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #976dfe;
Background color
Panel with #976dfe background
background-color: #976dfe;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #976dfe;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(151, 109, 254, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(151, 109, 254, 0.45);
Border & gradient
Gradient panel
border: 3px solid #976dfe;
background: linear-gradient(135deg, #976dfe, #F86DFE);

Monochromatic scale

Palettes built from #976dfe

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.

#976dfe 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
SurfacesBadgesHighlightsEmpty states
Print note

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

#976dfe, answered

What color is #976dfe?

#976dfe is a light electric violet, closest to Medium Purple (ΔE2000 5.1). It sits at 257° on the hue wheel with 99% saturation and 71% lightness, which reads as cool.

What is the RGB value of #976dfe?

rgb(151, 109, 254) — 151 red, 109 green and 254 blue out of 255, or 59.2% / 42.7% / 99.6% by channel.

Is #976dfe a light or a dark color?

It is a mid-tone. Relative luminance is 0.2467 and perceived brightness is 57%, so black text on it reaches 5.93:1.

Should I use black or white text on #976dfe?

Black. It scores 5.93:1 against #976dfe, versus 3.54:1 for white — AA at any size.

What is the complementary color of #976dfe?

#D4FE6D sits directly opposite on the wheel. Softer options are the split-complements #FEE06D and #8CFE6D, which give the same contrast with far less vibration.

What colors go well with #976dfe?

For interface work: #F6F4FA as the surface, #CDC0ED for borders, #624B9B for secondary text, #C4CC00 as an accent and #25017F for hover and pressed states. For a palette, the analogous pair #6D8CFE and #E06DFE stays calm, while #D4FE6D is the loudest partner.

What is #976dfe in CMYK for printing?

cmyk(41%, 57%, 0%, 0%). 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 #976dfe warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CC6DFE; nudged cooler, #6C77FF.

Work with #976dfe in the Color Lab