Skip to content

#7d7dfb

a light, electric blue · cool · closest name: Medium Slate Blue

RGB
125, 125, 251
HSL
240°, 94%, 74%
CMYK
50, 50, 0, 2
Luminance
0.2599

At a glance

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

Hex
#7d7dfb
Hue
240°
blue
Saturation
94%
electric
Lightness
74%
light
Brightness
98%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2599
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
6.20:1
Closest name
Medium Slate Blue
ΔE2000 6.6
Where it sits
Hue240° of 360°
Saturation94%
Lightness74%
Temperature
Warm ← → Cool83% 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#7d7dfb
RGBrgb(125, 125, 251)
HSLhsl(240, 94%, 74%)
CMYKcmyk(50%, 50%, 0%, 2%)
LABlab(58.0 33.0 -63.1)
LCHlch(58.0 71.3 297.6)
OKLCHoklch(0.651 0.183 280.0)
Decimal8224251
Display P3color(display-p3 0.490 0.490 0.984)

Copy-ready code

/* CSS */
color: #7d7dfb;
background-color: #7d7dfb;
/* Tailwind (arbitrary) */
class="text-[#7d7dfb] bg-[#7d7dfb]"
/* SCSS */
$brand: #7d7dfb;
/* SwiftUI */
Color(red: 0.490, green: 0.490, blue: 0.984)
/* Android */
Color.parseColor("#7d7dfb")
/* Flutter */
Color(0xFF7D7DFB)
/* Python / OpenCV (BGR) */
(251, 125, 125)

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

Accessibility — WCAG contrast

Aa
#7d7dfb on white: 3.39:1
AA ✗ fail · AA-large · AAA
Aa
#7d7dfb on black: 6.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3F90FF
deuteranopia · #3287F8
tritanopia · #4A99B0

Color scale — 50 to 950

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

#F2F2FD
#E4E4FB
#C2C2FA
#7d7dfb
#5C5CFA
#2525F8
#0707ED
#0606C6
#05059E
#080872
#050547
Base = 300Lightest = 50 · #F2F2FDDarkest = 950 · #050547
:root {
  --brand-50: #F2F2FD;
  --brand-100: #E4E4FB;
  --brand-200: #C2C2FA;
  --brand-300: #7d7dfb;
  --brand-400: #5C5CFA;
  --brand-500: #2525F8;
  --brand-600: #0707ED;
  --brand-700: #0606C6;
  --brand-800: #05059E;
  --brand-900: #080872;
  --brand-950: #050547;
  --brand: #7d7dfb;
  --brand-ink: #000000;
}

Colors that work with #7d7dfb

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#F4F4FA
Tinted page background
Border#C0C0ED
Hairlines and dividers
Muted text#4B4B9B
Captions on the surface
Accent#CA9802
Second voice, not a rival
Dark variant#04047C
Hover, pressed, headers
Light variant#E6E6FE
Selected rows, tints
Dark surface#141424
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 #7d7dfb

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#FBFB7D
Analogous left#7DBCFB
Analogous right#BC7DFB
Split-complement 1#FBBC7D
Split-complement 2#BCFB7D
Triadic 1#FB7D7D
Triadic 2#7DFB7D
Tetradic#FB7DBC

RGB percentages

Red49.0%
Green49.0%
Blue98.4%

CMYK percentages

Cyan50.2%
Magenta50.2%
Yellow0.0%
Key (black)1.6%

Color previews

#7d7dfb text on a black background

contrast 6.20:1

Card sample

#7d7dfb text on a white background

contrast 3.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7d7dfb;
Background color
Panel with #7d7dfb background
background-color: #7d7dfb;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #7d7dfb;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(125, 125, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(125, 125, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7d7dfb;
background: linear-gradient(135deg, #7d7dfb, #D17DFB);

Monochromatic scale

Palettes built from #7d7dfb

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.

#7d7dfb 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.

#7d7dfb, answered

What color is #7d7dfb?

#7d7dfb is a light electric blue, closest to Medium Slate Blue (ΔE2000 6.6). It sits at 240° on the hue wheel with 94% saturation and 74% lightness, which reads as cool.

What is the RGB value of #7d7dfb?

rgb(125, 125, 251) — 125 red, 125 green and 251 blue out of 255, or 49% / 49% / 98.4% by channel.

Is #7d7dfb a light or a dark color?

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

Should I use black or white text on #7d7dfb?

Black. It scores 6.20:1 against #7d7dfb, versus 3.39:1 for white — AA at any size.

What is the complementary color of #7d7dfb?

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

What colors go well with #7d7dfb?

For interface work: #F4F4FA as the surface, #C0C0ED for borders, #4B4B9B for secondary text, #CA9802 as an accent and #04047C for hover and pressed states. For a palette, the analogous pair #7DBCFB and #BC7DFB stays calm, while #FBFB7D is the loudest partner.

What is #7d7dfb in CMYK for printing?

cmyk(50%, 50%, 0%, 2%). 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 #7d7dfb warm or cool?

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

Work with #7d7dfb in the Color Lab