Skip to content

#513eee

a balanced, electric blue · cool · closest name: Blue Violet

RGB
81, 62, 238
HSL
247°, 84%, 59%
CMYK
66, 74, 0, 7
Luminance
0.1137

At a glance

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

Hex
#513eee
Hue
247°
blue
Saturation
84%
electric
Lightness
59%
balanced
Brightness
93%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1137
WCAG relative
Temperature
Cool
80/100 cool
Color family
Blue
Tone
Electric
Best ink
White
6.42:1
Closest name
Blue Violet
ΔE2000 8.1
Where it sits
Hue247° of 360°
Saturation84%
Lightness59%
Temperature
Warm ← → Cool80% 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#513eee
RGBrgb(81, 62, 238)
HSLhsl(247, 84%, 59%)
CMYKcmyk(66%, 74%, 0%, 7%)
LABlab(40.2 57.9 -85.1)
LCHlch(40.2 102.9 304.2)
OKLCHoklch(0.510 0.248 277.8)
Decimal5324526
Display P3color(display-p3 0.318 0.243 0.933)

Copy-ready code

/* CSS */
color: #513eee;
background-color: #513eee;
/* Tailwind (arbitrary) */
class="text-[#513eee] bg-[#513eee]"
/* SCSS */
$brand: #513eee;
/* SwiftUI */
Color(red: 0.318, green: 0.243, blue: 0.933)
/* Android */
Color.parseColor("#513eee")
/* Flutter */
Color(0xFF513EEE)
/* Python / OpenCV (BGR) */
(238, 62, 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 #513eee · 6.42:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.42:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.27:1
AA fail · AA large pass · AAA fail
Reading the other direction: #513eee as text scores 6.42:1 on white and 3.27:1 on black.

Accessibility — WCAG contrast

Aa
#513eee on white: 6.42:1
AA ✓ pass · AA-large · AAA
Aa
#513eee on black: 3.27:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0066F3
deuteranopia · #0057EB
tritanopia · #007193

Color scale — 50 to 950

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

#F3F2FC
#E8E6FA
#CBC5F6
#A298F6
#7464F1
#513eee
#2A14E1
#2311BB
#1C0D96
#180E6C
#0F0944
Base = 500Lightest = 50 · #F3F2FCDarkest = 950 · #0F0944
:root {
  --brand-50: #F3F2FC;
  --brand-100: #E8E6FA;
  --brand-200: #CBC5F6;
  --brand-300: #A298F6;
  --brand-400: #7464F1;
  --brand-500: #513eee;
  --brand-600: #2A14E1;
  --brand-700: #2311BB;
  --brand-800: #1C0D96;
  --brand-900: #180E6C;
  --brand-950: #0F0944;
  --brand: #513eee;
  --brand-ink: #ffffff;
}

Colors that work with #513eee

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#F5F4FA
Tinted page background
Border#C5C0ED
Hairlines and dividers
Muted text#534B9B
Captions on the surface
Accent#BFA60D
Second voice, not a rival
Dark variant#160A75
Hover, pressed, headers
Light variant#EAE8FD
Selected rows, tints
Dark surface#151424
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 #513eee

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
  • 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#DBEE3E
Analogous left#3E83EE
Analogous right#A93EEE
Split-complement 1#EEA93E
Split-complement 2#83EE3E
Triadic 1#EE513E
Triadic 2#3EEE51
Tetradic#EE3E83

RGB percentages

Red31.8%
Green24.3%
Blue93.3%

CMYK percentages

Cyan66.0%
Magenta73.9%
Yellow0.0%
Key (black)6.7%

Color previews

#513eee text on a black background

contrast 3.27:1

Card sample

#513eee text on a white background

contrast 6.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #513eee;
Background color
Panel with #513eee background
background-color: #513eee;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #513eee;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(81, 62, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 62, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #513eee;
background: linear-gradient(135deg, #513eee, #C63EEE);

Monochromatic scale

Palettes built from #513eee

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.

#513eee in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#513eee, answered

What color is #513eee?

#513eee is a balanced electric blue, closest to Blue Violet (ΔE2000 8.1). It sits at 247° on the hue wheel with 84% saturation and 59% lightness, which reads as cool.

What is the RGB value of #513eee?

rgb(81, 62, 238) — 81 red, 62 green and 238 blue out of 255, or 31.8% / 24.3% / 93.3% by channel.

Is #513eee a light or a dark color?

It is a dark color. Relative luminance is 0.1137 and perceived brightness is 41%, so white text on it reaches 6.42:1.

Should I use black or white text on #513eee?

White. It scores 6.42:1 against #513eee, versus 3.27:1 for black — AA at any size.

What is the complementary color of #513eee?

#DBEE3E sits directly opposite on the wheel. Softer options are the split-complements #EEA93E and #83EE3E, which give the same contrast with far less vibration.

What colors go well with #513eee?

For interface work: #F5F4FA as the surface, #C5C0ED for borders, #534B9B for secondary text, #BFA60D as an accent and #160A75 for hover and pressed states. For a palette, the analogous pair #3E83EE and #A93EEE stays calm, while #DBEE3E is the loudest partner.

What is #513eee in CMYK for printing?

cmyk(66%, 74%, 0%, 7%). 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 #513eee warm or cool?

Cool — it scores 80 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #923EEE; nudged cooler, #3C61F0.

Work with #513eee in the Color Lab