Skip to content

#5b2fdb

a balanced, vivid violet · cool · closest name: Blue

RGB
91, 47, 219
HSL
255°, 71%, 52%
CMYK
58, 79, 0, 14
Luminance
0.0937

At a glance

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

Hex
#5b2fdb
Hue
255°
violet
Saturation
71%
vivid
Lightness
52%
balanced
Brightness
86%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0937
WCAG relative
Temperature
Cool
75/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.31:1
Closest name
Blue
ΔE2000 6.6
Where it sits
Hue255° of 360°
Saturation71%
Lightness52%
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#5b2fdb
RGBrgb(91, 47, 219)
HSLhsl(255, 71%, 52%)
CMYKcmyk(58%, 79%, 0%, 14%)
LABlab(36.7 60.6 -80.0)
LCHlch(36.7 100.4 307.2)
OKLCHoklch(0.482 0.238 284.8)
Decimal5976027
Display P3color(display-p3 0.357 0.184 0.859)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5b2fdb on white: 7.31:1
AA ✓ pass · AA-large · AAA
Aa
#5b2fdb on black: 2.87:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005BE0
deuteranopia · #0051D8
tritanopia · #086285

Color scale — 50 to 950

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

#F5F3FC
#ECE7F8
#D4C9F2
#B49FEE
#8E70E6
#5b2fdb
#5024D1
#431EAE
#35188B
#2A1665
#1A0D3F
Base = 500Lightest = 50 · #F5F3FCDarkest = 950 · #1A0D3F
:root {
  --brand-50: #F5F3FC;
  --brand-100: #ECE7F8;
  --brand-200: #D4C9F2;
  --brand-300: #B49FEE;
  --brand-400: #8E70E6;
  --brand-500: #5b2fdb;
  --brand-600: #5024D1;
  --brand-700: #431EAE;
  --brand-800: #35188B;
  --brand-900: #2A1665;
  --brand-950: #1A0D3F;
  --brand: #5b2fdb;
  --brand-ink: #ffffff;
}

Colors that work with #5b2fdb

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#F6F4FA
Tinted page background
Border#CBC0ED
Hairlines and dividers
Muted text#5F4B9B
Captions on the surface
Accent#B1B21A
Second voice, not a rival
Dark variant#2A136D
Hover, pressed, headers
Light variant#EEE9FB
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 #5b2fdb

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
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • 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#AFDB2F
Analogous left#2F59DB
Analogous right#B12FDB
Split-complement 1#DBB12F
Split-complement 2#59DB2F
Triadic 1#DB5B2F
Triadic 2#2FDB5B
Tetradic#DB2F59

RGB percentages

Red35.7%
Green18.4%
Blue85.9%

CMYK percentages

Cyan58.4%
Magenta78.5%
Yellow0.0%
Key (black)14.1%

Color previews

#5b2fdb text on a black background

contrast 2.87:1

Card sample

#5b2fdb text on a white background

contrast 7.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5b2fdb

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.

#5b2fdb 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

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

#5b2fdb, answered

What color is #5b2fdb?

#5b2fdb is a balanced vivid violet, closest to Blue (ΔE2000 6.6). It sits at 255° on the hue wheel with 71% saturation and 52% lightness, which reads as cool.

What is the RGB value of #5b2fdb?

rgb(91, 47, 219) — 91 red, 47 green and 219 blue out of 255, or 35.7% / 18.4% / 85.9% by channel.

Is #5b2fdb a light or a dark color?

It is a dark color. Relative luminance is 0.0937 and perceived brightness is 38%, so white text on it reaches 7.31:1.

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

White. It scores 7.31:1 against #5b2fdb, versus 2.87:1 for black — AAA at any size.

What is the complementary color of #5b2fdb?

#AFDB2F sits directly opposite on the wheel. Softer options are the split-complements #DBB12F and #59DB2F, which give the same contrast with far less vibration.

What colors go well with #5b2fdb?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5F4B9B for secondary text, #B1B21A as an accent and #2A136D for hover and pressed states. For a palette, the analogous pair #2F59DB and #B12FDB stays calm, while #AFDB2F is the loudest partner.

What is #5b2fdb in CMYK for printing?

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

Is #5b2fdb 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 #9A2FDB; nudged cooler, #2D40DD.

Work with #5b2fdb in the Color Lab