Skip to content

#8d7eb6

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

RGB
141, 126, 182
HSL
256°, 28%, 60%
CMYK
23, 31, 0, 29
Luminance
0.2396

At a glance

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

Hex
#8d7eb6
Hue
256°
violet
Saturation
28%
soft
Lightness
60%
balanced
Brightness
71%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2396
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
5.79:1
Closest name
Medium Purple
ΔE2000 9.2
Where it sits
Hue256° of 360°
Saturation28%
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#8d7eb6
RGBrgb(141, 126, 182)
HSLhsl(256, 28%, 60%)
CMYKcmyk(23%, 31%, 0%, 29%)
LABlab(56.0 17.7 -27.4)
LCHlch(56.0 32.6 302.8)
OKLCHoklch(0.628 0.084 296.2)
Decimal9273014
Display P3color(display-p3 0.553 0.494 0.714)

Copy-ready code

/* CSS */
color: #8d7eb6;
background-color: #8d7eb6;
/* Tailwind (arbitrary) */
class="text-[#8d7eb6] bg-[#8d7eb6]"
/* SCSS */
$brand: #8d7eb6;
/* SwiftUI */
Color(red: 0.553, green: 0.494, blue: 0.714)
/* Android */
Color.parseColor("#8d7eb6")
/* Flutter */
Color(0xFF8D7EB6)
/* Python / OpenCV (BGR) */
(182, 126, 141)

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

Accessibility — WCAG contrast

Aa
#8d7eb6 on white: 3.63:1
AA ✗ fail · AA-large · AAA
Aa
#8d7eb6 on black: 5.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7187B8
deuteranopia · #7386B4
tritanopia · #858792

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #8d7eb6 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
#EEECF3
#DAD6E6
#C0B7D6
#A094C2
#8d7eb6
#6B589C
#594A82
#473B68
#362E4D
#221D30
Base = 500Lightest = 50 · #F7F6F9Darkest = 950 · #221D30
:root {
  --brand-50: #F7F6F9;
  --brand-100: #EEECF3;
  --brand-200: #DAD6E6;
  --brand-300: #C0B7D6;
  --brand-400: #A094C2;
  --brand-500: #8d7eb6;
  --brand-600: #6B589C;
  --brand-700: #594A82;
  --brand-800: #473B68;
  --brand-900: #362E4D;
  --brand-950: #221D30;
  --brand: #8d7eb6;
  --brand-ink: #000000;
}

Colors that work with #8d7eb6

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#D1CBE2
Hairlines and dividers
Muted text#645393
Captions on the surface
Accent#858646
Second voice, not a rival
Dark variant#382E51
Hover, pressed, headers
Light variant#F1EFF6
Selected rows, tints
Dark surface#181424
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 #8d7eb6

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#A7B67E
Analogous left#7E8BB6
Analogous right#A97EB6
Split-complement 1#B6A97E
Split-complement 2#8BB67E
Triadic 1#B68D7E
Triadic 2#7EB68D
Tetradic#B67E8B

RGB percentages

Red55.3%
Green49.4%
Blue71.4%

CMYK percentages

Cyan22.5%
Magenta30.8%
Yellow0.0%
Key (black)28.6%

Color previews

#8d7eb6 text on a black background

contrast 5.79:1

Card sample

#8d7eb6 text on a white background

contrast 3.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8d7eb6

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.

#8d7eb6 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#8d7eb6, answered

What color is #8d7eb6?

#8d7eb6 is a balanced soft violet, closest to Medium Purple (ΔE2000 9.2). It sits at 256° on the hue wheel with 28% saturation and 60% lightness, which reads as cool.

What is the RGB value of #8d7eb6?

rgb(141, 126, 182) — 141 red, 126 green and 182 blue out of 255, or 55.3% / 49.4% / 71.4% by channel.

Is #8d7eb6 a light or a dark color?

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

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

Black. It scores 5.79:1 against #8d7eb6, versus 3.63:1 for white — AA at any size.

What is the complementary color of #8d7eb6?

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

What colors go well with #8d7eb6?

For interface work: #F6F5F9 as the surface, #D1CBE2 for borders, #645393 for secondary text, #858646 as an accent and #382E51 for hover and pressed states. For a palette, the analogous pair #7E8BB6 and #A97EB6 stays calm, while #A7B67E is the loudest partner.

What is #8d7eb6 in CMYK for printing?

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

Is #8d7eb6 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 #A27EB6; nudged cooler, #7C82B8.

Work with #8d7eb6 in the Color Lab