Skip to content

#7c7dec

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

RGB
124, 125, 236
HSL
240°, 75%, 71%
CMYK
48, 47, 0, 8
Luminance
0.2501

At a glance

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

Hex
#7c7dec
Hue
240°
blue
Saturation
75%
vivid
Lightness
71%
light
Brightness
93%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2501
WCAG relative
Temperature
Cool
84/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
6.00:1
Closest name
Medium Slate Blue
ΔE2000 6.5
Where it sits
Hue240° of 360°
Saturation75%
Lightness71%
Temperature
Warm ← → Cool84% 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#7c7dec
RGBrgb(124, 125, 236)
HSLhsl(240, 75%, 71%)
CMYKcmyk(48%, 47%, 0%, 8%)
LABlab(57.1 28.4 -56.4)
LCHlch(57.1 63.1 296.7)
OKLCHoklch(0.641 0.163 280.4)
Decimal8158700
Display P3color(display-p3 0.486 0.490 0.925)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#7c7dec on white: 3.50:1
AA ✗ fail · AA-large · AAA
Aa
#7c7dec on black: 6.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4D8DF0
deuteranopia · #4585EA
tritanopia · #5395A9

Color scale — 50 to 950

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

#F3F3FC
#E7E7F9
#C8C8F4
#9D9EF1
#7c7dec
#3B3CE3
#1F20D6
#1A1BB2
#15168F
#131467
#0C0C41
Base = 400Lightest = 50 · #F3F3FCDarkest = 950 · #0C0C41
:root {
  --brand-50: #F3F3FC;
  --brand-100: #E7E7F9;
  --brand-200: #C8C8F4;
  --brand-300: #9D9EF1;
  --brand-400: #7c7dec;
  --brand-500: #3B3CE3;
  --brand-600: #1F20D6;
  --brand-700: #1A1BB2;
  --brand-800: #15168F;
  --brand-900: #131467;
  --brand-950: #0C0C41;
  --brand: #7c7dec;
  --brand-ink: #000000;
}

Colors that work with #7c7dec

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#B68D16
Second voice, not a rival
Dark variant#10116F
Hover, pressed, headers
Light variant#E9E9FC
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 #7c7dec

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#ECEB7C
Analogous left#7CB5EC
Analogous right#B37CEC
Split-complement 1#ECB37C
Split-complement 2#B5EC7C
Triadic 1#EC7C7D
Triadic 2#7DEC7C
Tetradic#EC7CB5

RGB percentages

Red48.6%
Green49.0%
Blue92.5%

CMYK percentages

Cyan47.5%
Magenta47.0%
Yellow0.0%
Key (black)7.5%

Color previews

#7c7dec text on a black background

contrast 6.00:1

Card sample

#7c7dec text on a white background

contrast 3.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7c7dec

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.

#7c7dec 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

Converts to four-color process without much drama. Proof it anyway.

#7c7dec, answered

What color is #7c7dec?

#7c7dec is a light vivid blue, closest to Medium Slate Blue (ΔE2000 6.5). It sits at 240° on the hue wheel with 75% saturation and 71% lightness, which reads as cool.

What is the RGB value of #7c7dec?

rgb(124, 125, 236) — 124 red, 125 green and 236 blue out of 255, or 48.6% / 49% / 92.5% by channel.

Is #7c7dec a light or a dark color?

It is a mid-tone. Relative luminance is 0.2501 and perceived brightness is 56%, so black text on it reaches 6.00:1.

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

Black. It scores 6.00:1 against #7c7dec, versus 3.50:1 for white — AA at any size.

What is the complementary color of #7c7dec?

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

What colors go well with #7c7dec?

For interface work: #F4F4FA as the surface, #C0C0ED for borders, #4B4B9B for secondary text, #B68D16 as an accent and #10116F for hover and pressed states. For a palette, the analogous pair #7CB5EC and #B37CEC stays calm, while #ECEB7C is the loudest partner.

What is #7c7dec in CMYK for printing?

cmyk(48%, 47%, 0%, 8%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #7c7dec warm or cool?

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

Work with #7c7dec in the Color Lab