Skip to content

#7b2cfe

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

RGB
123, 44, 254
HSL
263°, 99%, 58%
CMYK
52, 83, 0, 0
Luminance
0.1317

At a glance

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

Hex
#7b2cfe
Hue
263°
violet
Saturation
99%
electric
Lightness
58%
balanced
Brightness
100%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1317
WCAG relative
Temperature
Cool
71/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.78:1
Closest name
Blue Violet
ΔE2000 4
Where it sits
Hue263° of 360°
Saturation99%
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#7b2cfe
RGBrgb(123, 44, 254)
HSLhsl(263, 99%, 58%)
CMYKcmyk(52%, 83%, 0%, 0%)
LABlab(43.0 74.1 -89.3)
LCHlch(43.0 116.0 309.7)
OKLCHoklch(0.543 0.275 291.0)
Decimal8072446
Display P3color(display-p3 0.482 0.173 0.996)

Copy-ready code

/* CSS */
color: #7b2cfe;
background-color: #7b2cfe;
/* Tailwind (arbitrary) */
class="text-[#7b2cfe] bg-[#7b2cfe]"
/* SCSS */
$brand: #7b2cfe;
/* SwiftUI */
Color(red: 0.482, green: 0.173, blue: 0.996)
/* Android */
Color.parseColor("#7b2cfe")
/* Flutter */
Color(0xFF7B2CFE)
/* Python / OpenCV (BGR) */
(254, 44, 123)

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 #7b2cfe · 5.78:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.78:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.63:1
AA fail · AA large pass · AAA fail
Reading the other direction: #7b2cfe as text scores 5.78:1 on white and 3.63:1 on black.

Accessibility — WCAG contrast

Aa
#7b2cfe on white: 5.78:1
AA ✓ pass · AA-large · AAA
Aa
#7b2cfe on black: 3.63:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0069FF
deuteranopia · #0061FA
tritanopia · #4B6D99

Color scale — 50 to 950

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

#F6F1FE
#EDE3FC
#D7C0FB
#B98FFE
#9657FE
#7b2cfe
#5C01F4
#4D01CB
#3E01A2
#2F0575
#1E0349
Base = 500Lightest = 50 · #F6F1FEDarkest = 950 · #1E0349
:root {
  --brand-50: #F6F1FE;
  --brand-100: #EDE3FC;
  --brand-200: #D7C0FB;
  --brand-300: #B98FFE;
  --brand-400: #9657FE;
  --brand-500: #7b2cfe;
  --brand-600: #5C01F4;
  --brand-700: #4D01CB;
  --brand-800: #3E01A2;
  --brand-900: #2F0575;
  --brand-950: #1E0349;
  --brand: #7b2cfe;
  --brand-ink: #ffffff;
}

Colors that work with #7b2cfe

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#B2CC00
Second voice, not a rival
Dark variant#30017F
Hover, pressed, headers
Light variant#EFE6FF
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 #7b2cfe

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#AFFE2C
Analogous left#2C46FE
Analogous right#E42CFE
Split-complement 1#FEE42C
Split-complement 2#46FE2C
Triadic 1#FE7B2C
Triadic 2#2CFE7B
Tetradic#FE2C46

RGB percentages

Red48.2%
Green17.3%
Blue99.6%

CMYK percentages

Cyan51.6%
Magenta82.7%
Yellow0.0%
Key (black)0.4%

Color previews

#7b2cfe text on a black background

contrast 3.63:1

Card sample

#7b2cfe text on a white background

contrast 5.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(123, 44, 254, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(123, 44, 254, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7b2cfe;
background: linear-gradient(135deg, #7b2cfe, #FE2CF5);

Monochromatic scale

Palettes built from #7b2cfe

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.

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

#7b2cfe, answered

What color is #7b2cfe?

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

What is the RGB value of #7b2cfe?

rgb(123, 44, 254) — 123 red, 44 green and 254 blue out of 255, or 48.2% / 17.3% / 99.6% by channel.

Is #7b2cfe a light or a dark color?

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

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

White. It scores 5.78:1 against #7b2cfe, versus 3.63:1 for black — AA at any size.

What is the complementary color of #7b2cfe?

#AFFE2C sits directly opposite on the wheel. Softer options are the split-complements #FEE42C and #46FE2C, which give the same contrast with far less vibration.

What colors go well with #7b2cfe?

For interface work: #F7F4FA as the surface, #D1C0ED for borders, #694B9B for secondary text, #B2CC00 as an accent and #30017F for hover and pressed states. For a palette, the analogous pair #2C46FE and #E42CFE stays calm, while #AFFE2C is the loudest partner.

What is #7b2cfe in CMYK for printing?

cmyk(52%, 83%, 0%, 0%). 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 #7b2cfe 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 #C82CFE; nudged cooler, #2D2BFF.

Work with #7b2cfe in the Color Lab