Skip to content

#7b2cfb

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

RGB
123, 44, 251
HSL
263°, 96%, 58%
CMYK
51, 83, 0, 2
Luminance
0.1298

At a glance

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

Hex
#7b2cfb
Hue
263°
violet
Saturation
96%
electric
Lightness
58%
balanced
Brightness
98%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1298
WCAG relative
Temperature
Cool
71/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.84:1
Closest name
Blue Violet
ΔE2000 3.7
Where it sits
Hue263° of 360°
Saturation96%
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#7b2cfb
RGBrgb(123, 44, 251)
HSLhsl(263, 96%, 58%)
CMYKcmyk(51%, 83%, 0%, 2%)
LABlab(42.7 73.4 -88.1)
LCHlch(42.7 114.7 309.8)
OKLCHoklch(0.540 0.272 291.5)
Decimal8072443
Display P3color(display-p3 0.482 0.173 0.984)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7b2cfb on white: 5.84:1
AA ✓ pass · AA-large · AAA
Aa
#7b2cfb on black: 3.60:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0068FF
deuteranopia · #0060F7
tritanopia · #4D6C97

Color scale — 50 to 950

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

#F6F1FD
#EDE4FC
#D7C1FA
#BA91FD
#985AFC
#7b2cfb
#5F05F0
#4F04C8
#3F03A0
#300773
#1E0448
Base = 500Lightest = 50 · #F6F1FDDarkest = 950 · #1E0448
:root {
  --brand-50: #F6F1FD;
  --brand-100: #EDE4FC;
  --brand-200: #D7C1FA;
  --brand-300: #BA91FD;
  --brand-400: #985AFC;
  --brand-500: #7b2cfb;
  --brand-600: #5F05F0;
  --brand-700: #4F04C8;
  --brand-800: #3F03A0;
  --brand-900: #300773;
  --brand-950: #1E0448;
  --brand: #7b2cfb;
  --brand-ink: #ffffff;
}

Colors that work with #7b2cfb

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#B1CC00
Second voice, not a rival
Dark variant#31027D
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 #7b2cfb

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#ACFB2C
Analogous left#2C44FB
Analogous right#E22CFB
Split-complement 1#FBE22C
Split-complement 2#44FB2C
Triadic 1#FB7B2C
Triadic 2#2CFB7B
Tetradic#FB2C44

RGB percentages

Red48.2%
Green17.3%
Blue98.4%

CMYK percentages

Cyan51.0%
Magenta82.5%
Yellow0.0%
Key (black)1.6%

Color previews

#7b2cfb text on a black background

contrast 3.60:1

Card sample

#7b2cfb text on a white background

contrast 5.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7b2cfb

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.

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

#7b2cfb, answered

What color is #7b2cfb?

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

What is the RGB value of #7b2cfb?

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

Is #7b2cfb a light or a dark color?

It is a dark color. Relative luminance is 0.1298 and perceived brightness is 44%, so white text on it reaches 5.84:1.

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

White. It scores 5.84:1 against #7b2cfb, versus 3.60:1 for black — AA at any size.

What is the complementary color of #7b2cfb?

#ACFB2C sits directly opposite on the wheel. Softer options are the split-complements #FBE22C and #44FB2C, which give the same contrast with far less vibration.

What colors go well with #7b2cfb?

For interface work: #F7F4FA as the surface, #D1C0ED for borders, #694B9B for secondary text, #B1CC00 as an accent and #31027D for hover and pressed states. For a palette, the analogous pair #2C44FB and #E22CFB stays calm, while #ACFB2C is the loudest partner.

What is #7b2cfb in CMYK for printing?

cmyk(51%, 83%, 0%, 2%). 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 #7b2cfb 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 #C72CFB; nudged cooler, #2D2AFD.

Work with #7b2cfb in the Color Lab