Skip to content

#7900df

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

RGB
121, 0, 223
HSL
273°, 100%, 44%
CMYK
46, 100, 0, 13
Luminance
0.0939

At a glance

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

Hex
#7900df
Hue
273°
violet
Saturation
100%
electric
Lightness
44%
dark
Brightness
87%
HSV value
Perceived
39%
weighted brightness
Luminance
0.0939
WCAG relative
Temperature
Cool
65/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.30:1
Closest name
Dark Violet
ΔE2000 4.7
Where it sits
Hue273° of 360°
Saturation100%
Lightness44%
Temperature
Warm ← → Cool65% 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#7900df
RGBrgb(121, 0, 223)
HSLhsl(273, 100%, 44%)
CMYKcmyk(46%, 100%, 0%, 13%)
LABlab(36.7 76.0 -82.1)
LCHlch(36.7 111.8 312.8)
OKLCHoklch(0.491 0.266 297.6)
Decimal7930079
Display P3color(display-p3 0.475 0.000 0.875)

Copy-ready code

/* CSS */
color: #7900df;
background-color: #7900df;
/* Tailwind (arbitrary) */
class="text-[#7900df] bg-[#7900df]"
/* SCSS */
$brand: #7900df;
/* SwiftUI */
Color(red: 0.475, green: 0.000, blue: 0.875)
/* Android */
Color.parseColor("#7900df")
/* Flutter */
Color(0xFF7900DF)
/* Python / OpenCV (BGR) */
(223, 0, 121)

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

Accessibility — WCAG contrast

Aa
#7900df on white: 7.30:1
AA ✓ pass · AA-large · AAA
Aa
#7900df on black: 2.88:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0057E4
deuteranopia · #0054DC
tritanopia · #5C5683

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #7900df is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F8F1FE
#F1E3FC
#E0C0FC
#CC8FFF
#B257FF
#991FFF
#8500F5
#7900df
#5900A3
#420576
#290349
Base = 700Lightest = 50 · #F8F1FEDarkest = 950 · #290349
:root {
  --brand-50: #F8F1FE;
  --brand-100: #F1E3FC;
  --brand-200: #E0C0FC;
  --brand-300: #CC8FFF;
  --brand-400: #B257FF;
  --brand-500: #991FFF;
  --brand-600: #8500F5;
  --brand-700: #7900df;
  --brand-800: #5900A3;
  --brand-900: #420576;
  --brand-950: #290349;
  --brand: #7900df;
  --brand-ink: #ffffff;
}

Colors that work with #7900df

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#F8F4FA
Tinted page background
Border#D8C0ED
Hairlines and dividers
Muted text#764B9B
Captions on the surface
Accent#8FCC00
Second voice, not a rival
Dark variant#450080
Hover, pressed, headers
Light variant#F3E5FF
Selected rows, tints
Dark surface#1D1424
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 #7900df

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#66DF00
Analogous left#0A00DF
Analogous right#DF00D5
Split-complement 1#D5DF00
Split-complement 2#00DF0A
Triadic 1#DF7900
Triadic 2#00DF79
Tetradic#DF0A00

RGB percentages

Red47.5%
Green0.0%
Blue87.5%

CMYK percentages

Cyan45.7%
Magenta100.0%
Yellow0.0%
Key (black)12.5%

Color previews

#7900df text on a black background

contrast 2.88:1

Card sample

#7900df text on a white background

contrast 7.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7900df

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.

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

#7900df, answered

What color is #7900df?

#7900df is a dark electric violet, closest to Dark Violet (ΔE2000 4.7). It sits at 273° on the hue wheel with 100% saturation and 44% lightness, which reads as cool.

What is the RGB value of #7900df?

rgb(121, 0, 223) — 121 red, 0 green and 223 blue out of 255, or 47.5% / 0% / 87.5% by channel.

Is #7900df a light or a dark color?

It is a dark color. Relative luminance is 0.0939 and perceived brightness is 39%, so white text on it reaches 7.30:1.

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

White. It scores 7.30:1 against #7900df, versus 2.88:1 for black — AAA at any size.

What is the complementary color of #7900df?

#66DF00 sits directly opposite on the wheel. Softer options are the split-complements #D5DF00 and #00DF0A, which give the same contrast with far less vibration.

What colors go well with #7900df?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #764B9B for secondary text, #8FCC00 as an accent and #450080 for hover and pressed states. For a palette, the analogous pair #0A00DF and #DF00D5 stays calm, while #66DF00 is the loudest partner.

What is #7900df in CMYK for printing?

cmyk(46%, 100%, 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 #7900df warm or cool?

Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CB00DF; nudged cooler, #2700DF.

Work with #7900df in the Color Lab