Skip to content

#7c6cdf

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

RGB
124, 108, 223
HSL
248°, 64%, 65%
CMYK
44, 52, 0, 13
Luminance
0.2034

At a glance

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

Hex
#7c6cdf
Hue
248°
blue
Saturation
64%
vivid
Lightness
65%
balanced
Brightness
87%
HSV value
Perceived
51%
weighted brightness
Luminance
0.2034
WCAG relative
Temperature
Cool
79/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
5.07:1
Closest name
Medium Slate Blue
ΔE2000 2.4
Where it sits
Hue248° of 360°
Saturation64%
Lightness65%
Temperature
Warm ← → Cool79% 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#7c6cdf
RGBrgb(124, 108, 223)
HSLhsl(248, 64%, 65%)
CMYKcmyk(44%, 52%, 0%, 13%)
LABlab(52.2 34.6 -56.9)
LCHlch(52.2 66.6 301.3)
OKLCHoklch(0.602 0.169 286.5)
Decimal8154335
Display P3color(display-p3 0.486 0.424 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7c6cdf on white: 4.14:1
AA ✗ fail · AA-large · AAA
Aa
#7c6cdf on black: 5.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3680E3
deuteranopia · #3479DC
tritanopia · #5D859B

Color scale — 50 to 950

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

#F5F4FB
#EAE8F7
#D0CBF1
#ADA3EB
#7c6cdf
#5B47D7
#422CC9
#3725A7
#2C1D86
#231961
#16103D
Base = 400Lightest = 50 · #F5F4FBDarkest = 950 · #16103D
:root {
  --brand-50: #F5F4FB;
  --brand-100: #EAE8F7;
  --brand-200: #D0CBF1;
  --brand-300: #ADA3EB;
  --brand-400: #7c6cdf;
  --brand-500: #5B47D7;
  --brand-600: #422CC9;
  --brand-700: #3725A7;
  --brand-800: #2C1D86;
  --brand-900: #231961;
  --brand-950: #16103D;
  --brand: #7c6cdf;
  --brand-ink: #000000;
}

Colors that work with #7c6cdf

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#F5F4FA
Tinted page background
Border#C6C0ED
Hairlines and dividers
Muted text#564B9B
Captions on the surface
Accent#AC9C20
Second voice, not a rival
Dark variant#221769
Hover, pressed, headers
Light variant#ECEAFA
Selected rows, tints
Dark surface#161424
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 #7c6cdf

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
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • 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#CFDF6C
Analogous left#6C96DF
Analogous right#B56CDF
Split-complement 1#DFB56C
Split-complement 2#96DF6C
Triadic 1#DF7C6C
Triadic 2#6CDF7C
Tetradic#DF6C96

RGB percentages

Red48.6%
Green42.4%
Blue87.5%

CMYK percentages

Cyan44.4%
Magenta51.6%
Yellow0.0%
Key (black)12.5%

Color previews

#7c6cdf text on a black background

contrast 5.07:1

Card sample

#7c6cdf text on a white background

contrast 4.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7c6cdf

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.

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

#7c6cdf, answered

What color is #7c6cdf?

#7c6cdf is a balanced vivid blue, closest to Medium Slate Blue (ΔE2000 2.4). It sits at 248° on the hue wheel with 64% saturation and 65% lightness, which reads as cool.

What is the RGB value of #7c6cdf?

rgb(124, 108, 223) — 124 red, 108 green and 223 blue out of 255, or 48.6% / 42.4% / 87.5% by channel.

Is #7c6cdf a light or a dark color?

It is a mid-tone. Relative luminance is 0.2034 and perceived brightness is 51%, so black text on it reaches 5.07:1.

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

Black. It scores 5.07:1 against #7c6cdf, versus 4.14:1 for white — AA at any size.

What is the complementary color of #7c6cdf?

#CFDF6C sits directly opposite on the wheel. Softer options are the split-complements #DFB56C and #96DF6C, which give the same contrast with far less vibration.

What colors go well with #7c6cdf?

For interface work: #F5F4FA as the surface, #C6C0ED for borders, #564B9B for secondary text, #AC9C20 as an accent and #221769 for hover and pressed states. For a palette, the analogous pair #6C96DF and #B56CDF stays calm, while #CFDF6C is the loudest partner.

What is #7c6cdf in CMYK for printing?

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

Is #7c6cdf warm or cool?

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

Work with #7c6cdf in the Color Lab