Skip to content

#7b0ccc

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

RGB
123, 12, 204
HSL
275°, 89%, 42%
CMYK
40, 94, 0, 20
Luminance
0.0883

At a glance

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

Hex
#7b0ccc
Hue
275°
violet
Saturation
89%
electric
Lightness
42%
dark
Brightness
80%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0883
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.59:1
Closest name
Dark Violet
ΔE2000 4.1
Where it sits
Hue275° of 360°
Saturation89%
Lightness42%
Temperature
Warm ← → Cool64% 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#7b0ccc
RGBrgb(123, 12, 204)
HSLhsl(275, 89%, 42%)
CMYKcmyk(40%, 94%, 0%, 20%)
LABlab(35.7 70.7 -72.9)
LCHlch(35.7 101.5 314.1)
OKLCHoklch(0.479 0.246 302.2)
Decimal8064204
Display P3color(display-p3 0.482 0.047 0.800)

Copy-ready code

/* CSS */
color: #7b0ccc;
background-color: #7b0ccc;
/* Tailwind (arbitrary) */
class="text-[#7b0ccc] bg-[#7b0ccc]"
/* SCSS */
$brand: #7b0ccc;
/* SwiftUI */
Color(red: 0.482, green: 0.047, blue: 0.800)
/* Android */
Color.parseColor("#7b0ccc")
/* Flutter */
Color(0xFF7B0CCC)
/* Python / OpenCV (BGR) */
(204, 12, 123)

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 #7b0ccc · 7.59:1
Use #ffffffAAA at every size.
Aa
White text · 7.59: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: #7b0ccc as text scores 7.59:1 on white and 2.77:1 on black.

Accessibility — WCAG contrast

Aa
#7b0ccc on white: 7.59:1
AA ✓ pass · AA-large · AAA
Aa
#7b0ccc on black: 2.77:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0053D1
deuteranopia · #0053C9
tritanopia · #694E78

Color scale — 50 to 950

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

#F8F2FD
#F1E5FB
#E2C4F8
#CF95F9
#B760F6
#9E2BF3
#8B0EE7
#7b0ccc
#5D099A
#450B6F
#2B0746
Base = 700Lightest = 50 · #F8F2FDDarkest = 950 · #2B0746
:root {
  --brand-50: #F8F2FD;
  --brand-100: #F1E5FB;
  --brand-200: #E2C4F8;
  --brand-300: #CF95F9;
  --brand-400: #B760F6;
  --brand-500: #9E2BF3;
  --brand-600: #8B0EE7;
  --brand-700: #7b0ccc;
  --brand-800: #5D099A;
  --brand-900: #450B6F;
  --brand-950: #2B0746;
  --brand: #7b0ccc;
  --brand-ink: #ffffff;
}

Colors that work with #7b0ccc

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#DAC0ED
Hairlines and dividers
Muted text#794B9B
Captions on the surface
Accent#86C408
Second voice, not a rival
Dark variant#490778
Hover, pressed, headers
Light variant#F4E7FE
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 #7b0ccc

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#5DCC0C
Analogous left#1B0CCC
Analogous right#CC0CBD
Split-complement 1#BDCC0C
Split-complement 2#0CCC1B
Triadic 1#CC7B0C
Triadic 2#0CCC7B
Tetradic#CC1B0C

RGB percentages

Red48.2%
Green4.7%
Blue80.0%

CMYK percentages

Cyan39.7%
Magenta94.1%
Yellow0.0%
Key (black)20.0%

Color previews

#7b0ccc text on a black background

contrast 2.77:1

Card sample

#7b0ccc text on a white background

contrast 7.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7b0ccc

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.

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

#7b0ccc, answered

What color is #7b0ccc?

#7b0ccc is a dark electric violet, closest to Dark Violet (ΔE2000 4.1). It sits at 275° on the hue wheel with 89% saturation and 42% lightness, which reads as cool.

What is the RGB value of #7b0ccc?

rgb(123, 12, 204) — 123 red, 12 green and 204 blue out of 255, or 48.2% / 4.7% / 80% by channel.

Is #7b0ccc a light or a dark color?

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

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

White. It scores 7.59:1 against #7b0ccc, versus 2.77:1 for black — AAA at any size.

What is the complementary color of #7b0ccc?

#5DCC0C sits directly opposite on the wheel. Softer options are the split-complements #BDCC0C and #0CCC1B, which give the same contrast with far less vibration.

What colors go well with #7b0ccc?

For interface work: #F8F4FA as the surface, #DAC0ED for borders, #794B9B for secondary text, #86C408 as an accent and #490778 for hover and pressed states. For a palette, the analogous pair #1B0CCC and #CC0CBD stays calm, while #5DCC0C is the loudest partner.

What is #7b0ccc in CMYK for printing?

cmyk(40%, 94%, 0%, 20%). 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 #7b0ccc warm or cool?

Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C20CCC; nudged cooler, #330ACE.

Work with #7b0ccc in the Color Lab