Skip to content

#977dfd

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

RGB
151, 125, 253
HSL
252°, 97%, 74%
CMYK
40, 51, 0, 1
Luminance
0.2834

At a glance

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

Hex
#977dfd
Hue
252°
blue
Saturation
97%
electric
Lightness
74%
light
Brightness
99%
HSV value
Perceived
60%
weighted brightness
Luminance
0.2834
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
6.67:1
Closest name
Medium Purple
ΔE2000 6.2
Where it sits
Hue252° of 360°
Saturation97%
Lightness74%
Temperature
Warm ← → Cool77% 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#977dfd
RGBrgb(151, 125, 253)
HSLhsl(252, 97%, 74%)
CMYKcmyk(40%, 51%, 0%, 1%)
LABlab(60.2 39.4 -60.7)
LCHlch(60.2 72.3 303.0)
OKLCHoklch(0.673 0.183 289.9)
Decimal9928189
Display P3color(display-p3 0.592 0.490 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#977dfd on white: 3.15:1
AA ✗ fail · AA-large · AAA
Aa
#977dfd on black: 6.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4694FF
deuteranopia · #498EFA
tritanopia · #7B97B1

Color scale — 50 to 950

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

#F4F1FD
#E9E4FC
#CDC1FB
#977dfd
#7A59FC
#4E22FC
#3404F1
#2B03C9
#2302A1
#1D0774
#120448
Base = 300Lightest = 50 · #F4F1FDDarkest = 950 · #120448
:root {
  --brand-50: #F4F1FD;
  --brand-100: #E9E4FC;
  --brand-200: #CDC1FB;
  --brand-300: #977dfd;
  --brand-400: #7A59FC;
  --brand-500: #4E22FC;
  --brand-600: #3404F1;
  --brand-700: #2B03C9;
  --brand-800: #2302A1;
  --brand-900: #1D0774;
  --brand-950: #120448;
  --brand: #977dfd;
  --brand-ink: #000000;
}

Colors that work with #977dfd

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#C9C0ED
Hairlines and dividers
Muted text#5B4B9B
Captions on the surface
Accent#CCC300
Second voice, not a rival
Dark variant#1B027E
Hover, pressed, headers
Light variant#EBE6FF
Selected rows, tints
Dark surface#171424
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 #977dfd

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#E3FD7D
Analogous left#7DA3FD
Analogous right#D77DFD
Split-complement 1#FDD77D
Split-complement 2#A3FD7D
Triadic 1#FD977D
Triadic 2#7DFD97
Tetradic#FD7DA3

RGB percentages

Red59.2%
Green49.0%
Blue99.2%

CMYK percentages

Cyan40.3%
Magenta50.6%
Yellow0.0%
Key (black)0.8%

Color previews

#977dfd text on a black background

contrast 6.67:1

Card sample

#977dfd text on a white background

contrast 3.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #977dfd;
Background color
Panel with #977dfd background
background-color: #977dfd;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #977dfd;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(151, 125, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(151, 125, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #977dfd;
background: linear-gradient(135deg, #977dfd, #EC7DFD);

Monochromatic scale

Palettes built from #977dfd

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.

#977dfd in the real world

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

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

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

#977dfd, answered

What color is #977dfd?

#977dfd is a light electric blue, closest to Medium Purple (ΔE2000 6.2). It sits at 252° on the hue wheel with 97% saturation and 74% lightness, which reads as cool.

What is the RGB value of #977dfd?

rgb(151, 125, 253) — 151 red, 125 green and 253 blue out of 255, or 59.2% / 49% / 99.2% by channel.

Is #977dfd a light or a dark color?

It is a mid-tone. Relative luminance is 0.2834 and perceived brightness is 60%, so black text on it reaches 6.67:1.

Should I use black or white text on #977dfd?

Black. It scores 6.67:1 against #977dfd, versus 3.15:1 for white — AA at any size.

What is the complementary color of #977dfd?

#E3FD7D sits directly opposite on the wheel. Softer options are the split-complements #FDD77D and #A3FD7D, which give the same contrast with far less vibration.

What colors go well with #977dfd?

For interface work: #F6F4FA as the surface, #C9C0ED for borders, #5B4B9B for secondary text, #CCC300 as an accent and #1B027E for hover and pressed states. For a palette, the analogous pair #7DA3FD and #D77DFD stays calm, while #E3FD7D is the loudest partner.

What is #977dfd in CMYK for printing?

cmyk(40%, 51%, 0%, 1%). 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 #977dfd warm or cool?

Cool — it scores 77 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C67DFD; nudged cooler, #7C91FE.

Work with #977dfd in the Color Lab