Skip to content

#5b0afd

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

RGB
91, 10, 253
HSL
260°, 98%, 52%
CMYK
64, 96, 0, 1
Luminance
0.0953

At a glance

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

Hex
#5b0afd
Hue
260°
violet
Saturation
98%
electric
Lightness
52%
balanced
Brightness
99%
HSV value
Perceived
39%
weighted brightness
Luminance
0.0953
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.22:1
Closest name
Blue
ΔE2000 4.8
Where it sits
Hue260° of 360°
Saturation98%
Lightness52%
Temperature
Warm ← → Cool72% 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#5b0afd
RGBrgb(91, 10, 253)
HSLhsl(260, 98%, 52%)
CMYKcmyk(64%, 96%, 0%, 1%)
LABlab(37.0 79.3 -98.8)
LCHlch(37.0 126.7 308.7)
OKLCHoklch(0.494 0.291 281.9)
Decimal5966589
Display P3color(display-p3 0.357 0.039 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5b0afd on white: 7.22:1
AA ✓ pass · AA-large · AAA
Aa
#5b0afd on black: 2.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005EFF
deuteranopia · #004FF9
tritanopia · #006895

Color scale — 50 to 950

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

#F5F1FE
#ECE3FC
#D4C1FB
#B490FE
#8F58FE
#6A20FD
#5b0afd
#4502CA
#3701A2
#2B0675
#1B0449
Base = 600Lightest = 50 · #F5F1FEDarkest = 950 · #1B0449
:root {
  --brand-50: #F5F1FE;
  --brand-100: #ECE3FC;
  --brand-200: #D4C1FB;
  --brand-300: #B490FE;
  --brand-400: #8F58FE;
  --brand-500: #6A20FD;
  --brand-600: #5b0afd;
  --brand-700: #4502CA;
  --brand-800: #3701A2;
  --brand-900: #2B0675;
  --brand-950: #1B0449;
  --brand: #5b0afd;
  --brand-ink: #ffffff;
}

Colors that work with #5b0afd

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#CFC0ED
Hairlines and dividers
Muted text#654B9B
Captions on the surface
Accent#BBCC00
Second voice, not a rival
Dark variant#2B017E
Hover, pressed, headers
Light variant#EEE6FF
Selected rows, tints
Dark surface#191424
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 #5b0afd

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#ACFD0A
Analogous left#0A33FD
Analogous right#D50AFD
Split-complement 1#FDD50A
Split-complement 2#33FD0A
Triadic 1#FD5B0A
Triadic 2#0AFD5B
Tetradic#FD0A33

RGB percentages

Red35.7%
Green3.9%
Blue99.2%

CMYK percentages

Cyan64.0%
Magenta96.0%
Yellow0.0%
Key (black)0.8%

Color previews

#5b0afd text on a black background

contrast 2.91:1

Card sample

#5b0afd text on a white background

contrast 7.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5b0afd

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.

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

#5b0afd, answered

What color is #5b0afd?

#5b0afd is a balanced electric violet, closest to Blue (ΔE2000 4.8). It sits at 260° on the hue wheel with 98% saturation and 52% lightness, which reads as cool.

What is the RGB value of #5b0afd?

rgb(91, 10, 253) — 91 red, 10 green and 253 blue out of 255, or 35.7% / 3.9% / 99.2% by channel.

Is #5b0afd a light or a dark color?

It is a dark color. Relative luminance is 0.0953 and perceived brightness is 39%, so white text on it reaches 7.22:1.

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

White. It scores 7.22:1 against #5b0afd, versus 2.91:1 for black — AAA at any size.

What is the complementary color of #5b0afd?

#ACFD0A sits directly opposite on the wheel. Softer options are the split-complements #FDD50A and #33FD0A, which give the same contrast with far less vibration.

What colors go well with #5b0afd?

For interface work: #F6F4FA as the surface, #CFC0ED for borders, #654B9B for secondary text, #BBCC00 as an accent and #2B017E for hover and pressed states. For a palette, the analogous pair #0A33FD and #D50AFD stays calm, while #ACFD0A is the loudest partner.

What is #5b0afd in CMYK for printing?

cmyk(64%, 96%, 0%, 1%). 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 #5b0afd warm or cool?

Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B40AFD; nudged cooler, #080FFF.

Work with #5b0afd in the Color Lab