Skip to content

#5b0eb7

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

RGB
91, 14, 183
HSL
267°, 86%, 39%
CMYK
50, 92, 0, 28
Luminance
0.0596

At a glance

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

Hex
#5b0eb7
Hue
267°
violet
Saturation
86%
electric
Lightness
39%
dark
Brightness
72%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0596
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
White
9.58:1
Closest name
Medium Blue
ΔE2000 6.8
Where it sits
Hue267° of 360°
Saturation86%
Lightness39%
Temperature
Warm ← → Cool68% 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#5b0eb7
RGBrgb(91, 14, 183)
HSLhsl(267, 86%, 39%)
CMYKcmyk(50%, 92%, 0%, 28%)
LABlab(29.3 62.5 -71.2)
LCHlch(29.3 94.7 311.3)
OKLCHoklch(0.420 0.223 293.9)
Decimal5967543
Display P3color(display-p3 0.357 0.055 0.718)

Copy-ready code

/* CSS */
color: #5b0eb7;
background-color: #5b0eb7;
/* Tailwind (arbitrary) */
class="text-[#5b0eb7] bg-[#5b0eb7]"
/* SCSS */
$brand: #5b0eb7;
/* SwiftUI */
Color(red: 0.357, green: 0.055, blue: 0.718)
/* Android */
Color.parseColor("#5b0eb7")
/* Flutter */
Color(0xFF5B0EB7)
/* Python / OpenCV (BGR) */
(183, 14, 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 #5b0eb7 · 9.58:1
Use #ffffffAAA at every size.
Aa
White text · 9.58:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.19:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5b0eb7 as text scores 9.58:1 on white and 2.19:1 on black.

Accessibility — WCAG contrast

Aa
#5b0eb7 on white: 9.58:1
AA ✓ pass · AA-large · AAA
Aa
#5b0eb7 on black: 2.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0047BB
deuteranopia · #0042B4
tritanopia · #3D496B

Color scale — 50 to 950

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

#F7F2FD
#EFE5FA
#DCC5F7
#C397F7
#A463F3
#862FEF
#7111E3
#5b0eb7
#4B0C98
#390D6E
#240844
Base = 700Lightest = 50 · #F7F2FDDarkest = 950 · #240844
:root {
  --brand-50: #F7F2FD;
  --brand-100: #EFE5FA;
  --brand-200: #DCC5F7;
  --brand-300: #C397F7;
  --brand-400: #A463F3;
  --brand-500: #862FEF;
  --brand-600: #7111E3;
  --brand-700: #5b0eb7;
  --brand-800: #4B0C98;
  --brand-900: #390D6E;
  --brand-950: #240844;
  --brand: #5b0eb7;
  --brand-ink: #ffffff;
}

Colors that work with #5b0eb7

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#D4C0ED
Hairlines and dividers
Muted text#6F4B9B
Captions on the surface
Accent#9CC20A
Second voice, not a rival
Dark variant#3B0976
Hover, pressed, headers
Light variant#F1E7FD
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 #5b0eb7

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#6AB70E
Analogous left#0E16B7
Analogous right#AF0EB7
Split-complement 1#B7AF0E
Split-complement 2#16B70E
Triadic 1#B75B0E
Triadic 2#0EB75B
Tetradic#B70E16

RGB percentages

Red35.7%
Green5.5%
Blue71.8%

CMYK percentages

Cyan50.3%
Magenta92.3%
Yellow0.0%
Key (black)28.2%

Color previews

#5b0eb7 text on a black background

contrast 2.19:1

Card sample

#5b0eb7 text on a white background

contrast 9.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5b0eb7

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.

#5b0eb7 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.

#5b0eb7, answered

What color is #5b0eb7?

#5b0eb7 is a dark electric violet, closest to Medium Blue (ΔE2000 6.8). It sits at 267° on the hue wheel with 86% saturation and 39% lightness, which reads as cool.

What is the RGB value of #5b0eb7?

rgb(91, 14, 183) — 91 red, 14 green and 183 blue out of 255, or 35.7% / 5.5% / 71.8% by channel.

Is #5b0eb7 a light or a dark color?

It is a dark color. Relative luminance is 0.0596 and perceived brightness is 31%, so white text on it reaches 9.58:1.

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

White. It scores 9.58:1 against #5b0eb7, versus 2.19:1 for black — AAA at any size.

What is the complementary color of #5b0eb7?

#6AB70E sits directly opposite on the wheel. Softer options are the split-complements #B7AF0E and #16B70E, which give the same contrast with far less vibration.

What colors go well with #5b0eb7?

For interface work: #F7F4FA as the surface, #D4C0ED for borders, #6F4B9B for secondary text, #9CC20A as an accent and #3B0976 for hover and pressed states. For a palette, the analogous pair #0E16B7 and #AF0EB7 stays calm, while #6AB70E is the loudest partner.

What is #5b0eb7 in CMYK for printing?

cmyk(50%, 92%, 0%, 28%). 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 #5b0eb7 warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #990EB7; nudged cooler, #1B0CB9.

Work with #5b0eb7 in the Color Lab