Skip to content

#9b7cfb

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

RGB
155, 124, 251
HSL
255°, 94%, 74%
CMYK
38, 51, 0, 2
Luminance
0.2835

At a glance

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

Hex
#9b7cfb
Hue
255°
blue
Saturation
94%
electric
Lightness
74%
light
Brightness
98%
HSV value
Perceived
60%
weighted brightness
Luminance
0.2835
WCAG relative
Temperature
Cool
75/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
6.67:1
Closest name
Medium Purple
ΔE2000 5.8
Where it sits
Hue255° of 360°
Saturation94%
Lightness74%
Temperature
Warm ← → Cool75% 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#9b7cfb
RGBrgb(155, 124, 251)
HSLhsl(255, 94%, 74%)
CMYKcmyk(38%, 51%, 0%, 2%)
LABlab(60.2 40.3 -59.5)
LCHlch(60.2 71.9 304.1)
OKLCHoklch(0.673 0.182 292.0)
Decimal10190075
Display P3color(display-p3 0.608 0.486 0.984)

Copy-ready code

/* CSS */
color: #9b7cfb;
background-color: #9b7cfb;
/* Tailwind (arbitrary) */
class="text-[#9b7cfb] bg-[#9b7cfb]"
/* SCSS */
$brand: #9b7cfb;
/* SwiftUI */
Color(red: 0.608, green: 0.486, blue: 0.984)
/* Android */
Color.parseColor("#9b7cfb")
/* Flutter */
Color(0xFF9B7CFB)
/* Python / OpenCV (BGR) */
(251, 124, 155)

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

Accessibility — WCAG contrast

Aa
#9b7cfb on white: 3.15:1
AA ✗ fail · AA-large · AAA
Aa
#9b7cfb on black: 6.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4893FF
deuteranopia · #4D8FF8
tritanopia · #8296B0

Color scale — 50 to 950

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

#F4F2FD
#EAE4FB
#D0C2FA
#9b7cfb
#825CFA
#5925F8
#3F07EE
#3506C6
#2A059E
#220872
#150547
Base = 300Lightest = 50 · #F4F2FDDarkest = 950 · #150547
:root {
  --brand-50: #F4F2FD;
  --brand-100: #EAE4FB;
  --brand-200: #D0C2FA;
  --brand-300: #9b7cfb;
  --brand-400: #825CFA;
  --brand-500: #5925F8;
  --brand-600: #3F07EE;
  --brand-700: #3506C6;
  --brand-800: #2A059E;
  --brand-900: #220872;
  --brand-950: #150547;
  --brand: #9b7cfb;
  --brand-ink: #000000;
}

Colors that work with #9b7cfb

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#F6F4FA
Tinted page background
Border#CBC0ED
Hairlines and dividers
Muted text#5E4B9B
Captions on the surface
Accent#CAC902
Second voice, not a rival
Dark variant#21047C
Hover, pressed, headers
Light variant#ECE6FE
Selected rows, tints
Dark surface#181424
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 #9b7cfb

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#DCFB7C
Analogous left#7C9CFB
Analogous right#DA7CFB
Split-complement 1#FBDA7C
Split-complement 2#9CFB7C
Triadic 1#FB9B7C
Triadic 2#7CFB9B
Tetradic#FB7C9C

RGB percentages

Red60.8%
Green48.6%
Blue98.4%

CMYK percentages

Cyan38.2%
Magenta50.6%
Yellow0.0%
Key (black)1.6%

Color previews

#9b7cfb text on a black background

contrast 6.67:1

Card sample

#9b7cfb text on a white background

contrast 3.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(155, 124, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(155, 124, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9b7cfb;
background: linear-gradient(135deg, #9b7cfb, #F07CFB);

Monochromatic scale

Palettes built from #9b7cfb

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.

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

#9b7cfb, answered

What color is #9b7cfb?

#9b7cfb is a light electric blue, closest to Medium Purple (ΔE2000 5.8). It sits at 255° on the hue wheel with 94% saturation and 74% lightness, which reads as cool.

What is the RGB value of #9b7cfb?

rgb(155, 124, 251) — 155 red, 124 green and 251 blue out of 255, or 60.8% / 48.6% / 98.4% by channel.

Is #9b7cfb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2835 and perceived brightness is 60%, so black text on it reaches 6.67:1.

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

Black. It scores 6.67:1 against #9b7cfb, versus 3.15:1 for white — AA at any size.

What is the complementary color of #9b7cfb?

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

What colors go well with #9b7cfb?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5E4B9B for secondary text, #CAC902 as an accent and #21047C for hover and pressed states. For a palette, the analogous pair #7C9CFB and #DA7CFB stays calm, while #DCFB7C is the loudest partner.

What is #9b7cfb in CMYK for printing?

cmyk(38%, 51%, 0%, 2%). 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 #9b7cfb warm or cool?

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

Work with #9b7cfb in the Color Lab