Skip to content

#8f7dfe

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

RGB
143, 125, 254
HSL
248°, 99%, 74%
CMYK
44, 51, 0, 0
Luminance
0.2766

At a glance

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

Hex
#8f7dfe
Hue
248°
blue
Saturation
99%
electric
Lightness
74%
light
Brightness
100%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2766
WCAG relative
Temperature
Cool
79/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
6.53:1
Closest name
Medium Purple
ΔE2000 6.7
Where it sits
Hue248° of 360°
Saturation99%
Lightness74%
Temperature
Warm ← → Cool79% 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#8f7dfe
RGBrgb(143, 125, 254)
HSLhsl(248, 99%, 74%)
CMYKcmyk(44%, 51%, 0%, 0%)
LABlab(59.6 37.8 -62.2)
LCHlch(59.6 72.8 301.3)
OKLCHoklch(0.667 0.185 286.7)
Decimal9403902
Display P3color(display-p3 0.561 0.490 0.996)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8f7dfe on white: 3.21:1
AA ✗ fail · AA-large · AAA
Aa
#8f7dfe on black: 6.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4293FF
deuteranopia · #408CFB
tritanopia · #6D98B2

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #8f7dfe is pinned to step 300; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F3F1FE
#E7E3FC
#C9C1FB
#8f7dfe
#6F58FE
#3F20FD
#2402F3
#1E02CA
#1801A2
#150675
#0D0449
Base = 300Lightest = 50 · #F3F1FEDarkest = 950 · #0D0449
:root {
  --brand-50: #F3F1FE;
  --brand-100: #E7E3FC;
  --brand-200: #C9C1FB;
  --brand-300: #8f7dfe;
  --brand-400: #6F58FE;
  --brand-500: #3F20FD;
  --brand-600: #2402F3;
  --brand-700: #1E02CA;
  --brand-800: #1801A2;
  --brand-900: #150675;
  --brand-950: #0D0449;
  --brand: #8f7dfe;
  --brand-ink: #000000;
}

Colors that work with #8f7dfe

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#C6C0ED
Hairlines and dividers
Muted text#564B9B
Captions on the surface
Accent#CCB600
Second voice, not a rival
Dark variant#13017F
Hover, pressed, headers
Light variant#E9E6FF
Selected rows, tints
Dark surface#161424
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 #8f7dfe

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#ECFE7D
Analogous left#7DABFE
Analogous right#D07DFE
Split-complement 1#FED07D
Split-complement 2#ABFE7D
Triadic 1#FE8F7D
Triadic 2#7DFE8F
Tetradic#FE7DAB

RGB percentages

Red56.1%
Green49.0%
Blue99.6%

CMYK percentages

Cyan43.7%
Magenta50.8%
Yellow0.0%
Key (black)0.4%

Color previews

#8f7dfe text on a black background

contrast 6.53:1

Card sample

#8f7dfe text on a white background

contrast 3.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8f7dfe

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.

#8f7dfe 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#8f7dfe, answered

What color is #8f7dfe?

#8f7dfe is a light electric blue, closest to Medium Purple (ΔE2000 6.7). It sits at 248° on the hue wheel with 99% saturation and 74% lightness, which reads as cool.

What is the RGB value of #8f7dfe?

rgb(143, 125, 254) — 143 red, 125 green and 254 blue out of 255, or 56.1% / 49% / 99.6% by channel.

Is #8f7dfe a light or a dark color?

It is a mid-tone. Relative luminance is 0.2766 and perceived brightness is 59%, so black text on it reaches 6.53:1.

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

Black. It scores 6.53:1 against #8f7dfe, versus 3.21:1 for white — AA at any size.

What is the complementary color of #8f7dfe?

#ECFE7D sits directly opposite on the wheel. Softer options are the split-complements #FED07D and #ABFE7D, which give the same contrast with far less vibration.

What colors go well with #8f7dfe?

For interface work: #F5F4FA as the surface, #C6C0ED for borders, #564B9B for secondary text, #CCB600 as an accent and #13017F for hover and pressed states. For a palette, the analogous pair #7DABFE and #D07DFE stays calm, while #ECFE7D is the loudest partner.

What is #8f7dfe in CMYK for printing?

cmyk(44%, 51%, 0%, 0%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #8f7dfe warm or cool?

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

Work with #8f7dfe in the Color Lab