Skip to content

#7c7eb5

a balanced, soft blue · cool · closest name: Medium Purple

RGB
124, 126, 181
HSL
238°, 28%, 60%
CMYK
32, 30, 0, 29
Luminance
0.2254

At a glance

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

Hex
#7c7eb5
Hue
238°
blue
Saturation
28%
soft
Lightness
60%
balanced
Brightness
71%
HSV value
Perceived
52%
weighted brightness
Luminance
0.2254
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Soft
Best ink
Black
5.51:1
Closest name
Medium Purple
ΔE2000 10
Where it sits
Hue238° of 360°
Saturation28%
Lightness60%
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#7c7eb5
RGBrgb(124, 126, 181)
HSLhsl(238, 28%, 60%)
CMYKcmyk(32%, 30%, 0%, 29%)
LABlab(54.6 12.2 -29.2)
LCHlch(54.6 31.6 292.7)
OKLCHoklch(0.613 0.083 282.1)
Decimal8158901
Display P3color(display-p3 0.486 0.494 0.710)

Copy-ready code

/* CSS */
color: #7c7eb5;
background-color: #7c7eb5;
/* Tailwind (arbitrary) */
class="text-[#7c7eb5] bg-[#7c7eb5]"
/* SCSS */
$brand: #7c7eb5;
/* SwiftUI */
Color(red: 0.486, green: 0.494, blue: 0.710)
/* Android */
Color.parseColor("#7c7eb5")
/* Flutter */
Color(0xFF7C7EB5)
/* Python / OpenCV (BGR) */
(181, 126, 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 #7c7eb5 · 5.51:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.81:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.51:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #7c7eb5 as text scores 3.81:1 on white and 5.51:1 on black.

Accessibility — WCAG contrast

Aa
#7c7eb5 on white: 3.81:1
AA ✗ fail · AA-large · AAA
Aa
#7c7eb5 on black: 5.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6E85B7
deuteranopia · #6B81B4
tritanopia · #6E8892

Color scale — 50 to 950

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

#F6F6F9
#ECEDF3
#D6D6E6
#B7B8D6
#9395C2
#7c7eb5
#585B9C
#4A4C82
#3B3D68
#2E2F4D
#1C1D30
Base = 500Lightest = 50 · #F6F6F9Darkest = 950 · #1C1D30
:root {
  --brand-50: #F6F6F9;
  --brand-100: #ECEDF3;
  --brand-200: #D6D6E6;
  --brand-300: #B7B8D6;
  --brand-400: #9395C2;
  --brand-500: #7c7eb5;
  --brand-600: #585B9C;
  --brand-700: #4A4C82;
  --brand-800: #3B3D68;
  --brand-900: #2E2F4D;
  --brand-950: #1C1D30;
  --brand: #7c7eb5;
  --brand-ink: #000000;
}

Colors that work with #7c7eb5

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#F5F5F9
Tinted page background
Border#CBCCE2
Hairlines and dividers
Muted text#535593
Captions on the surface
Accent#867446
Second voice, not a rival
Dark variant#2E2F51
Hover, pressed, headers
Light variant#EFEFF6
Selected rows, tints
Dark surface#141524
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 #7c7eb5

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
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#B5B37C
Analogous left#7C9AB5
Analogous right#967CB5
Split-complement 1#B5967C
Split-complement 2#9AB57C
Triadic 1#B57C7E
Triadic 2#7EB57C
Tetradic#B57C9A

RGB percentages

Red48.6%
Green49.4%
Blue71.0%

CMYK percentages

Cyan31.5%
Magenta30.4%
Yellow0.0%
Key (black)29.0%

Color previews

#7c7eb5 text on a black background

contrast 5.51:1

Card sample

#7c7eb5 text on a white background

contrast 3.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7c7eb5

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.

#7c7eb5 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
ButtonsLinksFocus statesCharts
Print note

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

#7c7eb5, answered

What color is #7c7eb5?

#7c7eb5 is a balanced soft blue, closest to Medium Purple (ΔE2000 10). It sits at 238° on the hue wheel with 28% saturation and 60% lightness, which reads as cool.

What is the RGB value of #7c7eb5?

rgb(124, 126, 181) — 124 red, 126 green and 181 blue out of 255, or 48.6% / 49.4% / 71% by channel.

Is #7c7eb5 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2254 and perceived brightness is 52%, so black text on it reaches 5.51:1.

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

Black. It scores 5.51:1 against #7c7eb5, versus 3.81:1 for white — AA at any size.

What is the complementary color of #7c7eb5?

#B5B37C sits directly opposite on the wheel. Softer options are the split-complements #B5967C and #9AB57C, which give the same contrast with far less vibration.

What colors go well with #7c7eb5?

For interface work: #F5F5F9 as the surface, #CBCCE2 for borders, #535593 for secondary text, #867446 as an accent and #2E2F51 for hover and pressed states. For a palette, the analogous pair #7C9AB5 and #967CB5 stays calm, while #B5B37C is the loudest partner.

What is #7c7eb5 in CMYK for printing?

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

Is #7c7eb5 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 #8F7CB5; nudged cooler, #7A91B7.

Work with #7c7eb5 in the Color Lab