Skip to content

#5f0df4

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

RGB
95, 13, 244
HSL
261°, 91%, 50%
CMYK
61, 95, 0, 4
Luminance
0.0925

At a glance

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

Hex
#5f0df4
Hue
261°
violet
Saturation
91%
electric
Lightness
50%
balanced
Brightness
96%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0925
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.37:1
Closest name
Blue
ΔE2000 5
Where it sits
Hue261° of 360°
Saturation91%
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#5f0df4
RGBrgb(95, 13, 244)
HSLhsl(261, 91%, 50%)
CMYKcmyk(61%, 95%, 0%, 4%)
LABlab(36.5 77.0 -94.6)
LCHlch(36.5 122.0 309.2)
OKLCHoklch(0.489 0.281 284.4)
Decimal6229492
Display P3color(display-p3 0.373 0.051 0.957)

Copy-ready code

/* CSS */
color: #5f0df4;
background-color: #5f0df4;
/* Tailwind (arbitrary) */
class="text-[#5f0df4] bg-[#5f0df4]"
/* SCSS */
$brand: #5f0df4;
/* SwiftUI */
Color(red: 0.373, green: 0.051, blue: 0.957)
/* Android */
Color.parseColor("#5f0df4")
/* Flutter */
Color(0xFF5F0DF4)
/* Python / OpenCV (BGR) */
(244, 13, 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 #5f0df4 · 7.37:1
Use #ffffffAAA at every size.
Aa
White text · 7.37:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.85:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5f0df4 as text scores 7.37:1 on white and 2.85:1 on black.

Accessibility — WCAG contrast

Aa
#5f0df4 on white: 7.37:1
AA ✓ pass · AA-large · AAA
Aa
#5f0df4 on black: 2.85:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005CF9
deuteranopia · #004FF0
tritanopia · #006490

Color scale — 50 to 950

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

#F6F2FD
#ECE4FB
#D6C3F9
#B894FA
#955EF8
#7128F5
#5f0df4
#4B09C3
#3C079C
#2E0A71
#1D0646
Base = 600Lightest = 50 · #F6F2FDDarkest = 950 · #1D0646
:root {
  --brand-50: #F6F2FD;
  --brand-100: #ECE4FB;
  --brand-200: #D6C3F9;
  --brand-300: #B894FA;
  --brand-400: #955EF8;
  --brand-500: #7128F5;
  --brand-600: #5f0df4;
  --brand-700: #4B09C3;
  --brand-800: #3C079C;
  --brand-900: #2E0A71;
  --brand-950: #1D0646;
  --brand: #5f0df4;
  --brand-ink: #ffffff;
}

Colors that work with #5f0df4

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#B3C705
Second voice, not a rival
Dark variant#2F067A
Hover, pressed, headers
Light variant#EFE7FE
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 #5f0df4

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#A2F40D
Analogous left#0D2FF4
Analogous right#D30DF4
Split-complement 1#F4D30D
Split-complement 2#2FF40D
Triadic 1#F45F0D
Triadic 2#0DF45F
Tetradic#F40D2F

RGB percentages

Red37.3%
Green5.1%
Blue95.7%

CMYK percentages

Cyan61.1%
Magenta94.7%
Yellow0.0%
Key (black)4.3%

Color previews

#5f0df4 text on a black background

contrast 2.85:1

Card sample

#5f0df4 text on a white background

contrast 7.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f0df4

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.

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

#5f0df4, answered

What color is #5f0df4?

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

What is the RGB value of #5f0df4?

rgb(95, 13, 244) — 95 red, 13 green and 244 blue out of 255, or 37.3% / 5.1% / 95.7% by channel.

Is #5f0df4 a light or a dark color?

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

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

White. It scores 7.37:1 against #5f0df4, versus 2.85:1 for black — AAA at any size.

What is the complementary color of #5f0df4?

#A2F40D sits directly opposite on the wheel. Softer options are the split-complements #F4D30D and #2FF40D, which give the same contrast with far less vibration.

What colors go well with #5f0df4?

For interface work: #F6F4FA as the surface, #D0C0ED for borders, #674B9B for secondary text, #B3C705 as an accent and #2F067A for hover and pressed states. For a palette, the analogous pair #0D2FF4 and #D30DF4 stays calm, while #A2F40D is the loudest partner.

What is #5f0df4 in CMYK for printing?

cmyk(61%, 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 #5f0df4 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 #B40DF4; nudged cooler, #0B0DF7.

Work with #5f0df4 in the Color Lab