Skip to content

#8b7eb4

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

RGB
139, 126, 180
HSL
254°, 27%, 60%
CMYK
23, 30, 0, 29
Luminance
0.2371

At a glance

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

Hex
#8b7eb4
Hue
254°
blue
Saturation
27%
soft
Lightness
60%
balanced
Brightness
71%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2371
WCAG relative
Temperature
Cool
69/100 cool
Color family
Blue
Tone
Soft
Best ink
Black
5.74:1
Closest name
Medium Purple
ΔE2000 9.6
Where it sits
Hue254° of 360°
Saturation27%
Lightness60%
Temperature
Warm ← → Cool69% 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#8b7eb4
RGBrgb(139, 126, 180)
HSLhsl(254, 27%, 60%)
CMYKcmyk(23%, 30%, 0%, 29%)
LABlab(55.8 16.6 -26.7)
LCHlch(55.8 31.4 301.8)
OKLCHoklch(0.625 0.081 295.0)
Decimal9141940
Display P3color(display-p3 0.545 0.494 0.706)

Copy-ready code

/* CSS */
color: #8b7eb4;
background-color: #8b7eb4;
/* Tailwind (arbitrary) */
class="text-[#8b7eb4] bg-[#8b7eb4]"
/* SCSS */
$brand: #8b7eb4;
/* SwiftUI */
Color(red: 0.545, green: 0.494, blue: 0.706)
/* Android */
Color.parseColor("#8b7eb4")
/* Flutter */
Color(0xFF8B7EB4)
/* Python / OpenCV (BGR) */
(180, 126, 139)

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

Accessibility — WCAG contrast

Aa
#8b7eb4 on white: 3.66:1
AA ✗ fail · AA-large · AAA
Aa
#8b7eb4 on black: 5.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7186B6
deuteranopia · #7385B3
tritanopia · #838791

Color scale — 50 to 950

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

#F7F6F9
#EEEDF3
#DAD6E6
#BFB8D6
#9F95C1
#8b7eb4
#6A5A9B
#584B81
#463C67
#352E4C
#211D30
Base = 500Lightest = 50 · #F7F6F9Darkest = 950 · #211D30
:root {
  --brand-50: #F7F6F9;
  --brand-100: #EEEDF3;
  --brand-200: #DAD6E6;
  --brand-300: #BFB8D6;
  --brand-400: #9F95C1;
  --brand-500: #8b7eb4;
  --brand-600: #6A5A9B;
  --brand-700: #584B81;
  --brand-800: #463C67;
  --brand-900: #352E4C;
  --brand-950: #211D30;
  --brand: #8b7eb4;
  --brand-ink: #000000;
}

Colors that work with #8b7eb4

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#F6F5F9
Tinted page background
Border#D1CBE1
Hairlines and dividers
Muted text#635491
Captions on the surface
Accent#858447
Second voice, not a rival
Dark variant#372F51
Hover, pressed, headers
Light variant#F0EFF6
Selected rows, tints
Dark surface#181523
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 #8b7eb4

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#A7B47E
Analogous left#7E8CB4
Analogous right#A67EB4
Split-complement 1#B4A67E
Split-complement 2#8CB47E
Triadic 1#B48B7E
Triadic 2#7EB48B
Tetradic#B47E8C

RGB percentages

Red54.5%
Green49.4%
Blue70.6%

CMYK percentages

Cyan22.8%
Magenta30.0%
Yellow0.0%
Key (black)29.4%

Color previews

#8b7eb4 text on a black background

contrast 5.74:1

Card sample

#8b7eb4 text on a white background

contrast 3.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(139, 126, 180, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(139, 126, 180, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8b7eb4;
background: linear-gradient(135deg, #8b7eb4, #AF7EB4);

Monochromatic scale

Palettes built from #8b7eb4

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.

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

#8b7eb4, answered

What color is #8b7eb4?

#8b7eb4 is a balanced soft blue, closest to Medium Purple (ΔE2000 9.6). It sits at 254° on the hue wheel with 27% saturation and 60% lightness, which reads as cool.

What is the RGB value of #8b7eb4?

rgb(139, 126, 180) — 139 red, 126 green and 180 blue out of 255, or 54.5% / 49.4% / 70.6% by channel.

Is #8b7eb4 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2371 and perceived brightness is 54%, so black text on it reaches 5.74:1.

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

Black. It scores 5.74:1 against #8b7eb4, versus 3.66:1 for white — AA at any size.

What is the complementary color of #8b7eb4?

#A7B47E sits directly opposite on the wheel. Softer options are the split-complements #B4A67E and #8CB47E, which give the same contrast with far less vibration.

What colors go well with #8b7eb4?

For interface work: #F6F5F9 as the surface, #D1CBE1 for borders, #635491 for secondary text, #858447 as an accent and #372F51 for hover and pressed states. For a palette, the analogous pair #7E8CB4 and #A67EB4 stays calm, while #A7B47E is the loudest partner.

What is #8b7eb4 in CMYK for printing?

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

Is #8b7eb4 warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9F7EB4; nudged cooler, #7C83B6.

Work with #8b7eb4 in the Color Lab