Skip to content

#7f1cf2

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

RGB
127, 28, 242
HSL
268°, 89%, 53%
CMYK
48, 88, 0, 5
Luminance
0.1175

At a glance

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

Hex
#7f1cf2
Hue
268°
violet
Saturation
89%
electric
Lightness
53%
balanced
Brightness
95%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1175
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
White
6.27:1
Closest name
Blue Violet
ΔE2000 2.9
Where it sits
Hue268° of 360°
Saturation89%
Lightness53%
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#7f1cf2
RGBrgb(127, 28, 242)
HSLhsl(268, 89%, 53%)
CMYKcmyk(48%, 88%, 0%, 5%)
LABlab(40.8 76.3 -86.1)
LCHlch(40.8 115.0 311.5)
OKLCHoklch(0.526 0.273 295.2)
Decimal8330482
Display P3color(display-p3 0.498 0.110 0.949)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7f1cf2 on white: 6.27:1
AA ✓ pass · AA-large · AAA
Aa
#7f1cf2 on black: 3.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0062F7
deuteranopia · #005DEE
tritanopia · #5C6390

Color scale — 50 to 950

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

#F7F2FD
#EFE5FB
#DCC4F8
#C395F9
#A560F6
#7f1cf2
#720DE8
#5F0BC1
#4C099A
#3A0B6F
#240746
Base = 500Lightest = 50 · #F7F2FDDarkest = 950 · #240746
:root {
  --brand-50: #F7F2FD;
  --brand-100: #EFE5FB;
  --brand-200: #DCC4F8;
  --brand-300: #C395F9;
  --brand-400: #A560F6;
  --brand-500: #7f1cf2;
  --brand-600: #720DE8;
  --brand-700: #5F0BC1;
  --brand-800: #4C099A;
  --brand-900: #3A0B6F;
  --brand-950: #240746;
  --brand: #7f1cf2;
  --brand-ink: #ffffff;
}

Colors that work with #7f1cf2

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#D5C0ED
Hairlines and dividers
Muted text#704B9B
Captions on the surface
Accent#9CC507
Second voice, not a rival
Dark variant#3C0779
Hover, pressed, headers
Light variant#F1E7FE
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 #7f1cf2

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#8FF21C
Analogous left#1C24F2
Analogous right#EA1CF2
Split-complement 1#F2EA1C
Split-complement 2#24F21C
Triadic 1#F27F1C
Triadic 2#1CF27F
Tetradic#F21C24

RGB percentages

Red49.8%
Green11.0%
Blue94.9%

CMYK percentages

Cyan47.5%
Magenta88.4%
Yellow0.0%
Key (black)5.1%

Color previews

#7f1cf2 text on a black background

contrast 3.35:1

Card sample

#7f1cf2 text on a white background

contrast 6.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7f1cf2

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.

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

#7f1cf2, answered

What color is #7f1cf2?

#7f1cf2 is a balanced electric violet, closest to Blue Violet (ΔE2000 2.9). It sits at 268° on the hue wheel with 89% saturation and 53% lightness, which reads as cool.

What is the RGB value of #7f1cf2?

rgb(127, 28, 242) — 127 red, 28 green and 242 blue out of 255, or 49.8% / 11% / 94.9% by channel.

Is #7f1cf2 a light or a dark color?

It is a dark color. Relative luminance is 0.1175 and perceived brightness is 43%, so white text on it reaches 6.27:1.

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

White. It scores 6.27:1 against #7f1cf2, versus 3.35:1 for black — AA at any size.

What is the complementary color of #7f1cf2?

#8FF21C sits directly opposite on the wheel. Softer options are the split-complements #F2EA1C and #24F21C, which give the same contrast with far less vibration.

What colors go well with #7f1cf2?

For interface work: #F7F4FA as the surface, #D5C0ED for borders, #704B9B for secondary text, #9CC507 as an accent and #3C0779 for hover and pressed states. For a palette, the analogous pair #1C24F2 and #EA1CF2 stays calm, while #8FF21C is the loudest partner.

What is #7f1cf2 in CMYK for printing?

cmyk(48%, 88%, 0%, 5%). 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 #7f1cf2 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 #CE1CF2; nudged cooler, #2F19F4.

Work with #7f1cf2 in the Color Lab