Skip to content

#7d2cfb

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

RGB
125, 44, 251
HSL
264°, 96%, 58%
CMYK
50, 83, 0, 2
Luminance
0.1313

At a glance

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

Hex
#7d2cfb
Hue
264°
violet
Saturation
96%
electric
Lightness
58%
balanced
Brightness
98%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1313
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.79:1
Closest name
Blue Violet
ΔE2000 3.6
Where it sits
Hue264° of 360°
Saturation96%
Lightness58%
Temperature
Warm ← → Cool70% 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#7d2cfb
RGBrgb(125, 44, 251)
HSLhsl(264, 96%, 58%)
CMYKcmyk(50%, 83%, 0%, 2%)
LABlab(43.0 73.6 -87.7)
LCHlch(43.0 114.5 310.0)
OKLCHoklch(0.542 0.272 292.1)
Decimal8203515
Display P3color(display-p3 0.490 0.173 0.984)

Copy-ready code

/* CSS */
color: #7d2cfb;
background-color: #7d2cfb;
/* Tailwind (arbitrary) */
class="text-[#7d2cfb] bg-[#7d2cfb]"
/* SCSS */
$brand: #7d2cfb;
/* SwiftUI */
Color(red: 0.490, green: 0.173, blue: 0.984)
/* Android */
Color.parseColor("#7d2cfb")
/* Flutter */
Color(0xFF7D2CFB)
/* Python / OpenCV (BGR) */
(251, 44, 125)

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 #7d2cfb · 5.79:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.79: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: #7d2cfb as text scores 5.79:1 on white and 3.63:1 on black.

Accessibility — WCAG contrast

Aa
#7d2cfb on white: 5.79:1
AA ✓ pass · AA-large · AAA
Aa
#7d2cfb on black: 3.63:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0068FF
deuteranopia · #0061F7
tritanopia · #516C97

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #7d2cfb 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
#D8C1FA
#BB91FD
#995AFC
#7d2cfb
#6105F0
#5104C8
#4103A0
#310773
#1F0448
Base = 500Lightest = 50 · #F6F1FDDarkest = 950 · #1F0448
:root {
  --brand-50: #F6F1FD;
  --brand-100: #EDE4FC;
  --brand-200: #D8C1FA;
  --brand-300: #BB91FD;
  --brand-400: #995AFC;
  --brand-500: #7d2cfb;
  --brand-600: #6105F0;
  --brand-700: #5104C8;
  --brand-800: #4103A0;
  --brand-900: #310773;
  --brand-950: #1F0448;
  --brand: #7d2cfb;
  --brand-ink: #ffffff;
}

Colors that work with #7d2cfb

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#6A4B9B
Captions on the surface
Accent#AFCC00
Second voice, not a rival
Dark variant#32027D
Hover, pressed, headers
Light variant#F0E6FF
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 #7d2cfb

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#AAFB2C
Analogous left#2C42FB
Analogous right#E52CFB
Split-complement 1#FBE52C
Split-complement 2#42FB2C
Triadic 1#FB7D2C
Triadic 2#2CFB7D
Tetradic#FB2C42

RGB percentages

Red49.0%
Green17.3%
Blue98.4%

CMYK percentages

Cyan50.2%
Magenta82.5%
Yellow0.0%
Key (black)1.6%

Color previews

#7d2cfb text on a black background

contrast 3.63:1

Card sample

#7d2cfb text on a white background

contrast 5.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7d2cfb

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.

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

#7d2cfb, answered

What color is #7d2cfb?

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

What is the RGB value of #7d2cfb?

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

Is #7d2cfb a light or a dark color?

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

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

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

What is the complementary color of #7d2cfb?

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

What colors go well with #7d2cfb?

For interface work: #F7F4FA as the surface, #D1C0ED for borders, #6A4B9B for secondary text, #AFCC00 as an accent and #32027D for hover and pressed states. For a palette, the analogous pair #2C42FB and #E52CFB stays calm, while #AAFB2C is the loudest partner.

What is #7d2cfb in CMYK for printing?

cmyk(50%, 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 #7d2cfb warm or cool?

Cool — it scores 70 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C92CFB; nudged cooler, #2F2AFD.

Work with #7d2cfb in the Color Lab