Skip to content

#7c0cdd

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

RGB
124, 12, 221
HSL
272°, 90%, 46%
CMYK
44, 95, 0, 13
Luminance
0.0977

At a glance

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

Hex
#7c0cdd
Hue
272°
violet
Saturation
90%
electric
Lightness
46%
balanced
Brightness
87%
HSV value
Perceived
40%
weighted brightness
Luminance
0.0977
WCAG relative
Temperature
Cool
65/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.11:1
Closest name
Dark Violet
ΔE2000 4.1
Where it sits
Hue272° of 360°
Saturation90%
Lightness46%
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#7c0cdd
RGBrgb(124, 12, 221)
HSLhsl(272, 90%, 46%)
CMYKcmyk(44%, 95%, 0%, 13%)
LABlab(37.4 74.3 -79.8)
LCHlch(37.4 109.1 313.0)
OKLCHoklch(0.496 0.261 298.8)
Decimal8129757
Display P3color(display-p3 0.486 0.047 0.867)

Copy-ready code

/* CSS */
color: #7c0cdd;
background-color: #7c0cdd;
/* Tailwind (arbitrary) */
class="text-[#7c0cdd] bg-[#7c0cdd]"
/* SCSS */
$brand: #7c0cdd;
/* SwiftUI */
Color(red: 0.486, green: 0.047, blue: 0.867)
/* Android */
Color.parseColor("#7c0cdd")
/* Flutter */
Color(0xFF7C0CDD)
/* Python / OpenCV (BGR) */
(221, 12, 124)

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

Accessibility — WCAG contrast

Aa
#7c0cdd on white: 7.11:1
AA ✓ pass · AA-large · AAA
Aa
#7c0cdd on black: 2.95:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0058E2
deuteranopia · #0056DA
tritanopia · #635782

Color scale — 50 to 950

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

#F8F2FD
#F1E5FB
#E0C3F8
#CB95F9
#B05FF6
#962AF3
#7c0cdd
#6D0BC1
#57089B
#410B70
#290746
Base = 600Lightest = 50 · #F8F2FDDarkest = 950 · #290746
:root {
  --brand-50: #F8F2FD;
  --brand-100: #F1E5FB;
  --brand-200: #E0C3F8;
  --brand-300: #CB95F9;
  --brand-400: #B05FF6;
  --brand-500: #962AF3;
  --brand-600: #7c0cdd;
  --brand-700: #6D0BC1;
  --brand-800: #57089B;
  --brand-900: #410B70;
  --brand-950: #290746;
  --brand: #7c0cdd;
  --brand-ink: #ffffff;
}

Colors that work with #7c0cdd

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#8FC606
Second voice, not a rival
Dark variant#440779
Hover, pressed, headers
Light variant#F3E7FE
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 #7c0cdd

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
  • Text on black or near-black surfaces
  • 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#6DDD0C
Analogous left#140CDD
Analogous right#DD0CD5
Split-complement 1#D5DD0C
Split-complement 2#0CDD14
Triadic 1#DD7C0C
Triadic 2#0CDD7C
Tetradic#DD140C

RGB percentages

Red48.6%
Green4.7%
Blue86.7%

CMYK percentages

Cyan43.9%
Magenta94.6%
Yellow0.0%
Key (black)13.3%

Color previews

#7c0cdd text on a black background

contrast 2.95:1

Card sample

#7c0cdd text on a white background

contrast 7.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(124, 12, 221, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(124, 12, 221, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7c0cdd;
background: linear-gradient(135deg, #7c0cdd, #DD0CB3);

Monochromatic scale

Palettes built from #7c0cdd

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.

#7c0cdd 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.

#7c0cdd, answered

What color is #7c0cdd?

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

What is the RGB value of #7c0cdd?

rgb(124, 12, 221) — 124 red, 12 green and 221 blue out of 255, or 48.6% / 4.7% / 86.7% by channel.

Is #7c0cdd a light or a dark color?

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

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

White. It scores 7.11:1 against #7c0cdd, versus 2.95:1 for black — AAA at any size.

What is the complementary color of #7c0cdd?

#6DDD0C sits directly opposite on the wheel. Softer options are the split-complements #D5DD0C and #0CDD14, which give the same contrast with far less vibration.

What colors go well with #7c0cdd?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #764B9B for secondary text, #8FC606 as an accent and #440779 for hover and pressed states. For a palette, the analogous pair #140CDD and #DD0CD5 stays calm, while #6DDD0C is the loudest partner.

What is #7c0cdd in CMYK for printing?

cmyk(44%, 95%, 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 #7c0cdd 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 #C90CDD; nudged cooler, #2E0ADF.

Work with #7c0cdd in the Color Lab