Skip to content

#5f13eb

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

RGB
95, 19, 235
HSL
261°, 85%, 50%
CMYK
60, 92, 0, 8
Luminance
0.0890

At a glance

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

Hex
#5f13eb
Hue
261°
violet
Saturation
85%
electric
Lightness
50%
balanced
Brightness
92%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0890
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.56:1
Closest name
Blue
ΔE2000 5.1
Where it sits
Hue261° of 360°
Saturation85%
Lightness50%
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#5f13eb
RGBrgb(95, 19, 235)
HSLhsl(261, 85%, 50%)
CMYKcmyk(60%, 92%, 0%, 8%)
LABlab(35.8 73.9 -90.6)
LCHlch(35.8 116.9 309.2)
OKLCHoklch(0.481 0.271 285.5)
Decimal6231019
Display P3color(display-p3 0.373 0.075 0.922)

Copy-ready code

/* CSS */
color: #5f13eb;
background-color: #5f13eb;
/* Tailwind (arbitrary) */
class="text-[#5f13eb] bg-[#5f13eb]"
/* SCSS */
$brand: #5f13eb;
/* SwiftUI */
Color(red: 0.373, green: 0.075, blue: 0.922)
/* Android */
Color.parseColor("#5f13eb")
/* Flutter */
Color(0xFF5F13EB)
/* Python / OpenCV (BGR) */
(235, 19, 95)

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

Accessibility — WCAG contrast

Aa
#5f13eb on white: 7.56:1
AA ✓ pass · AA-large · AAA
Aa
#5f13eb on black: 2.78:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0059F0
deuteranopia · #004EE8
tritanopia · #00618B

Color scale — 50 to 950

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

#F6F2FC
#EDE5FA
#D6C5F7
#B997F7
#9663F2
#732FEE
#5f13eb
#4C0FBD
#3D0C97
#2F0D6D
#1D0844
Base = 600Lightest = 50 · #F6F2FCDarkest = 950 · #1D0844
:root {
  --brand-50: #F6F2FC;
  --brand-100: #EDE5FA;
  --brand-200: #D6C5F7;
  --brand-300: #B997F7;
  --brand-400: #9663F2;
  --brand-500: #732FEE;
  --brand-600: #5f13eb;
  --brand-700: #4C0FBD;
  --brand-800: #3D0C97;
  --brand-900: #2F0D6D;
  --brand-950: #1D0844;
  --brand: #5f13eb;
  --brand-ink: #ffffff;
}

Colors that work with #5f13eb

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#D0C0ED
Hairlines and dividers
Muted text#674B9B
Captions on the surface
Accent#AEC10B
Second voice, not a rival
Dark variant#300A76
Hover, pressed, headers
Light variant#EFE7FD
Selected rows, tints
Dark surface#1A1424
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 #5f13eb

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#9FEB13
Analogous left#1333EB
Analogous right#CB13EB
Split-complement 1#EBCB13
Split-complement 2#33EB13
Triadic 1#EB5F13
Triadic 2#13EB5F
Tetradic#EB1333

RGB percentages

Red37.3%
Green7.5%
Blue92.2%

CMYK percentages

Cyan59.6%
Magenta91.9%
Yellow0.0%
Key (black)7.8%

Color previews

#5f13eb text on a black background

contrast 2.78:1

Card sample

#5f13eb text on a white background

contrast 7.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(95, 19, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(95, 19, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5f13eb;
background: linear-gradient(135deg, #5f13eb, #EB13E7);

Monochromatic scale

Palettes built from #5f13eb

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.

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

#5f13eb, answered

What color is #5f13eb?

#5f13eb is a balanced electric violet, closest to Blue (ΔE2000 5.1). It sits at 261° on the hue wheel with 85% saturation and 50% lightness, which reads as cool.

What is the RGB value of #5f13eb?

rgb(95, 19, 235) — 95 red, 19 green and 235 blue out of 255, or 37.3% / 7.5% / 92.2% by channel.

Is #5f13eb a light or a dark color?

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

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

White. It scores 7.56:1 against #5f13eb, versus 2.78:1 for black — AAA at any size.

What is the complementary color of #5f13eb?

#9FEB13 sits directly opposite on the wheel. Softer options are the split-complements #EBCB13 and #33EB13, which give the same contrast with far less vibration.

What colors go well with #5f13eb?

For interface work: #F6F4FA as the surface, #D0C0ED for borders, #674B9B for secondary text, #AEC10B as an accent and #300A76 for hover and pressed states. For a palette, the analogous pair #1333EB and #CB13EB stays calm, while #9FEB13 is the loudest partner.

What is #5f13eb in CMYK for printing?

cmyk(60%, 92%, 0%, 8%). 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 #5f13eb 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 #AE13EB; nudged cooler, #1114ED.

Work with #5f13eb in the Color Lab