Skip to content

#7f4cdc

a balanced, vivid violet · cool · closest name: Slate Blue

RGB
127, 76, 220
HSL
261°, 67%, 58%
CMYK
42, 66, 0, 14
Luminance
0.1485

At a glance

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

Hex
#7f4cdc
Hue
261°
violet
Saturation
67%
vivid
Lightness
58%
balanced
Brightness
86%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1485
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
5.29:1
Closest name
Slate Blue
ΔE2000 5.6
Where it sits
Hue261° of 360°
Saturation67%
Lightness58%
Temperature
Warm ← → Cool72% 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#7f4cdc
RGBrgb(127, 76, 220)
HSLhsl(261, 67%, 58%)
CMYKcmyk(42%, 66%, 0%, 14%)
LABlab(45.4 52.4 -66.1)
LCHlch(45.4 84.3 308.4)
OKLCHoklch(0.552 0.208 294.9)
Decimal8342748
Display P3color(display-p3 0.498 0.298 0.863)

Copy-ready code

/* CSS */
color: #7f4cdc;
background-color: #7f4cdc;
/* Tailwind (arbitrary) */
class="text-[#7f4cdc] bg-[#7f4cdc]"
/* SCSS */
$brand: #7f4cdc;
/* SwiftUI */
Color(red: 0.498, green: 0.298, blue: 0.863)
/* Android */
Color.parseColor("#7f4cdc")
/* Flutter */
Color(0xFF7F4CDC)
/* Python / OpenCV (BGR) */
(220, 76, 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 #7f4cdc · 5.29:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.29:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.97:1
AA fail · AA large pass · AAA fail
Reading the other direction: #7f4cdc as text scores 5.29:1 on white and 3.97:1 on black.

Accessibility — WCAG contrast

Aa
#7f4cdc on white: 5.29:1
AA ✓ pass · AA-large · AAA
Aa
#7f4cdc on black: 3.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006DE0
deuteranopia · #0069D9
tritanopia · #666E8E

Color scale — 50 to 950

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

#F6F3FB
#EDE8F8
#D8CAF1
#BCA1ED
#9A72E3
#7f4cdc
#6328CD
#5221AB
#421B89
#321763
#1F0F3E
Base = 500Lightest = 50 · #F6F3FBDarkest = 950 · #1F0F3E
:root {
  --brand-50: #F6F3FB;
  --brand-100: #EDE8F8;
  --brand-200: #D8CAF1;
  --brand-300: #BCA1ED;
  --brand-400: #9A72E3;
  --brand-500: #7f4cdc;
  --brand-600: #6328CD;
  --brand-700: #5221AB;
  --brand-800: #421B89;
  --brand-900: #321763;
  --brand-950: #1F0F3E;
  --brand: #7f4cdc;
  --brand-ink: #ffffff;
}

Colors that work with #7f4cdc

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#F6F4FA
Tinted page background
Border#D0C0ED
Hairlines and dividers
Muted text#674B9B
Captions on the surface
Accent#9FAE1E
Second voice, not a rival
Dark variant#33156B
Hover, pressed, headers
Light variant#F0EAFB
Selected rows, tints
Dark surface#1A1424
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 #7f4cdc

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#A9DC4C
Analogous left#4C61DC
Analogous right#C74CDC
Split-complement 1#DCC74C
Split-complement 2#61DC4C
Triadic 1#DC7F4C
Triadic 2#4CDC7F
Tetradic#DC4C61

RGB percentages

Red49.8%
Green29.8%
Blue86.3%

CMYK percentages

Cyan42.3%
Magenta65.5%
Yellow0.0%
Key (black)13.7%

Color previews

#7f4cdc text on a black background

contrast 3.97:1

Card sample

#7f4cdc text on a white background

contrast 5.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7f4cdc

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.

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

#7f4cdc, answered

What color is #7f4cdc?

#7f4cdc is a balanced vivid violet, closest to Slate Blue (ΔE2000 5.6). It sits at 261° on the hue wheel with 67% saturation and 58% lightness, which reads as cool.

What is the RGB value of #7f4cdc?

rgb(127, 76, 220) — 127 red, 76 green and 220 blue out of 255, or 49.8% / 29.8% / 86.3% by channel.

Is #7f4cdc a light or a dark color?

It is a dark color. Relative luminance is 0.1485 and perceived brightness is 46%, so white text on it reaches 5.29:1.

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

White. It scores 5.29:1 against #7f4cdc, versus 3.97:1 for black — AA at any size.

What is the complementary color of #7f4cdc?

#A9DC4C sits directly opposite on the wheel. Softer options are the split-complements #DCC74C and #61DC4C, which give the same contrast with far less vibration.

What colors go well with #7f4cdc?

For interface work: #F6F4FA as the surface, #D0C0ED for borders, #674B9B for secondary text, #9FAE1E as an accent and #33156B for hover and pressed states. For a palette, the analogous pair #4C61DC and #C74CDC stays calm, while #A9DC4C is the loudest partner.

What is #7f4cdc in CMYK for printing?

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

Is #7f4cdc warm or cool?

Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B44CDC; nudged cooler, #4A4BDE.

Work with #7f4cdc in the Color Lab