Skip to content

#8f7cd8

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

RGB
143, 124, 216
HSL
252°, 54%, 67%
CMYK
34, 43, 0, 15
Luminance
0.2521

At a glance

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

Hex
#8f7cd8
Hue
252°
blue
Saturation
54%
vivid
Lightness
67%
light
Brightness
85%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2521
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
6.04:1
Closest name
Medium Purple
ΔE2000 4
Where it sits
Hue252° of 360°
Saturation54%
Lightness67%
Temperature
Warm ← → Cool76% 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#8f7cd8
RGBrgb(143, 124, 216)
HSLhsl(252, 54%, 67%)
CMYKcmyk(34%, 43%, 0%, 15%)
LABlab(57.3 28.0 -44.8)
LCHlch(57.3 52.8 302.1)
OKLCHoklch(0.643 0.135 291.6)
Decimal9403608
Display P3color(display-p3 0.561 0.486 0.847)

Copy-ready code

/* CSS */
color: #8f7cd8;
background-color: #8f7cd8;
/* Tailwind (arbitrary) */
class="text-[#8f7cd8] bg-[#8f7cd8]"
/* SCSS */
$brand: #8f7cd8;
/* SwiftUI */
Color(red: 0.561, green: 0.486, blue: 0.847)
/* Android */
Color.parseColor("#8f7cd8")
/* Flutter */
Color(0xFF8F7CD8)
/* Python / OpenCV (BGR) */
(216, 124, 143)

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

Accessibility — WCAG contrast

Aa
#8f7cd8 on white: 3.48:1
AA ✗ fail · AA-large · AAA
Aa
#8f7cd8 on black: 6.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5F8BDB
deuteranopia · #6088D6
tritanopia · #7D8DA0

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #8f7cd8 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
#ECE9F6
#D5CEEE
#B5A9E5
#8f7cd8
#6B52CC
#5438BD
#462F9D
#38257E
#2B1F5C
#1B1339
Base = 400Lightest = 50 · #F5F4FBDarkest = 950 · #1B1339
:root {
  --brand-50: #F5F4FB;
  --brand-100: #ECE9F6;
  --brand-200: #D5CEEE;
  --brand-300: #B5A9E5;
  --brand-400: #8f7cd8;
  --brand-500: #6B52CC;
  --brand-600: #5438BD;
  --brand-700: #462F9D;
  --brand-800: #38257E;
  --brand-900: #2B1F5C;
  --brand-950: #1B1339;
  --brand: #8f7cd8;
  --brand-ink: #000000;
}

Colors that work with #8f7cd8

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#F6F4FA
Tinted page background
Border#C9C0EC
Hairlines and dividers
Muted text#5B4B9B
Captions on the surface
Accent#A19C2B
Second voice, not a rival
Dark variant#2C1D62
Hover, pressed, headers
Light variant#EEEBF9
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 #8f7cd8

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#C5D87C
Analogous left#7C97D8
Analogous right#BD7CD8
Split-complement 1#D8BD7C
Split-complement 2#97D87C
Triadic 1#D88F7C
Triadic 2#7CD88F
Tetradic#D87C97

RGB percentages

Red56.1%
Green48.6%
Blue84.7%

CMYK percentages

Cyan33.8%
Magenta42.6%
Yellow0.0%
Key (black)15.3%

Color previews

#8f7cd8 text on a black background

contrast 6.04:1

Card sample

#8f7cd8 text on a white background

contrast 3.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8f7cd8

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.

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

#8f7cd8, answered

What color is #8f7cd8?

#8f7cd8 is a light vivid blue, closest to Medium Purple (ΔE2000 4). It sits at 252° on the hue wheel with 54% saturation and 67% lightness, which reads as cool.

What is the RGB value of #8f7cd8?

rgb(143, 124, 216) — 143 red, 124 green and 216 blue out of 255, or 56.1% / 48.6% / 84.7% by channel.

Is #8f7cd8 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2521 and perceived brightness is 56%, so black text on it reaches 6.04:1.

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

Black. It scores 6.04:1 against #8f7cd8, versus 3.48:1 for white — AA at any size.

What is the complementary color of #8f7cd8?

#C5D87C sits directly opposite on the wheel. Softer options are the split-complements #D8BD7C and #97D87C, which give the same contrast with far less vibration.

What colors go well with #8f7cd8?

For interface work: #F6F4FA as the surface, #C9C0EC for borders, #5B4B9B for secondary text, #A19C2B as an accent and #2C1D62 for hover and pressed states. For a palette, the analogous pair #7C97D8 and #BD7CD8 stays calm, while #C5D87C is the loudest partner.

What is #8f7cd8 in CMYK for printing?

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

Is #8f7cd8 warm or cool?

Cool — it scores 76 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B17CD8; nudged cooler, #7A8ADA.

Work with #8f7cd8 in the Color Lab