Skip to content

#9c8cf2

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

RGB
156, 140, 242
HSL
249°, 80%, 75%
CMYK
36, 42, 0, 5
Luminance
0.3223

At a glance

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

Hex
#9c8cf2
Hue
249°
blue
Saturation
80%
electric
Lightness
75%
light
Brightness
95%
HSV value
Perceived
63%
weighted brightness
Luminance
0.3223
WCAG relative
Temperature
Cool
78/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
7.45:1
Closest name
Medium Purple
ΔE2000 8.6
Where it sits
Hue249° of 360°
Saturation80%
Lightness75%
Temperature
Warm ← → Cool78% 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#9c8cf2
RGBrgb(156, 140, 242)
HSLhsl(249, 80%, 75%)
CMYKcmyk(36%, 42%, 0%, 5%)
LABlab(63.5 29.1 -49.3)
LCHlch(63.5 57.2 300.5)
OKLCHoklch(0.697 0.147 289.2)
Decimal10259698
Display P3color(display-p3 0.612 0.549 0.949)

Copy-ready code

/* CSS */
color: #9c8cf2;
background-color: #9c8cf2;
/* Tailwind (arbitrary) */
class="text-[#9c8cf2] bg-[#9c8cf2]"
/* SCSS */
$brand: #9c8cf2;
/* SwiftUI */
Color(red: 0.612, green: 0.549, blue: 0.949)
/* Android */
Color.parseColor("#9c8cf2")
/* Flutter */
Color(0xFF9C8CF2)
/* Python / OpenCV (BGR) */
(242, 140, 156)

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

Accessibility — WCAG contrast

Aa
#9c8cf2 on white: 2.82:1
AA ✗ fail · AA-large · AAA
Aa
#9c8cf2 on black: 7.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6A9CF6
deuteranopia · #6A97F0
tritanopia · #869FB3

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #9c8cf2 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
#E9E6F9
#CEC7F5
#9c8cf2
#7D68EE
#5135E8
#3719DC
#2E15B7
#251193
#1E106A
#130A42
Base = 300Lightest = 50 · #F4F3FCDarkest = 950 · #130A42
:root {
  --brand-50: #F4F3FC;
  --brand-100: #E9E6F9;
  --brand-200: #CEC7F5;
  --brand-300: #9c8cf2;
  --brand-400: #7D68EE;
  --brand-500: #5135E8;
  --brand-600: #3719DC;
  --brand-700: #2E15B7;
  --brand-800: #251193;
  --brand-900: #1E106A;
  --brand-950: #130A42;
  --brand: #9c8cf2;
  --brand-ink: #000000;
}

Colors that work with #9c8cf2

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#C7C0ED
Hairlines and dividers
Muted text#574B9B
Captions on the surface
Accent#BCAC10
Second voice, not a rival
Dark variant#1D0D73
Hover, pressed, headers
Light variant#EBE8FC
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 #9c8cf2

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#E2F28C
Analogous left#8CAFF2
Analogous right#CF8CF2
Split-complement 1#F2CF8C
Split-complement 2#AFF28C
Triadic 1#F29C8C
Triadic 2#8CF29C
Tetradic#F28CAF

RGB percentages

Red61.2%
Green54.9%
Blue94.9%

CMYK percentages

Cyan35.5%
Magenta42.1%
Yellow0.0%
Key (black)5.1%

Color previews

#9c8cf2 text on a black background

contrast 7.45:1

Card sample

#9c8cf2 text on a white background

contrast 2.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(156, 140, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(156, 140, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9c8cf2;
background: linear-gradient(135deg, #9c8cf2, #E08CF2);

Monochromatic scale

Palettes built from #9c8cf2

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.

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

#9c8cf2, answered

What color is #9c8cf2?

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

What is the RGB value of #9c8cf2?

rgb(156, 140, 242) — 156 red, 140 green and 242 blue out of 255, or 61.2% / 54.9% / 94.9% by channel.

Is #9c8cf2 a light or a dark color?

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

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

Black. It scores 7.45:1 against #9c8cf2, versus 2.82:1 for white — AAA at any size.

What is the complementary color of #9c8cf2?

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

What colors go well with #9c8cf2?

For interface work: #F5F4FA as the surface, #C7C0ED for borders, #574B9B for secondary text, #BCAC10 as an accent and #1D0D73 for hover and pressed states. For a palette, the analogous pair #8CAFF2 and #CF8CF2 stays calm, while #E2F28C is the loudest partner.

What is #9c8cf2 in CMYK for printing?

cmyk(36%, 42%, 0%, 5%). 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 #9c8cf2 warm or cool?

Cool — it scores 78 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C18CF2; nudged cooler, #8BA1F3.

Work with #9c8cf2 in the Color Lab