Skip to content

#8c7cd3

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

RGB
140, 124, 211
HSL
251°, 50%, 66%
CMYK
34, 41, 0, 17
Luminance
0.2469

At a glance

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

Hex
#8c7cd3
Hue
251°
blue
Saturation
50%
vivid
Lightness
66%
light
Brightness
83%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2469
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
5.94:1
Closest name
Medium Purple
ΔE2000 4.5
Where it sits
Hue251° of 360°
Saturation50%
Lightness66%
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#8c7cd3
RGBrgb(140, 124, 211)
HSLhsl(251, 50%, 66%)
CMYKcmyk(34%, 41%, 0%, 17%)
LABlab(56.8 25.9 -42.8)
LCHlch(56.8 50.0 301.2)
OKLCHoklch(0.638 0.128 290.7)
Decimal9206995
Display P3color(display-p3 0.549 0.486 0.827)

Copy-ready code

/* CSS */
color: #8c7cd3;
background-color: #8c7cd3;
/* Tailwind (arbitrary) */
class="text-[#8c7cd3] bg-[#8c7cd3]"
/* SCSS */
$brand: #8c7cd3;
/* SwiftUI */
Color(red: 0.549, green: 0.486, blue: 0.827)
/* Android */
Color.parseColor("#8c7cd3")
/* Flutter */
Color(0xFF8C7CD3)
/* Python / OpenCV (BGR) */
(211, 124, 140)

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

Accessibility — WCAG contrast

Aa
#8c7cd3 on white: 3.54:1
AA ✗ fail · AA-large · AAA
Aa
#8c7cd3 on black: 5.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #618AD6
deuteranopia · #6286D1
tritanopia · #7B8C9D

Color scale — 50 to 950

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

#F5F4FA
#ECEAF6
#D5CFEC
#B5ABE3
#8c7cd3
#6B57C7
#543EB7
#463399
#38297A
#2B2159
#1B1538
Base = 400Lightest = 50 · #F5F4FADarkest = 950 · #1B1538
:root {
  --brand-50: #F5F4FA;
  --brand-100: #ECEAF6;
  --brand-200: #D5CFEC;
  --brand-300: #B5ABE3;
  --brand-400: #8c7cd3;
  --brand-500: #6B57C7;
  --brand-600: #543EB7;
  --brand-700: #463399;
  --brand-800: #38297A;
  --brand-900: #2B2159;
  --brand-950: #1B1538;
  --brand: #8c7cd3;
  --brand-ink: #000000;
}

Colors that work with #8c7cd3

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#C9C2EA
Hairlines and dividers
Muted text#594B9B
Captions on the surface
Accent#9D952F
Second voice, not a rival
Dark variant#2C205F
Hover, pressed, headers
Light variant#EEECF9
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 #8c7cd3

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#C3D37C
Analogous left#7C98D3
Analogous right#B77CD3
Split-complement 1#D3B77C
Split-complement 2#98D37C
Triadic 1#D38C7C
Triadic 2#7CD38C
Tetradic#D37C98

RGB percentages

Red54.9%
Green48.6%
Blue82.7%

CMYK percentages

Cyan33.6%
Magenta41.2%
Yellow0.0%
Key (black)17.3%

Color previews

#8c7cd3 text on a black background

contrast 5.94:1

Card sample

#8c7cd3 text on a white background

contrast 3.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8c7cd3;
Background color
Panel with #8c7cd3 background
background-color: #8c7cd3;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(140, 124, 211, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 124, 211, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8c7cd3;
background: linear-gradient(135deg, #8c7cd3, #C67CD3);

Monochromatic scale

Palettes built from #8c7cd3

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.

#8c7cd3 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.

#8c7cd3, answered

What color is #8c7cd3?

#8c7cd3 is a light vivid blue, closest to Medium Purple (ΔE2000 4.5). It sits at 251° on the hue wheel with 50% saturation and 66% lightness, which reads as cool.

What is the RGB value of #8c7cd3?

rgb(140, 124, 211) — 140 red, 124 green and 211 blue out of 255, or 54.9% / 48.6% / 82.7% by channel.

Is #8c7cd3 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2469 and perceived brightness is 55%, so black text on it reaches 5.94:1.

Should I use black or white text on #8c7cd3?

Black. It scores 5.94:1 against #8c7cd3, versus 3.54:1 for white — AA at any size.

What is the complementary color of #8c7cd3?

#C3D37C sits directly opposite on the wheel. Softer options are the split-complements #D3B77C and #98D37C, which give the same contrast with far less vibration.

What colors go well with #8c7cd3?

For interface work: #F5F4FA as the surface, #C9C2EA for borders, #594B9B for secondary text, #9D952F as an accent and #2C205F for hover and pressed states. For a palette, the analogous pair #7C98D3 and #B77CD3 stays calm, while #C3D37C is the loudest partner.

What is #8c7cd3 in CMYK for printing?

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

Is #8c7cd3 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 #AC7CD3; nudged cooler, #7A8BD5.

Work with #8c7cd3 in the Color Lab