Skip to content

#5115df

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

RGB
81, 21, 223
HSL
258°, 83%, 48%
CMYK
64, 91, 0, 13
Luminance
0.0761

At a glance

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

Hex
#5115df
Hue
258°
violet
Saturation
83%
electric
Lightness
48%
balanced
Brightness
87%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0761
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Electric
Best ink
White
8.32:1
Closest name
Blue
ΔE2000 4.2
Where it sits
Hue258° of 360°
Saturation83%
Lightness48%
Temperature
Warm ← → Cool73% 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#5115df
RGBrgb(81, 21, 223)
HSLhsl(258, 83%, 48%)
CMYKcmyk(64%, 91%, 0%, 13%)
LABlab(33.2 69.7 -88.2)
LCHlch(33.2 112.4 308.3)
OKLCHoklch(0.457 0.260 282.2)
Decimal5314015
Display P3color(display-p3 0.318 0.082 0.875)

Copy-ready code

/* CSS */
color: #5115df;
background-color: #5115df;
/* Tailwind (arbitrary) */
class="text-[#5115df] bg-[#5115df]"
/* SCSS */
$brand: #5115df;
/* SwiftUI */
Color(red: 0.318, green: 0.082, blue: 0.875)
/* Android */
Color.parseColor("#5115df")
/* Flutter */
Color(0xFF5115DF)
/* Python / OpenCV (BGR) */
(223, 21, 81)

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

Accessibility — WCAG contrast

Aa
#5115df on white: 8.32:1
AA ✓ pass · AA-large · AAA
Aa
#5115df on black: 2.52:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0054E4
deuteranopia · #0047DC
tritanopia · #005D84

Color scale — 50 to 950

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

#F5F2FC
#ECE6FA
#D4C6F6
#B498F5
#8F65F1
#6932EC
#5115df
#4412BA
#360E95
#2A0F6C
#1A0943
Base = 600Lightest = 50 · #F5F2FCDarkest = 950 · #1A0943
:root {
  --brand-50: #F5F2FC;
  --brand-100: #ECE6FA;
  --brand-200: #D4C6F6;
  --brand-300: #B498F5;
  --brand-400: #8F65F1;
  --brand-500: #6932EC;
  --brand-600: #5115df;
  --brand-700: #4412BA;
  --brand-800: #360E95;
  --brand-900: #2A0F6C;
  --brand-950: #1A0943;
  --brand: #5115df;
  --brand-ink: #ffffff;
}

Colors that work with #5115df

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#CDC0ED
Hairlines and dividers
Muted text#624B9B
Captions on the surface
Accent#B6BF0D
Second voice, not a rival
Dark variant#2A0B75
Hover, pressed, headers
Light variant#EEE8FD
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 #5115df

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#A3DF15
Analogous left#153EDF
Analogous right#B615DF
Split-complement 1#DFB615
Split-complement 2#3EDF15
Triadic 1#DF5115
Triadic 2#15DF51
Tetradic#DF153E

RGB percentages

Red31.8%
Green8.2%
Blue87.5%

CMYK percentages

Cyan63.7%
Magenta90.6%
Yellow0.0%
Key (black)12.5%

Color previews

#5115df text on a black background

contrast 2.52:1

Card sample

#5115df text on a white background

contrast 8.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5115df;
Background color
Panel with #5115df background
background-color: #5115df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5115df;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(81, 21, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 21, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5115df;
background: linear-gradient(135deg, #5115df, #D715DF);

Monochromatic scale

Palettes built from #5115df

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.

#5115df 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.

#5115df, answered

What color is #5115df?

#5115df is a balanced electric violet, closest to Blue (ΔE2000 4.2). It sits at 258° on the hue wheel with 83% saturation and 48% lightness, which reads as cool.

What is the RGB value of #5115df?

rgb(81, 21, 223) — 81 red, 21 green and 223 blue out of 255, or 31.8% / 8.2% / 87.5% by channel.

Is #5115df a light or a dark color?

It is a dark color. Relative luminance is 0.0761 and perceived brightness is 35%, so white text on it reaches 8.32:1.

Should I use black or white text on #5115df?

White. It scores 8.32:1 against #5115df, versus 2.52:1 for black — AAA at any size.

What is the complementary color of #5115df?

#A3DF15 sits directly opposite on the wheel. Softer options are the split-complements #DFB615 and #3EDF15, which give the same contrast with far less vibration.

What colors go well with #5115df?

For interface work: #F6F4FA as the surface, #CDC0ED for borders, #624B9B for secondary text, #B6BF0D as an accent and #2A0B75 for hover and pressed states. For a palette, the analogous pair #153EDF and #B615DF stays calm, while #A3DF15 is the loudest partner.

What is #5115df in CMYK for printing?

cmyk(64%, 91%, 0%, 13%). 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 #5115df warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9B15DF; nudged cooler, #1321E1.

Work with #5115df in the Color Lab