Skip to content

#7f3fec

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

RGB
127, 63, 236
HSL
262°, 82%, 59%
CMYK
46, 73, 0, 8
Luminance
0.1412

At a glance

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

Hex
#7f3fec
Hue
262°
violet
Saturation
82%
electric
Lightness
59%
balanced
Brightness
93%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1412
WCAG relative
Temperature
Cool
71/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.49:1
Closest name
Blue Violet
ΔE2000 3.8
Where it sits
Hue262° of 360°
Saturation82%
Lightness59%
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#7f3fec
RGBrgb(127, 63, 236)
HSLhsl(262, 82%, 59%)
CMYKcmyk(46%, 73%, 0%, 8%)
LABlab(44.4 62.8 -76.8)
LCHlch(44.4 99.3 309.3)
OKLCHoklch(0.549 0.241 293.8)
Decimal8339436
Display P3color(display-p3 0.498 0.247 0.925)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7f3fec on white: 5.49:1
AA ✓ pass · AA-large · AAA
Aa
#7f3fec on black: 3.82:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006BF1
deuteranopia · #0066E9
tritanopia · #5E6D93

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #7f3fec 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
#EDE6F9
#D8C6F6
#BB99F5
#9966F0
#7f3fec
#6016DF
#5012BA
#400F95
#310F6B
#1F0943
Base = 500Lightest = 50 · #F6F2FCDarkest = 950 · #1F0943
:root {
  --brand-50: #F6F2FC;
  --brand-100: #EDE6F9;
  --brand-200: #D8C6F6;
  --brand-300: #BB99F5;
  --brand-400: #9966F0;
  --brand-500: #7f3fec;
  --brand-600: #6016DF;
  --brand-700: #5012BA;
  --brand-800: #400F95;
  --brand-900: #310F6B;
  --brand-950: #1F0943;
  --brand: #7f3fec;
  --brand-ink: #ffffff;
}

Colors that work with #7f3fec

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#D0C0ED
Hairlines and dividers
Muted text#684B9B
Captions on the surface
Accent#A8BE0E
Second voice, not a rival
Dark variant#320B74
Hover, pressed, headers
Light variant#F0E8FD
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 #7f3fec

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#ACEC3F
Analogous left#3F55EC
Analogous right#D53FEC
Split-complement 1#ECD53F
Split-complement 2#55EC3F
Triadic 1#EC7F3F
Triadic 2#3FEC7F
Tetradic#EC3F55

RGB percentages

Red49.8%
Green24.7%
Blue92.5%

CMYK percentages

Cyan46.2%
Magenta73.3%
Yellow0.0%
Key (black)7.5%

Color previews

#7f3fec text on a black background

contrast 3.82:1

Card sample

#7f3fec text on a white background

contrast 5.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7f3fec

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.

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

#7f3fec, answered

What color is #7f3fec?

#7f3fec is a balanced electric violet, closest to Blue Violet (ΔE2000 3.8). It sits at 262° on the hue wheel with 82% saturation and 59% lightness, which reads as cool.

What is the RGB value of #7f3fec?

rgb(127, 63, 236) — 127 red, 63 green and 236 blue out of 255, or 49.8% / 24.7% / 92.5% by channel.

Is #7f3fec a light or a dark color?

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

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

White. It scores 5.49:1 against #7f3fec, versus 3.82:1 for black — AA at any size.

What is the complementary color of #7f3fec?

#ACEC3F sits directly opposite on the wheel. Softer options are the split-complements #ECD53F and #55EC3F, which give the same contrast with far less vibration.

What colors go well with #7f3fec?

For interface work: #F7F4FA as the surface, #D0C0ED for borders, #684B9B for secondary text, #A8BE0E as an accent and #320B74 for hover and pressed states. For a palette, the analogous pair #3F55EC and #D53FEC stays calm, while #ACEC3F is the loudest partner.

What is #7f3fec in CMYK for printing?

cmyk(46%, 73%, 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 #7f3fec 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 #BE3FEC; nudged cooler, #3D3DEE.

Work with #7f3fec in the Color Lab