Skip to content

#4b0df5

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

RGB
75, 13, 245
HSL
256°, 92%, 51%
CMYK
69, 95, 0, 4
Luminance
0.0838

At a glance

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

Hex
#4b0df5
Hue
256°
violet
Saturation
92%
electric
Lightness
51%
balanced
Brightness
96%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0838
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.85:1
Closest name
Blue
ΔE2000 3.1
Where it sits
Hue256° of 360°
Saturation92%
Lightness51%
Temperature
Warm ← → Cool74% 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#4b0df5
RGBrgb(75, 13, 245)
HSLhsl(256, 92%, 51%)
CMYKcmyk(69%, 95%, 0%, 4%)
LABlab(34.8 76.3 -98.1)
LCHlch(34.8 124.2 307.9)
OKLCHoklch(0.473 0.285 277.8)
Decimal4918773
Display P3color(display-p3 0.294 0.051 0.961)

Copy-ready code

/* CSS */
color: #4b0df5;
background-color: #4b0df5;
/* Tailwind (arbitrary) */
class="text-[#4b0df5] bg-[#4b0df5]"
/* SCSS */
$brand: #4b0df5;
/* SwiftUI */
Color(red: 0.294, green: 0.051, blue: 0.961)
/* Android */
Color.parseColor("#4b0df5")
/* Flutter */
Color(0xFF4B0DF5)
/* Python / OpenCV (BGR) */
(245, 13, 75)

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

Accessibility — WCAG contrast

Aa
#4b0df5 on white: 7.85:1
AA ✓ pass · AA-large · AAA
Aa
#4b0df5 on black: 2.68:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005AFA
deuteranopia · #0048F2
tritanopia · #006690

Color scale — 50 to 950

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

#F5F2FD
#EAE4FB
#D1C3F9
#AF93FB
#875DF8
#5F27F6
#4b0df5
#3A08C4
#2F069D
#250971
#170647
Base = 600Lightest = 50 · #F5F2FDDarkest = 950 · #170647
:root {
  --brand-50: #F5F2FD;
  --brand-100: #EAE4FB;
  --brand-200: #D1C3F9;
  --brand-300: #AF93FB;
  --brand-400: #875DF8;
  --brand-500: #5F27F6;
  --brand-600: #4b0df5;
  --brand-700: #3A08C4;
  --brand-800: #2F069D;
  --brand-900: #250971;
  --brand-950: #170647;
  --brand: #4b0df5;
  --brand-ink: #ffffff;
}

Colors that work with #4b0df5

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#CCC0ED
Hairlines and dividers
Muted text#604B9B
Captions on the surface
Accent#C5C804
Second voice, not a rival
Dark variant#24057A
Hover, pressed, headers
Light variant#EDE7FE
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 #4b0df5

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#B7F50D
Analogous left#0D43F5
Analogous right#BF0DF5
Split-complement 1#F5BF0D
Split-complement 2#43F50D
Triadic 1#F54B0D
Triadic 2#0DF54B
Tetradic#F50D43

RGB percentages

Red29.4%
Green5.1%
Blue96.1%

CMYK percentages

Cyan69.4%
Magenta94.7%
Yellow0.0%
Key (black)3.9%

Color previews

#4b0df5 text on a black background

contrast 2.68:1

Card sample

#4b0df5 text on a white background

contrast 7.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4b0df5;
Background color
Panel with #4b0df5 background
background-color: #4b0df5;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #4b0df5;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(75, 13, 245, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(75, 13, 245, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4b0df5;
background: linear-gradient(135deg, #4b0df5, #E60DF5);

Monochromatic scale

Palettes built from #4b0df5

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.

#4b0df5 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.

#4b0df5, answered

What color is #4b0df5?

#4b0df5 is a balanced electric violet, closest to Blue (ΔE2000 3.1). It sits at 256° on the hue wheel with 92% saturation and 51% lightness, which reads as cool.

What is the RGB value of #4b0df5?

rgb(75, 13, 245) — 75 red, 13 green and 245 blue out of 255, or 29.4% / 5.1% / 96.1% by channel.

Is #4b0df5 a light or a dark color?

It is a dark color. Relative luminance is 0.0838 and perceived brightness is 36%, so white text on it reaches 7.85:1.

Should I use black or white text on #4b0df5?

White. It scores 7.85:1 against #4b0df5, versus 2.68:1 for black — AAA at any size.

What is the complementary color of #4b0df5?

#B7F50D sits directly opposite on the wheel. Softer options are the split-complements #F5BF0D and #43F50D, which give the same contrast with far less vibration.

What colors go well with #4b0df5?

For interface work: #F6F4FA as the surface, #CCC0ED for borders, #604B9B for secondary text, #C5C804 as an accent and #24057A for hover and pressed states. For a palette, the analogous pair #0D43F5 and #BF0DF5 stays calm, while #B7F50D is the loudest partner.

What is #4b0df5 in CMYK for printing?

cmyk(69%, 95%, 0%, 4%). 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 #4b0df5 warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A00DF5; nudged cooler, #0A1DF8.

Work with #4b0df5 in the Color Lab