Skip to content

#7d2cc4

a balanced, vivid violet · cool · closest name: Dark Violet

RGB
125, 44, 196
HSL
272°, 63%, 47%
CMYK
36, 78, 0, 23
Luminance
0.1015

At a glance

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

Hex
#7d2cc4
Hue
272°
violet
Saturation
63%
vivid
Lightness
47%
balanced
Brightness
77%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1015
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
6.93:1
Closest name
Dark Violet
ΔE2000 4.1
Where it sits
Hue272° of 360°
Saturation63%
Lightness47%
Temperature
Warm ← → Cool66% 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#7d2cc4
RGBrgb(125, 44, 196)
HSLhsl(272, 63%, 47%)
CMYKcmyk(36%, 78%, 0%, 23%)
LABlab(38.1 60.8 -64.2)
LCHlch(38.1 88.4 313.4)
OKLCHoklch(0.494 0.219 303.2)
Decimal8203460
Display P3color(display-p3 0.490 0.173 0.769)

Copy-ready code

/* CSS */
color: #7d2cc4;
background-color: #7d2cc4;
/* Tailwind (arbitrary) */
class="text-[#7d2cc4] bg-[#7d2cc4]"
/* SCSS */
$brand: #7d2cc4;
/* SwiftUI */
Color(red: 0.490, green: 0.173, blue: 0.769)
/* Android */
Color.parseColor("#7d2cc4")
/* Flutter */
Color(0xFF7D2CC4)
/* Python / OpenCV (BGR) */
(196, 44, 125)

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 #7d2cc4 · 6.93:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.93:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.03:1
AA fail · AA large pass · AAA fail
Reading the other direction: #7d2cc4 as text scores 6.93:1 on white and 3.03:1 on black.

Accessibility — WCAG contrast

Aa
#7d2cc4 on white: 6.93:1
AA ✓ pass · AA-large · AAA
Aa
#7d2cc4 on black: 3.03:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0058C8
deuteranopia · #0059C1
tritanopia · #6E5477

Color scale — 50 to 950

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

#F8F4FB
#F0E8F7
#DFCBF0
#C9A3EA
#AE76E0
#9448D6
#7d2cc4
#6A25A7
#551E85
#401A61
#28103D
Base = 600Lightest = 50 · #F8F4FBDarkest = 950 · #28103D
:root {
  --brand-50: #F8F4FB;
  --brand-100: #F0E8F7;
  --brand-200: #DFCBF0;
  --brand-300: #C9A3EA;
  --brand-400: #AE76E0;
  --brand-500: #9448D6;
  --brand-600: #7d2cc4;
  --brand-700: #6A25A7;
  --brand-800: #551E85;
  --brand-900: #401A61;
  --brand-950: #28103D;
  --brand: #7d2cc4;
  --brand-ink: #ffffff;
}

Colors that work with #7d2cc4

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#754B9B
Captions on the surface
Accent#84AB21
Second voice, not a rival
Dark variant#421768
Hover, pressed, headers
Light variant#F3EAFA
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 #7d2cc4

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
  • 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#73C42C
Analogous left#312CC4
Analogous right#C42CBF
Split-complement 1#BFC42C
Split-complement 2#2CC431
Triadic 1#C47D2C
Triadic 2#2CC47D
Tetradic#C4312C

RGB percentages

Red49.0%
Green17.3%
Blue76.9%

CMYK percentages

Cyan36.2%
Magenta77.6%
Yellow0.0%
Key (black)23.1%

Color previews

#7d2cc4 text on a black background

contrast 3.03:1

Card sample

#7d2cc4 text on a white background

contrast 6.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7d2cc4;
Background color
Panel with #7d2cc4 background
background-color: #7d2cc4;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #7d2cc4;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(125, 44, 196, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(125, 44, 196, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7d2cc4;
background: linear-gradient(135deg, #7d2cc4, #C42CA6);

Monochromatic scale

Palettes built from #7d2cc4

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.

#7d2cc4 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

Converts to four-color process without much drama. Proof it anyway.

#7d2cc4, answered

What color is #7d2cc4?

#7d2cc4 is a balanced vivid violet, closest to Dark Violet (ΔE2000 4.1). It sits at 272° on the hue wheel with 63% saturation and 47% lightness, which reads as cool.

What is the RGB value of #7d2cc4?

rgb(125, 44, 196) — 125 red, 44 green and 196 blue out of 255, or 49% / 17.3% / 76.9% by channel.

Is #7d2cc4 a light or a dark color?

It is a dark color. Relative luminance is 0.1015 and perceived brightness is 40%, so white text on it reaches 6.93:1.

Should I use black or white text on #7d2cc4?

White. It scores 6.93:1 against #7d2cc4, versus 3.03:1 for black — AA at any size.

What is the complementary color of #7d2cc4?

#73C42C sits directly opposite on the wheel. Softer options are the split-complements #BFC42C and #2CC431, which give the same contrast with far less vibration.

What colors go well with #7d2cc4?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #754B9B for secondary text, #84AB21 as an accent and #421768 for hover and pressed states. For a palette, the analogous pair #312CC4 and #C42CBF stays calm, while #73C42C is the loudest partner.

What is #7d2cc4 in CMYK for printing?

cmyk(36%, 78%, 0%, 23%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #7d2cc4 warm or cool?

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B52CC4; nudged cooler, #442AC7.

Work with #7d2cc4 in the Color Lab