#8f87cf
a light, soft blue · cool · closest name: Medium Purple
At a glance
Every number on this page in one read: what #8f87cf is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #8f87cf |
| RGB | rgb(143, 135, 207) |
| HSL | hsl(247, 43%, 67%) |
| CMYK | cmyk(31%, 35%, 0%, 19%) |
| LAB | lab(59.6 19.3 -36.1) |
| LCH | lch(59.6 40.9 298.1) |
| OKLCH | oklch(0.659 0.106 288.2) |
| Decimal | 9406415 |
| Display P3 | color(display-p3 0.561 0.529 0.812) |
Copy-ready code
/* CSS */
color: #8f87cf;
background-color: #8f87cf;
/* Tailwind (arbitrary) */
class="text-[#8f87cf] bg-[#8f87cf]"
/* SCSS */
$brand: #8f87cf;
/* SwiftUI */
Color(red: 0.561, green: 0.529, blue: 0.812)
/* Android */
Color.parseColor("#8f87cf")
/* Flutter */
Color(0xFF8F87CF)
/* Python / OpenCV (BGR) */
(207, 135, 143)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #8f87cf 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.
:root {
--brand-50: #F5F5FA;
--brand-100: #ECEBF5;
--brand-200: #D4D1EA;
--brand-300: #B4AFDF;
--brand-400: #8f87cf;
--brand-500: #695FBF;
--brand-600: #5246AF;
--brand-700: #443A92;
--brand-800: #362F75;
--brand-900: #2A2555;
--brand-950: #1B1735;
--brand: #8f87cf;
--brand-ink: #000000;
}Colors that work with #8f87cf
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #8f87cf
Derived from its contrast, chroma and lightness — not from taste.
- ✓Headings from 24px up on white
- ✓Text and icons on dark surfaces
- ✓Charts, tags and secondary surfaces
- ✓Card and section backgrounds
- ✓Brand accents, badges and data highlights
- ⚠Small text on white — under 4.5:1
- ⚠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 | #C7CF87 | Directly opposite — maximum tension | |
| Analogous left | #87A3CF | Neighbour, quieter | |
| Analogous right | #B387CF | Neighbour, quieter | |
| Split-complement 1 | #CFB387 | Contrast without the clash | |
| Split-complement 2 | #A3CF87 | Contrast without the clash | |
| Triadic 1 | #CF8F87 | Even thirds — balanced and loud | |
| Triadic 2 | #87CF8F | Even thirds — balanced and loud | |
| Tetradic | #CF87A3 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#8f87cf text on a black background
contrast 6.53:1
#8f87cf text on a white background
contrast 3.21:1
CSS3 live lab
The quick brown fox
color: #8f87cf;
background-color: #8f87cf;
Glowing headline
text-shadow: 2px 2px 8px #8f87cf;
Soft neon halo
text-shadow: 0 0 14px rgba(143, 135, 207, 0.45);
box-shadow: 0 12px 32px -8px rgba(143, 135, 207, 0.45);
border: 3px solid #8f87cf; background: linear-gradient(135deg, #8f87cf, #BF87CF);
Monochromatic scale
Palettes built from #8f87cf
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.
Closest color with a full write-up: Periwinkle Blue (#8f99fb) — ΔE2000 8.8 away, with its history, psychology and brand usage.
#8f87cf in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#8f87cf, answered
What color is #8f87cf?
#8f87cf is a light soft blue, closest to Medium Purple (ΔE2000 8.1). It sits at 247° on the hue wheel with 43% saturation and 67% lightness, which reads as cool.
What is the RGB value of #8f87cf?
rgb(143, 135, 207) — 143 red, 135 green and 207 blue out of 255, or 56.1% / 52.9% / 81.2% by channel.
Is #8f87cf a light or a dark color?
It is a mid-tone. Relative luminance is 0.2767 and perceived brightness is 58%, so black text on it reaches 6.53:1.
Should I use black or white text on #8f87cf?
Black. It scores 6.53:1 against #8f87cf, versus 3.21:1 for white — AA at any size.
What is the complementary color of #8f87cf?
#C7CF87 sits directly opposite on the wheel. Softer options are the split-complements #CFB387 and #A3CF87, which give the same contrast with far less vibration.
What colors go well with #8f87cf?
For interface work: #F5F4FA as the surface, #C9C5E8 for borders, #544B9B for secondary text, #958937 as an accent and #2B245B for hover and pressed states. For a palette, the analogous pair #87A3CF and #B387CF stays calm, while #C7CF87 is the loudest partner.
What is #8f87cf in CMYK for printing?
cmyk(31%, 35%, 0%, 19%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #8f87cf warm or cool?
Cool — it scores 80 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AA87CF; nudged cooler, #8599D1.