Skip to content

#6004df

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

RGB
96, 4, 223
HSL
265°, 97%, 45%
CMYK
57, 98, 0, 13
Luminance
0.0790

At a glance

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

Hex
#6004df
Hue
265°
violet
Saturation
97%
electric
Lightness
45%
dark
Brightness
87%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0790
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Electric
Best ink
White
8.14:1
Closest name
Blue
ΔE2000 5.4
Where it sits
Hue265° of 360°
Saturation97%
Lightness45%
Temperature
Warm ← → Cool69% 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#6004df
RGBrgb(96, 4, 223)
HSLhsl(265, 97%, 45%)
CMYKcmyk(57%, 98%, 0%, 13%)
LABlab(33.8 73.5 -87.1)
LCHlch(33.8 114.0 310.2)
OKLCHoklch(0.464 0.264 288.2)
Decimal6292703
Display P3color(display-p3 0.376 0.016 0.875)

Copy-ready code

/* CSS */
color: #6004df;
background-color: #6004df;
/* Tailwind (arbitrary) */
class="text-[#6004df] bg-[#6004df]"
/* SCSS */
$brand: #6004df;
/* SwiftUI */
Color(red: 0.376, green: 0.016, blue: 0.875)
/* Android */
Color.parseColor("#6004df")
/* Flutter */
Color(0xFF6004DF)
/* Python / OpenCV (BGR) */
(223, 4, 96)

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

Accessibility — WCAG contrast

Aa
#6004df on white: 8.14:1
AA ✓ pass · AA-large · AAA
Aa
#6004df on black: 2.58:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0053E4
deuteranopia · #004ADC
tritanopia · #215983

Color scale — 50 to 950

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

#F6F1FD
#EEE4FC
#D9C1FB
#BE91FD
#9E5AFC
#7D23FB
#6004df
#5604C8
#4503A0
#350774
#210448
Base = 600Lightest = 50 · #F6F1FDDarkest = 950 · #210448
:root {
  --brand-50: #F6F1FD;
  --brand-100: #EEE4FC;
  --brand-200: #D9C1FB;
  --brand-300: #BE91FD;
  --brand-400: #9E5AFC;
  --brand-500: #7D23FB;
  --brand-600: #6004df;
  --brand-700: #5604C8;
  --brand-800: #4503A0;
  --brand-900: #350774;
  --brand-950: #210448;
  --brand: #6004df;
  --brand-ink: #ffffff;
}

Colors that work with #6004df

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#F7F4FA
Tinted page background
Border#D3C0ED
Hairlines and dividers
Muted text#6C4B9B
Captions on the surface
Accent#A9CC00
Second voice, not a rival
Dark variant#36027D
Hover, pressed, headers
Light variant#F0E6FF
Selected rows, tints
Dark surface#1B1424
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 #6004df

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#83DF04
Analogous left#0415DF
Analogous right#CD04DF
Split-complement 1#DFCD04
Split-complement 2#15DF04
Triadic 1#DF6004
Triadic 2#04DF60
Tetradic#DF0415

RGB percentages

Red37.6%
Green1.6%
Blue87.5%

CMYK percentages

Cyan57.0%
Magenta98.2%
Yellow0.0%
Key (black)12.5%

Color previews

#6004df text on a black background

contrast 2.58:1

Card sample

#6004df text on a white background

contrast 8.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #6004df

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.

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

#6004df, answered

What color is #6004df?

#6004df is a dark electric violet, closest to Blue (ΔE2000 5.4). It sits at 265° on the hue wheel with 97% saturation and 45% lightness, which reads as cool.

What is the RGB value of #6004df?

rgb(96, 4, 223) — 96 red, 4 green and 223 blue out of 255, or 37.6% / 1.6% / 87.5% by channel.

Is #6004df a light or a dark color?

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

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

White. It scores 8.14:1 against #6004df, versus 2.58:1 for black — AAA at any size.

What is the complementary color of #6004df?

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

What colors go well with #6004df?

For interface work: #F7F4FA as the surface, #D3C0ED for borders, #6C4B9B for secondary text, #A9CC00 as an accent and #36027D for hover and pressed states. For a palette, the analogous pair #0415DF and #CD04DF stays calm, while #83DF04 is the loudest partner.

What is #6004df in CMYK for printing?

cmyk(57%, 98%, 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 #6004df warm or cool?

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

Work with #6004df in the Color Lab