Skip to content

#9b7fe2

a light, vivid violet · cool · closest name: Medium Purple

RGB
155, 127, 226
HSL
257°, 63%, 69%
CMYK
31, 44, 0, 11
Luminance
0.2764

At a glance

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

Hex
#9b7fe2
Hue
257°
violet
Saturation
63%
vivid
Lightness
69%
light
Brightness
89%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2764
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.53:1
Closest name
Medium Purple
ΔE2000 4.5
Where it sits
Hue257° of 360°
Saturation63%
Lightness69%
Temperature
Warm ← → Cool74% 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#9b7fe2
RGBrgb(155, 127, 226)
HSLhsl(257, 63%, 69%)
CMYKcmyk(31%, 44%, 0%, 11%)
LABlab(59.6 32.1 -46.7)
LCHlch(59.6 56.7 304.5)
OKLCHoklch(0.664 0.145 295.2)
Decimal10190818
Display P3color(display-p3 0.608 0.498 0.886)

Copy-ready code

/* CSS */
color: #9b7fe2;
background-color: #9b7fe2;
/* Tailwind (arbitrary) */
class="text-[#9b7fe2] bg-[#9b7fe2]"
/* SCSS */
$brand: #9b7fe2;
/* SwiftUI */
Color(red: 0.608, green: 0.498, blue: 0.886)
/* Android */
Color.parseColor("#9b7fe2")
/* Flutter */
Color(0xFF9B7FE2)
/* Python / OpenCV (BGR) */
(226, 127, 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 #9b7fe2 · 6.53:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.22: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: #9b7fe2 as text scores 3.22:1 on white and 6.53:1 on black.

Accessibility — WCAG contrast

Aa
#9b7fe2 on white: 3.22:1
AA ✗ fail · AA-large · AAA
Aa
#9b7fe2 on black: 6.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6090E6
deuteranopia · #658EE0
tritanopia · #8B91A6

Color scale — 50 to 950

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

#F6F4FB
#ECE8F7
#D6CBF0
#B8A4EA
#9b7fe2
#7048D6
#592DC8
#4A26A6
#3B1E85
#2E1A61
#1D103C
Base = 400Lightest = 50 · #F6F4FBDarkest = 950 · #1D103C
:root {
  --brand-50: #F6F4FB;
  --brand-100: #ECE8F7;
  --brand-200: #D6CBF0;
  --brand-300: #B8A4EA;
  --brand-400: #9b7fe2;
  --brand-500: #7048D6;
  --brand-600: #592DC8;
  --brand-700: #4A26A6;
  --brand-800: #3B1E85;
  --brand-900: #2E1A61;
  --brand-950: #1D103C;
  --brand: #9b7fe2;
  --brand-ink: #000000;
}

Colors that work with #9b7fe2

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#CCC0ED
Hairlines and dividers
Muted text#614B9B
Captions on the surface
Accent#A6AA22
Second voice, not a rival
Dark variant#2E1868
Hover, pressed, headers
Light variant#EFEAFA
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 #9b7fe2

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#C6E27F
Analogous left#7F94E2
Analogous right#CD7FE2
Split-complement 1#E2CD7F
Split-complement 2#94E27F
Triadic 1#E29B7F
Triadic 2#7FE29B
Tetradic#E27F94

RGB percentages

Red60.8%
Green49.8%
Blue88.6%

CMYK percentages

Cyan31.4%
Magenta43.8%
Yellow0.0%
Key (black)11.4%

Color previews

#9b7fe2 text on a black background

contrast 6.53:1

Card sample

#9b7fe2 text on a white background

contrast 3.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b7fe2

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.

#9b7fe2 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Converts to four-color process without much drama. Proof it anyway.

#9b7fe2, answered

What color is #9b7fe2?

#9b7fe2 is a light vivid violet, closest to Medium Purple (ΔE2000 4.5). It sits at 257° on the hue wheel with 63% saturation and 69% lightness, which reads as cool.

What is the RGB value of #9b7fe2?

rgb(155, 127, 226) — 155 red, 127 green and 226 blue out of 255, or 60.8% / 49.8% / 88.6% by channel.

Is #9b7fe2 a light or a dark color?

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

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

Black. It scores 6.53:1 against #9b7fe2, versus 3.22:1 for white — AA at any size.

What is the complementary color of #9b7fe2?

#C6E27F sits directly opposite on the wheel. Softer options are the split-complements #E2CD7F and #94E27F, which give the same contrast with far less vibration.

What colors go well with #9b7fe2?

For interface work: #F6F4FA as the surface, #CCC0ED for borders, #614B9B for secondary text, #A6AA22 as an accent and #2E1868 for hover and pressed states. For a palette, the analogous pair #7F94E2 and #CD7FE2 stays calm, while #C6E27F is the loudest partner.

What is #9b7fe2 in CMYK for printing?

cmyk(31%, 44%, 0%, 11%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #9b7fe2 warm or cool?

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

Work with #9b7fe2 in the Color Lab