Skip to content

#7f4fba

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

RGB
127, 79, 186
HSL
267°, 44%, 52%
CMYK
32, 58, 0, 27
Luminance
0.1365

At a glance

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

Hex
#7f4fba
Hue
267°
violet
Saturation
44%
soft
Lightness
52%
balanced
Brightness
73%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1365
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Soft
Best ink
White
5.63:1
Closest name
Slate Blue
ΔE2000 6.6
Where it sits
Hue267° of 360°
Saturation44%
Lightness52%
Temperature
Warm ← → Cool68% 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#7f4fba
RGBrgb(127, 79, 186)
HSLhsl(267, 44%, 52%)
CMYKcmyk(32%, 58%, 0%, 27%)
LABlab(43.7 42.0 -49.2)
LCHlch(43.7 64.7 310.4)
OKLCHoklch(0.533 0.164 301.8)
Decimal8343482
Display P3color(display-p3 0.498 0.310 0.729)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7f4fba on white: 5.63:1
AA ✓ pass · AA-large · AAA
Aa
#7f4fba on black: 3.73:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1F67BE
deuteranopia · #3367B8
tritanopia · #73647D

Color scale — 50 to 950

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

#F7F5FA
#EFEAF5
#DDD1EB
#C4AEDF
#A786D0
#7f4fba
#7545B0
#613993
#4E2E75
#3B2556
#251736
Base = 500Lightest = 50 · #F7F5FADarkest = 950 · #251736
:root {
  --brand-50: #F7F5FA;
  --brand-100: #EFEAF5;
  --brand-200: #DDD1EB;
  --brand-300: #C4AEDF;
  --brand-400: #A786D0;
  --brand-500: #7f4fba;
  --brand-600: #7545B0;
  --brand-700: #613993;
  --brand-800: #4E2E75;
  --brand-900: #3B2556;
  --brand-950: #251736;
  --brand: #7f4fba;
  --brand-ink: #ffffff;
}

Colors that work with #7f4fba

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#F7F4FA
Tinted page background
Border#D4C4E8
Hairlines and dividers
Muted text#6F4B9B
Captions on the surface
Accent#849735
Second voice, not a rival
Dark variant#3D245C
Hover, pressed, headers
Light variant#F2EDF8
Selected rows, tints
Dark surface#1B1424
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 #7f4fba

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#8ABA4F
Analogous left#4F55BA
Analogous right#B54FBA
Split-complement 1#BAB54F
Split-complement 2#55BA4F
Triadic 1#BA7F4F
Triadic 2#4FBA7F
Tetradic#BA4F55

RGB percentages

Red49.8%
Green31.0%
Blue72.9%

CMYK percentages

Cyan31.7%
Magenta57.5%
Yellow0.0%
Key (black)27.1%

Color previews

#7f4fba text on a black background

contrast 3.73:1

Card sample

#7f4fba text on a white background

contrast 5.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7f4fba

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.

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

#7f4fba, answered

What color is #7f4fba?

#7f4fba is a balanced soft violet, closest to Slate Blue (ΔE2000 6.6). It sits at 267° on the hue wheel with 44% saturation and 52% lightness, which reads as cool.

What is the RGB value of #7f4fba?

rgb(127, 79, 186) — 127 red, 79 green and 186 blue out of 255, or 49.8% / 31% / 72.9% by channel.

Is #7f4fba a light or a dark color?

It is a dark color. Relative luminance is 0.1365 and perceived brightness is 44%, so white text on it reaches 5.63:1.

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

White. It scores 5.63:1 against #7f4fba, versus 3.73:1 for black — AA at any size.

What is the complementary color of #7f4fba?

#8ABA4F sits directly opposite on the wheel. Softer options are the split-complements #BAB54F and #55BA4F, which give the same contrast with far less vibration.

What colors go well with #7f4fba?

For interface work: #F7F4FA as the surface, #D4C4E8 for borders, #6F4B9B for secondary text, #849735 as an accent and #3D245C for hover and pressed states. For a palette, the analogous pair #4F55BA and #B54FBA stays calm, while #8ABA4F is the loudest partner.

What is #7f4fba in CMYK for printing?

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

Is #7f4fba warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A64FBA; nudged cooler, #564DBD.

Work with #7f4fba in the Color Lab