Skip to content

#9f8df0

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

RGB
159, 141, 240
HSL
251°, 77%, 75%
CMYK
34, 41, 0, 6
Luminance
0.3271

At a glance

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

Hex
#9f8df0
Hue
251°
blue
Saturation
77%
electric
Lightness
75%
light
Brightness
94%
HSV value
Perceived
63%
weighted brightness
Luminance
0.3271
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
7.54:1
Closest name
Medium Purple
ΔE2000 8.7
Where it sits
Hue251° of 360°
Saturation77%
Lightness75%
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#9f8df0
RGBrgb(159, 141, 240)
HSLhsl(251, 77%, 75%)
CMYKcmyk(34%, 41%, 0%, 6%)
LABlab(63.9 28.8 -47.5)
LCHlch(63.9 55.6 301.2)
OKLCHoklch(0.700 0.143 290.6)
Decimal10456560
Display P3color(display-p3 0.624 0.553 0.941)

Copy-ready code

/* CSS */
color: #9f8df0;
background-color: #9f8df0;
/* Tailwind (arbitrary) */
class="text-[#9f8df0] bg-[#9f8df0]"
/* SCSS */
$brand: #9f8df0;
/* SwiftUI */
Color(red: 0.624, green: 0.553, blue: 0.941)
/* Android */
Color.parseColor("#9f8df0")
/* Flutter */
Color(0xFF9F8DF0)
/* Python / OpenCV (BGR) */
(240, 141, 159)

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 #9f8df0 · 7.54:1
Use #000000AAA at every size.
Aa
White text · 2.78:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.54:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #9f8df0 as text scores 2.78:1 on white and 7.54:1 on black.

Accessibility — WCAG contrast

Aa
#9f8df0 on white: 2.78:1
AA ✗ fail · AA-large · AAA
Aa
#9f8df0 on black: 7.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6E9DF4
deuteranopia · #6F99EE
tritanopia · #8BA0B3

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #9f8df0 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.

#F4F3FC
#EAE7F9
#D0C7F4
#9f8df0
#826AEB
#5839E5
#3F1DD8
#3418B4
#2A1390
#221268
#150B41
Base = 300Lightest = 50 · #F4F3FCDarkest = 950 · #150B41
:root {
  --brand-50: #F4F3FC;
  --brand-100: #EAE7F9;
  --brand-200: #D0C7F4;
  --brand-300: #9f8df0;
  --brand-400: #826AEB;
  --brand-500: #5839E5;
  --brand-600: #3F1DD8;
  --brand-700: #3418B4;
  --brand-800: #2A1390;
  --brand-900: #221268;
  --brand-950: #150B41;
  --brand: #9f8df0;
  --brand-ink: #000000;
}

Colors that work with #9f8df0

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#C8C0ED
Hairlines and dividers
Muted text#594B9B
Captions on the surface
Accent#B9AC13
Second voice, not a rival
Dark variant#210F71
Hover, pressed, headers
Light variant#ECE8FC
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 #9f8df0

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • 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
  • Text of any size on white — fails WCAG AA
  • 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#DEF08D
Analogous left#8DADF0
Analogous right#D08DF0
Split-complement 1#F0D08D
Split-complement 2#ADF08D
Triadic 1#F09F8D
Triadic 2#8DF09F
Tetradic#F08DAD

RGB percentages

Red62.4%
Green55.3%
Blue94.1%

CMYK percentages

Cyan33.8%
Magenta41.3%
Yellow0.0%
Key (black)5.9%

Color previews

#9f8df0 text on a black background

contrast 7.54:1

Card sample

#9f8df0 text on a white background

contrast 2.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #9f8df0;
Background color
Panel with #9f8df0 background
background-color: #9f8df0;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(159, 141, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 141, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9f8df0;
background: linear-gradient(135deg, #9f8df0, #E18DF0);

Monochromatic scale

Palettes built from #9f8df0

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.

#9f8df0 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.

#9f8df0, answered

What color is #9f8df0?

#9f8df0 is a light electric blue, closest to Medium Purple (ΔE2000 8.7). It sits at 251° on the hue wheel with 77% saturation and 75% lightness, which reads as cool.

What is the RGB value of #9f8df0?

rgb(159, 141, 240) — 159 red, 141 green and 240 blue out of 255, or 62.4% / 55.3% / 94.1% by channel.

Is #9f8df0 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3271 and perceived brightness is 63%, so black text on it reaches 7.54:1.

Should I use black or white text on #9f8df0?

Black. It scores 7.54:1 against #9f8df0, versus 2.78:1 for white — AAA at any size.

What is the complementary color of #9f8df0?

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

What colors go well with #9f8df0?

For interface work: #F5F4FA as the surface, #C8C0ED for borders, #594B9B for secondary text, #B9AC13 as an accent and #210F71 for hover and pressed states. For a palette, the analogous pair #8DADF0 and #D08DF0 stays calm, while #DEF08D is the loudest partner.

What is #9f8df0 in CMYK for printing?

cmyk(34%, 41%, 0%, 6%). 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 #9f8df0 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 #C38DF0; nudged cooler, #8C9EF1.

Work with #9f8df0 in the Color Lab