Skip to content

#6c04df

a dark, electric violet · cool · closest name: Dark Violet

RGB
108, 4, 223
HSL
269°, 97%, 45%
CMYK
52, 98, 0, 13
Luminance
0.0860

At a glance

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

Hex
#6c04df
Hue
269°
violet
Saturation
97%
electric
Lightness
45%
dark
Brightness
87%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0860
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.72:1
Closest name
Dark Violet
ΔE2000 6.4
Where it sits
Hue269° of 360°
Saturation97%
Lightness45%
Temperature
Warm ← → Cool68% 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#6c04df
RGBrgb(108, 4, 223)
HSLhsl(269, 97%, 45%)
CMYKcmyk(52%, 98%, 0%, 13%)
LABlab(35.2 74.4 -84.7)
LCHlch(35.2 112.7 311.3)
OKLCHoklch(0.477 0.264 292.7)
Decimal7079135
Display P3color(display-p3 0.424 0.016 0.875)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#6c04df on white: 7.72:1
AA ✓ pass · AA-large · AAA
Aa
#6c04df on black: 2.72:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0055E4
deuteranopia · #004FDC
tritanopia · #435883

Color scale — 50 to 950

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

#F7F1FD
#EFE4FC
#DCC1FB
#C491FD
#A75AFC
#8923FB
#6c04df
#6104C8
#4E03A0
#3A0774
#250448
Base = 600Lightest = 50 · #F7F1FDDarkest = 950 · #250448
:root {
  --brand-50: #F7F1FD;
  --brand-100: #EFE4FC;
  --brand-200: #DCC1FB;
  --brand-300: #C491FD;
  --brand-400: #A75AFC;
  --brand-500: #8923FB;
  --brand-600: #6c04df;
  --brand-700: #6104C8;
  --brand-800: #4E03A0;
  --brand-900: #3A0774;
  --brand-950: #250448;
  --brand: #6c04df;
  --brand-ink: #ffffff;
}

Colors that work with #6c04df

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#D5C0ED
Hairlines and dividers
Muted text#714B9B
Captions on the surface
Accent#9ECC00
Second voice, not a rival
Dark variant#3D027D
Hover, pressed, headers
Light variant#F2E6FF
Selected rows, tints
Dark surface#1C1424
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 #6c04df

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#77DF04
Analogous left#0409DF
Analogous right#DA04DF
Split-complement 1#DFDA04
Split-complement 2#09DF04
Triadic 1#DF6C04
Triadic 2#04DF6C
Tetradic#DF0409

RGB percentages

Red42.4%
Green1.6%
Blue87.5%

CMYK percentages

Cyan51.6%
Magenta98.2%
Yellow0.0%
Key (black)12.5%

Color previews

#6c04df text on a black background

contrast 2.72:1

Card sample

#6c04df text on a white background

contrast 7.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #6c04df;
Background color
Panel with #6c04df background
background-color: #6c04df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #6c04df;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #6c04df

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.

#6c04df 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.

#6c04df, answered

What color is #6c04df?

#6c04df is a dark electric violet, closest to Dark Violet (ΔE2000 6.4). It sits at 269° on the hue wheel with 97% saturation and 45% lightness, which reads as cool.

What is the RGB value of #6c04df?

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

Is #6c04df a light or a dark color?

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

Should I use black or white text on #6c04df?

White. It scores 7.72:1 against #6c04df, versus 2.72:1 for black — AAA at any size.

What is the complementary color of #6c04df?

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

What colors go well with #6c04df?

For interface work: #F7F4FA as the surface, #D5C0ED for borders, #714B9B for secondary text, #9ECC00 as an accent and #3D027D for hover and pressed states. For a palette, the analogous pair #0409DF and #DA04DF stays calm, while #77DF04 is the loudest partner.

What is #6c04df in CMYK for printing?

cmyk(52%, 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 #6c04df warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BC04DF; nudged cooler, #1A02E1.

Work with #6c04df in the Color Lab