Skip to content

#7f58eb

a balanced, electric violet · cool · closest name: Medium Slate Blue

RGB
127, 88, 235
HSL
256°, 79%, 63%
CMYK
46, 63, 0, 8
Luminance
0.1749

At a glance

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

Hex
#7f58eb
Hue
256°
violet
Saturation
79%
electric
Lightness
63%
balanced
Brightness
92%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1749
WCAG relative
Temperature
Cool
75/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.67:1
Closest name
Medium Slate Blue
ΔE2000 4.6
Where it sits
Hue256° of 360°
Saturation79%
Lightness63%
Temperature
Warm ← → Cool75% 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#7f58eb
RGBrgb(127, 88, 235)
HSLhsl(256, 79%, 63%)
CMYKcmyk(46%, 63%, 0%, 8%)
LABlab(48.9 50.0 -69.0)
LCHlch(48.9 85.2 305.9)
OKLCHoklch(0.581 0.211 290.5)
Decimal8345835
Display P3color(display-p3 0.498 0.345 0.922)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7f58eb on white: 4.67:1
AA ✓ pass · AA-large · AAA
Aa
#7f58eb on black: 4.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0077F0
deuteranopia · #0071E8
tritanopia · #5D7B9A

Color scale — 50 to 950

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

#F5F3FC
#EBE6F9
#D3C7F5
#B29BF3
#7f58eb
#6537E7
#4D1ADB
#4016B6
#331192
#281169
#190B42
Base = 400Lightest = 50 · #F5F3FCDarkest = 950 · #190B42
:root {
  --brand-50: #F5F3FC;
  --brand-100: #EBE6F9;
  --brand-200: #D3C7F5;
  --brand-300: #B29BF3;
  --brand-400: #7f58eb;
  --brand-500: #6537E7;
  --brand-600: #4D1ADB;
  --brand-700: #4016B6;
  --brand-800: #331192;
  --brand-900: #281169;
  --brand-950: #190B42;
  --brand: #7f58eb;
  --brand-ink: #ffffff;
}

Colors that work with #7f58eb

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#CCC0ED
Hairlines and dividers
Muted text#604B9B
Captions on the surface
Accent#B7BB11
Second voice, not a rival
Dark variant#280E72
Hover, pressed, headers
Light variant#EEE8FC
Selected rows, tints
Dark surface#181424
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 #7f58eb

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

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • 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#C4EB58
Analogous left#587AEB
Analogous right#C858EB
Split-complement 1#EBC858
Split-complement 2#7AEB58
Triadic 1#EB7F58
Triadic 2#58EB7F
Tetradic#EB587A

RGB percentages

Red49.8%
Green34.5%
Blue92.2%

CMYK percentages

Cyan46.0%
Magenta62.6%
Yellow0.0%
Key (black)7.8%

Color previews

#7f58eb text on a black background

contrast 4.50:1

Card sample

#7f58eb text on a white background

contrast 4.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7f58eb

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.

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

#7f58eb, answered

What color is #7f58eb?

#7f58eb is a balanced electric violet, closest to Medium Slate Blue (ΔE2000 4.6). It sits at 256° on the hue wheel with 79% saturation and 63% lightness, which reads as cool.

What is the RGB value of #7f58eb?

rgb(127, 88, 235) — 127 red, 88 green and 235 blue out of 255, or 49.8% / 34.5% / 92.2% by channel.

Is #7f58eb a light or a dark color?

It is a dark color. Relative luminance is 0.1749 and perceived brightness is 49%, so white text on it reaches 4.67:1.

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

White. It scores 4.67:1 against #7f58eb, versus 4.50:1 for black — AA at any size.

What is the complementary color of #7f58eb?

#C4EB58 sits directly opposite on the wheel. Softer options are the split-complements #EBC858 and #7AEB58, which give the same contrast with far less vibration.

What colors go well with #7f58eb?

For interface work: #F6F4FA as the surface, #CCC0ED for borders, #604B9B for secondary text, #B7BB11 as an accent and #280E72 for hover and pressed states. For a palette, the analogous pair #587AEB and #C858EB stays calm, while #C4EB58 is the loudest partner.

What is #7f58eb in CMYK for printing?

cmyk(46%, 63%, 0%, 8%). 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 #7f58eb warm or cool?

Cool — it scores 75 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B558EB; nudged cooler, #5665ED.

Work with #7f58eb in the Color Lab