Skip to content

#7f2dbc

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

RGB
127, 45, 188
HSL
274°, 61%, 46%
CMYK
32, 76, 0, 26
Luminance
0.1002

At a glance

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

Hex
#7f2dbc
Hue
274°
violet
Saturation
61%
vivid
Lightness
46%
balanced
Brightness
74%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1002
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
6.99:1
Closest name
Dark Violet
ΔE2000 4.4
Where it sits
Hue274° of 360°
Saturation61%
Lightness46%
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#7f2dbc
RGBrgb(127, 45, 188)
HSLhsl(274, 61%, 46%)
CMYKcmyk(32%, 76%, 0%, 26%)
LABlab(37.9 58.9 -59.9)
LCHlch(37.9 84.0 314.5)
OKLCHoklch(0.491 0.210 305.9)
Decimal8334780
Display P3color(display-p3 0.498 0.176 0.737)

Copy-ready code

/* CSS */
color: #7f2dbc;
background-color: #7f2dbc;
/* Tailwind (arbitrary) */
class="text-[#7f2dbc] bg-[#7f2dbc]"
/* SCSS */
$brand: #7f2dbc;
/* SwiftUI */
Color(red: 0.498, green: 0.176, blue: 0.737)
/* Android */
Color.parseColor("#7f2dbc")
/* Flutter */
Color(0xFF7F2DBC)
/* Python / OpenCV (BGR) */
(188, 45, 127)

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

Accessibility — WCAG contrast

Aa
#7f2dbc on white: 6.99:1
AA ✓ pass · AA-large · AAA
Aa
#7f2dbc on black: 3.00:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0057C0
deuteranopia · #0059B9
tritanopia · #745173

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #7f2dbc 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
#F1E8F7
#E0CCF0
#CCA4E9
#B277DF
#994AD4
#7f2dbc
#6F27A5
#591F84
#421B60
#29113C
Base = 600Lightest = 50 · #F8F4FBDarkest = 950 · #29113C
:root {
  --brand-50: #F8F4FB;
  --brand-100: #F1E8F7;
  --brand-200: #E0CCF0;
  --brand-300: #CCA4E9;
  --brand-400: #B277DF;
  --brand-500: #994AD4;
  --brand-600: #7f2dbc;
  --brand-700: #6F27A5;
  --brand-800: #591F84;
  --brand-900: #421B60;
  --brand-950: #29113C;
  --brand: #7f2dbc;
  --brand-ink: #ffffff;
}

Colors that work with #7f2dbc

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#D9C0ED
Hairlines and dividers
Muted text#794B9B
Captions on the surface
Accent#7DA923
Second voice, not a rival
Dark variant#451967
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 #7f2dbc

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#6ABC2D
Analogous left#372DBC
Analogous right#BC2DB2
Split-complement 1#B2BC2D
Split-complement 2#2DBC37
Triadic 1#BC7F2D
Triadic 2#2DBC7F
Tetradic#BC372D

RGB percentages

Red49.8%
Green17.6%
Blue73.7%

CMYK percentages

Cyan32.4%
Magenta76.1%
Yellow0.0%
Key (black)26.3%

Color previews

#7f2dbc text on a black background

contrast 3.00:1

Card sample

#7f2dbc text on a white background

contrast 6.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(127, 45, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 45, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7f2dbc;
background: linear-gradient(135deg, #7f2dbc, #BC2D9A);

Monochromatic scale

Palettes built from #7f2dbc

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.

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

#7f2dbc, answered

What color is #7f2dbc?

#7f2dbc is a balanced vivid violet, closest to Dark Violet (ΔE2000 4.4). It sits at 274° on the hue wheel with 61% saturation and 46% lightness, which reads as cool.

What is the RGB value of #7f2dbc?

rgb(127, 45, 188) — 127 red, 45 green and 188 blue out of 255, or 49.8% / 17.6% / 73.7% by channel.

Is #7f2dbc a light or a dark color?

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

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

White. It scores 6.99:1 against #7f2dbc, versus 3.00:1 for black — AA at any size.

What is the complementary color of #7f2dbc?

#6ABC2D sits directly opposite on the wheel. Softer options are the split-complements #B2BC2D and #2DBC37, which give the same contrast with far less vibration.

What colors go well with #7f2dbc?

For interface work: #F8F4FA as the surface, #D9C0ED for borders, #794B9B for secondary text, #7DA923 as an accent and #451967 for hover and pressed states. For a palette, the analogous pair #372DBC and #BC2DB2 stays calm, while #6ABC2D is the loudest partner.

What is #7f2dbc in CMYK for printing?

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

Is #7f2dbc 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 #B42DBC; nudged cooler, #492BBE.

Work with #7f2dbc in the Color Lab