Skip to content

#8f7fd8

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

RGB
143, 127, 216
HSL
251°, 53%, 67%
CMYK
34, 41, 0, 15
Luminance
0.2598

At a glance

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

Hex
#8f7fd8
Hue
251°
blue
Saturation
53%
vivid
Lightness
67%
light
Brightness
85%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2598
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
6.20:1
Closest name
Medium Purple
ΔE2000 4.9
Where it sits
Hue251° of 360°
Saturation53%
Lightness67%
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#8f7fd8
RGBrgb(143, 127, 216)
HSLhsl(251, 53%, 67%)
CMYKcmyk(34%, 41%, 0%, 15%)
LABlab(58.0 26.3 -43.6)
LCHlch(58.0 50.9 301.1)
OKLCHoklch(0.648 0.131 290.5)
Decimal9404376
Display P3color(display-p3 0.561 0.498 0.847)

Copy-ready code

/* CSS */
color: #8f7fd8;
background-color: #8f7fd8;
/* Tailwind (arbitrary) */
class="text-[#8f7fd8] bg-[#8f7fd8]"
/* SCSS */
$brand: #8f7fd8;
/* SwiftUI */
Color(red: 0.561, green: 0.498, blue: 0.847)
/* Android */
Color.parseColor("#8f7fd8")
/* Flutter */
Color(0xFF8F7FD8)
/* Python / OpenCV (BGR) */
(216, 127, 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 #8f7fd8 · 6.20:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.39:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.20:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #8f7fd8 as text scores 3.39:1 on white and 6.20:1 on black.

Accessibility — WCAG contrast

Aa
#8f7fd8 on white: 3.39:1
AA ✗ fail · AA-large · AAA
Aa
#8f7fd8 on black: 6.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #638DDB
deuteranopia · #648AD6
tritanopia · #7D90A1

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #8f7fd8 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
#D4CEED
#B4A9E5
#8f7fd8
#6953CB
#5139BC
#43309C
#36267D
#2A1F5B
#1A1339
Base = 400Lightest = 50 · #F5F4FBDarkest = 950 · #1A1339
:root {
  --brand-50: #F5F4FB;
  --brand-100: #ECE9F6;
  --brand-200: #D4CEED;
  --brand-300: #B4A9E5;
  --brand-400: #8f7fd8;
  --brand-500: #6953CB;
  --brand-600: #5139BC;
  --brand-700: #43309C;
  --brand-800: #36267D;
  --brand-900: #2A1F5B;
  --brand-950: #1A1339;
  --brand: #8f7fd8;
  --brand-ink: #000000;
}

Colors that work with #8f7fd8

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#C8C0EC
Hairlines and dividers
Muted text#594B9B
Captions on the surface
Accent#A0992C
Second voice, not a rival
Dark variant#2A1E62
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 #8f7fd8

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#C8D87F
Analogous left#7F9CD8
Analogous right#BC7FD8
Split-complement 1#D8BC7F
Split-complement 2#9CD87F
Triadic 1#D88F7F
Triadic 2#7FD88F
Tetradic#D87F9C

RGB percentages

Red56.1%
Green49.8%
Blue84.7%

CMYK percentages

Cyan33.8%
Magenta41.2%
Yellow0.0%
Key (black)15.3%

Color previews

#8f7fd8 text on a black background

contrast 6.20:1

Card sample

#8f7fd8 text on a white background

contrast 3.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8f7fd8

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.

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

#8f7fd8, answered

What color is #8f7fd8?

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

What is the RGB value of #8f7fd8?

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

Is #8f7fd8 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2598 and perceived brightness is 57%, so black text on it reaches 6.20:1.

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

Black. It scores 6.20:1 against #8f7fd8, versus 3.39:1 for white — AA at any size.

What is the complementary color of #8f7fd8?

#C8D87F sits directly opposite on the wheel. Softer options are the split-complements #D8BC7F and #9CD87F, which give the same contrast with far less vibration.

What colors go well with #8f7fd8?

For interface work: #F5F4FA as the surface, #C8C0EC for borders, #594B9B for secondary text, #A0992C as an accent and #2A1E62 for hover and pressed states. For a palette, the analogous pair #7F9CD8 and #BC7FD8 stays calm, while #C8D87F is the loudest partner.

What is #8f7fd8 in CMYK for printing?

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

Is #8f7fd8 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 #B07FD8; nudged cooler, #7E8FDA.

Work with #8f7fd8 in the Color Lab