Skip to content

#7004df

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

RGB
112, 4, 223
HSL
270°, 97%, 45%
CMYK
50, 98, 0, 13
Luminance
0.0886

At a glance

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

Hex
#7004df
Hue
270°
violet
Saturation
97%
electric
Lightness
45%
dark
Brightness
87%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0886
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.58:1
Closest name
Dark Violet
ΔE2000 5.9
Where it sits
Hue270° of 360°
Saturation97%
Lightness45%
Temperature
Warm ← → Cool67% 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#7004df
RGBrgb(112, 4, 223)
HSLhsl(270, 97%, 45%)
CMYKcmyk(50%, 98%, 0%, 13%)
LABlab(35.7 74.7 -83.8)
LCHlch(35.7 112.3 311.7)
OKLCHoklch(0.481 0.264 294.2)
Decimal7341279
Display P3color(display-p3 0.439 0.016 0.875)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#7004df on white: 7.58:1
AA ✓ pass · AA-large · AAA
Aa
#7004df on black: 2.77:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0056E4
deuteranopia · #0050DC
tritanopia · #4C5883

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #7004df 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
#F0E4FC
#DDC1FB
#C691FD
#AA5AFC
#8D23FB
#7004df
#6504C8
#5103A0
#3C0774
#260448
Base = 600Lightest = 50 · #F7F1FDDarkest = 950 · #260448
:root {
  --brand-50: #F7F1FD;
  --brand-100: #F0E4FC;
  --brand-200: #DDC1FB;
  --brand-300: #C691FD;
  --brand-400: #AA5AFC;
  --brand-500: #8D23FB;
  --brand-600: #7004df;
  --brand-700: #6504C8;
  --brand-800: #5103A0;
  --brand-900: #3C0774;
  --brand-950: #260448;
  --brand: #7004df;
  --brand-ink: #ffffff;
}

Colors that work with #7004df

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#D6C0ED
Hairlines and dividers
Muted text#724B9B
Captions on the surface
Accent#9BCC00
Second voice, not a rival
Dark variant#3F027D
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 #7004df

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#73DF04
Analogous left#0405DF
Analogous right#DE04DF
Split-complement 1#DFDE04
Split-complement 2#05DF04
Triadic 1#DF7004
Triadic 2#04DF70
Tetradic#DF0405

RGB percentages

Red43.9%
Green1.6%
Blue87.5%

CMYK percentages

Cyan49.8%
Magenta98.2%
Yellow0.0%
Key (black)12.5%

Color previews

#7004df text on a black background

contrast 2.77:1

Card sample

#7004df text on a white background

contrast 7.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7004df

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.

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

#7004df, answered

What color is #7004df?

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

What is the RGB value of #7004df?

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

Is #7004df a light or a dark color?

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

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

White. It scores 7.58:1 against #7004df, versus 2.77:1 for black — AAA at any size.

What is the complementary color of #7004df?

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

What colors go well with #7004df?

For interface work: #F7F4FA as the surface, #D6C0ED for borders, #724B9B for secondary text, #9BCC00 as an accent and #3F027D for hover and pressed states. For a palette, the analogous pair #0405DF and #DE04DF stays calm, while #73DF04 is the loudest partner.

What is #7004df in CMYK for printing?

cmyk(50%, 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 #7004df warm or cool?

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

Work with #7004df in the Color Lab