Skip to content

#7f3aef

a balanced, electric violet · cool · closest name: Blue Violet

RGB
127, 58, 239
HSL
263°, 85%, 58%
CMYK
47, 76, 0, 6
Luminance
0.1377

At a glance

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

Hex
#7f3aef
Hue
263°
violet
Saturation
85%
electric
Lightness
58%
balanced
Brightness
94%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1377
WCAG relative
Temperature
Cool
71/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.59:1
Closest name
Blue Violet
ΔE2000 3.3
Where it sits
Hue263° of 360°
Saturation85%
Lightness58%
Temperature
Warm ← → Cool71% 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#7f3aef
RGBrgb(127, 58, 239)
HSLhsl(263, 85%, 58%)
CMYKcmyk(47%, 76%, 0%, 6%)
LABlab(43.9 65.7 -79.4)
LCHlch(43.9 103.0 309.6)
OKLCHoklch(0.546 0.249 293.7)
Decimal8338159
Display P3color(display-p3 0.498 0.227 0.937)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7f3aef on white: 5.59:1
AA ✓ pass · AA-large · AAA
Aa
#7f3aef on black: 3.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006AF4
deuteranopia · #0065EC
tritanopia · #5D6C93

Color scale — 50 to 950

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

#F6F2FC
#EDE5FA
#D8C5F7
#BC97F7
#9A63F2
#7f3aef
#6212E2
#510FBD
#410C97
#320D6D
#1F0844
Base = 500Lightest = 50 · #F6F2FCDarkest = 950 · #1F0844
:root {
  --brand-50: #F6F2FC;
  --brand-100: #EDE5FA;
  --brand-200: #D8C5F7;
  --brand-300: #BC97F7;
  --brand-400: #9A63F2;
  --brand-500: #7f3aef;
  --brand-600: #6212E2;
  --brand-700: #510FBD;
  --brand-800: #410C97;
  --brand-900: #320D6D;
  --brand-950: #1F0844;
  --brand: #7f3aef;
  --brand-ink: #ffffff;
}

Colors that work with #7f3aef

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#D1C0ED
Hairlines and dividers
Muted text#694B9B
Captions on the surface
Accent#A9C00C
Second voice, not a rival
Dark variant#330A76
Hover, pressed, headers
Light variant#F0E7FD
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 #7f3aef

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#AAEF3A
Analogous left#3A4FEF
Analogous right#DA3AEF
Split-complement 1#EFDA3A
Split-complement 2#4FEF3A
Triadic 1#EF7F3A
Triadic 2#3AEF7F
Tetradic#EF3A4F

RGB percentages

Red49.8%
Green22.7%
Blue93.7%

CMYK percentages

Cyan46.9%
Magenta75.7%
Yellow0.0%
Key (black)6.3%

Color previews

#7f3aef text on a black background

contrast 3.75:1

Card sample

#7f3aef text on a white background

contrast 5.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7f3aef

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.

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

#7f3aef, answered

What color is #7f3aef?

#7f3aef is a balanced electric violet, closest to Blue Violet (ΔE2000 3.3). It sits at 263° on the hue wheel with 85% saturation and 58% lightness, which reads as cool.

What is the RGB value of #7f3aef?

rgb(127, 58, 239) — 127 red, 58 green and 239 blue out of 255, or 49.8% / 22.7% / 93.7% by channel.

Is #7f3aef a light or a dark color?

It is a dark color. Relative luminance is 0.1377 and perceived brightness is 45%, so white text on it reaches 5.59:1.

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

White. It scores 5.59:1 against #7f3aef, versus 3.75:1 for black — AA at any size.

What is the complementary color of #7f3aef?

#AAEF3A sits directly opposite on the wheel. Softer options are the split-complements #EFDA3A and #4FEF3A, which give the same contrast with far less vibration.

What colors go well with #7f3aef?

For interface work: #F7F4FA as the surface, #D1C0ED for borders, #694B9B for secondary text, #A9C00C as an accent and #330A76 for hover and pressed states. For a palette, the analogous pair #3A4FEF and #DA3AEF stays calm, while #AAEF3A is the loudest partner.

What is #7f3aef in CMYK for printing?

cmyk(47%, 76%, 0%, 6%). 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 #7f3aef warm or cool?

Cool — it scores 71 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C13AEF; nudged cooler, #3A38F1.

Work with #7f3aef in the Color Lab