Skip to content

#7b2dfd

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

RGB
123, 45, 253
HSL
263°, 98%, 58%
CMYK
51, 82, 0, 1
Luminance
0.1318

At a glance

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

Hex
#7b2dfd
Hue
263°
violet
Saturation
98%
electric
Lightness
58%
balanced
Brightness
99%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1318
WCAG relative
Temperature
Cool
71/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.78:1
Closest name
Blue Violet
ΔE2000 3.9
Where it sits
Hue263° of 360°
Saturation98%
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#7b2dfd
RGBrgb(123, 45, 253)
HSLhsl(263, 98%, 58%)
CMYKcmyk(51%, 82%, 0%, 1%)
LABlab(43.0 73.5 -88.7)
LCHlch(43.0 115.2 309.7)
OKLCHoklch(0.543 0.273 291.1)
Decimal8072701
Display P3color(display-p3 0.482 0.176 0.992)

Copy-ready code

/* CSS */
color: #7b2dfd;
background-color: #7b2dfd;
/* Tailwind (arbitrary) */
class="text-[#7b2dfd] bg-[#7b2dfd]"
/* SCSS */
$brand: #7b2dfd;
/* SwiftUI */
Color(red: 0.482, green: 0.176, blue: 0.992)
/* Android */
Color.parseColor("#7b2dfd")
/* Flutter */
Color(0xFF7B2DFD)
/* Python / OpenCV (BGR) */
(253, 45, 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 #7b2dfd · 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.64:1
AA fail · AA large pass · AAA fail
Reading the other direction: #7b2dfd as text scores 5.78:1 on white and 3.64:1 on black.

Accessibility — WCAG contrast

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

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #7b2dfd 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
#EDE3FC
#D7C1FB
#B990FE
#9658FD
#7b2dfd
#5C02F2
#4D02CA
#3E02A2
#2F0674
#1E0449
Base = 500Lightest = 50 · #F6F1FDDarkest = 950 · #1E0449
:root {
  --brand-50: #F6F1FD;
  --brand-100: #EDE3FC;
  --brand-200: #D7C1FB;
  --brand-300: #B990FE;
  --brand-400: #9658FD;
  --brand-500: #7b2dfd;
  --brand-600: #5C02F2;
  --brand-700: #4D02CA;
  --brand-800: #3E02A2;
  --brand-900: #2F0674;
  --brand-950: #1E0449;
  --brand: #7b2dfd;
  --brand-ink: #ffffff;
}

Colors that work with #7b2dfd

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#30017E
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 #7b2dfd

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#AFFD2D
Analogous left#2D47FD
Analogous right#E32DFD
Split-complement 1#FDE32D
Split-complement 2#47FD2D
Triadic 1#FD7B2D
Triadic 2#2DFD7B
Tetradic#FD2D47

RGB percentages

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

CMYK percentages

Cyan51.4%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#7b2dfd text on a black background

contrast 3.64:1

Card sample

#7b2dfd text on a white background

contrast 5.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7b2dfd

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.

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

#7b2dfd, answered

What color is #7b2dfd?

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

What is the RGB value of #7b2dfd?

rgb(123, 45, 253) — 123 red, 45 green and 253 blue out of 255, or 48.2% / 17.6% / 99.2% by channel.

Is #7b2dfd a light or a dark color?

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

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

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

What is the complementary color of #7b2dfd?

#AFFD2D sits directly opposite on the wheel. Softer options are the split-complements #FDE32D and #47FD2D, which give the same contrast with far less vibration.

What colors go well with #7b2dfd?

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

What is #7b2dfd in CMYK for printing?

cmyk(51%, 82%, 0%, 1%). 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 #7b2dfd 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 #C72DFD; nudged cooler, #2D2BFF.

Work with #7b2dfd in the Color Lab