Skip to content

#5b0bc9

a dark, electric violet · cool · closest name: Medium Blue

RGB
91, 11, 201
HSL
265°, 90%, 42%
CMYK
55, 95, 0, 21
Luminance
0.0668

At a glance

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

Hex
#5b0bc9
Hue
265°
violet
Saturation
90%
electric
Lightness
42%
dark
Brightness
79%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0668
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Electric
Best ink
White
8.99:1
Closest name
Medium Blue
ΔE2000 6.4
Where it sits
Hue265° of 360°
Saturation90%
Lightness42%
Temperature
Warm ← → Cool69% 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#5b0bc9
RGBrgb(91, 11, 201)
HSLhsl(265, 90%, 42%)
CMYKcmyk(55%, 95%, 0%, 21%)
LABlab(31.1 67.2 -78.8)
LCHlch(31.1 103.6 310.4)
OKLCHoklch(0.438 0.241 290.1)
Decimal5966793
Display P3color(display-p3 0.357 0.043 0.788)

Copy-ready code

/* CSS */
color: #5b0bc9;
background-color: #5b0bc9;
/* Tailwind (arbitrary) */
class="text-[#5b0bc9] bg-[#5b0bc9]"
/* SCSS */
$brand: #5b0bc9;
/* SwiftUI */
Color(red: 0.357, green: 0.043, blue: 0.788)
/* Android */
Color.parseColor("#5b0bc9")
/* Flutter */
Color(0xFF5B0BC9)
/* Python / OpenCV (BGR) */
(201, 11, 91)

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#ffffff on #5b0bc9 · 8.99:1
Use #ffffffAAA at every size.
Aa
White text · 8.99:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.34:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5b0bc9 as text scores 8.99:1 on white and 2.34:1 on black.

Accessibility — WCAG contrast

Aa
#5b0bc9 on white: 8.99:1
AA ✓ pass · AA-large · AAA
Aa
#5b0bc9 on black: 2.34:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004CCE
deuteranopia · #0045C6
tritanopia · #2D5076

Color scale — 50 to 950

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

#F6F2FD
#EEE5FB
#DAC3F8
#BF95F9
#9F5FF6
#7F2AF3
#690DE8
#5b0bc9
#46089B
#350B70
#210746
Base = 700Lightest = 50 · #F6F2FDDarkest = 950 · #210746
:root {
  --brand-50: #F6F2FD;
  --brand-100: #EEE5FB;
  --brand-200: #DAC3F8;
  --brand-300: #BF95F9;
  --brand-400: #9F5FF6;
  --brand-500: #7F2AF3;
  --brand-600: #690DE8;
  --brand-700: #5b0bc9;
  --brand-800: #46089B;
  --brand-900: #350B70;
  --brand-950: #210746;
  --brand: #5b0bc9;
  --brand-ink: #ffffff;
}

Colors that work with #5b0bc9

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F7F4FA
Tinted page background
Border#D3C0ED
Hairlines and dividers
Muted text#6C4B9B
Captions on the surface
Accent#A5C507
Second voice, not a rival
Dark variant#370779
Hover, pressed, headers
Light variant#F0E7FE
Selected rows, tints
Dark surface#1B1424
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 #5b0bc9

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black 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#79C90B
Analogous left#0B1AC9
Analogous right#BA0BC9
Split-complement 1#C9BA0B
Split-complement 2#1AC90B
Triadic 1#C95B0B
Triadic 2#0BC95B
Tetradic#C90B1A

RGB percentages

Red35.7%
Green4.3%
Blue78.8%

CMYK percentages

Cyan54.7%
Magenta94.5%
Yellow0.0%
Key (black)21.2%

Color previews

#5b0bc9 text on a black background

contrast 2.34:1

Card sample

#5b0bc9 text on a white background

contrast 8.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5b0bc9;
Background color
Panel with #5b0bc9 background
background-color: #5b0bc9;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(91, 11, 201, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(91, 11, 201, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5b0bc9;
background: linear-gradient(135deg, #5b0bc9, #C90BB8);

Monochromatic scale

Palettes built from #5b0bc9

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.

#5b0bc9 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
ButtonsLinksFocus statesCharts
Print note

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

#5b0bc9, answered

What color is #5b0bc9?

#5b0bc9 is a dark electric violet, closest to Medium Blue (ΔE2000 6.4). It sits at 265° on the hue wheel with 90% saturation and 42% lightness, which reads as cool.

What is the RGB value of #5b0bc9?

rgb(91, 11, 201) — 91 red, 11 green and 201 blue out of 255, or 35.7% / 4.3% / 78.8% by channel.

Is #5b0bc9 a light or a dark color?

It is a dark color. Relative luminance is 0.0668 and perceived brightness is 33%, so white text on it reaches 8.99:1.

Should I use black or white text on #5b0bc9?

White. It scores 8.99:1 against #5b0bc9, versus 2.34:1 for black — AAA at any size.

What is the complementary color of #5b0bc9?

#79C90B sits directly opposite on the wheel. Softer options are the split-complements #C9BA0B and #1AC90B, which give the same contrast with far less vibration.

What colors go well with #5b0bc9?

For interface work: #F7F4FA as the surface, #D3C0ED for borders, #6C4B9B for secondary text, #A5C507 as an accent and #370779 for hover and pressed states. For a palette, the analogous pair #0B1AC9 and #BA0BC9 stays calm, while #79C90B is the loudest partner.

What is #5b0bc9 in CMYK for printing?

cmyk(55%, 95%, 0%, 21%). 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 #5b0bc9 warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A10BC9; nudged cooler, #1409CB.

Work with #5b0bc9 in the Color Lab