Skip to content

#7c2af5

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

RGB
124, 42, 245
HSL
264°, 91%, 56%
CMYK
49, 83, 0, 4
Luminance
0.1253

At a glance

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

Hex
#7c2af5
Hue
264°
violet
Saturation
91%
electric
Lightness
56%
balanced
Brightness
96%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1253
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.99:1
Closest name
Blue Violet
ΔE2000 3.1
Where it sits
Hue264° of 360°
Saturation91%
Lightness56%
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#7c2af5
RGBrgb(124, 42, 245)
HSLhsl(264, 91%, 56%)
CMYKcmyk(49%, 83%, 0%, 4%)
LABlab(42.0 72.8 -85.8)
LCHlch(42.0 112.5 310.3)
OKLCHoklch(0.534 0.268 292.9)
Decimal8137461
Display P3color(display-p3 0.486 0.165 0.961)

Copy-ready code

/* CSS */
color: #7c2af5;
background-color: #7c2af5;
/* Tailwind (arbitrary) */
class="text-[#7c2af5] bg-[#7c2af5]"
/* SCSS */
$brand: #7c2af5;
/* SwiftUI */
Color(red: 0.486, green: 0.165, blue: 0.961)
/* Android */
Color.parseColor("#7c2af5")
/* Flutter */
Color(0xFF7C2AF5)
/* Python / OpenCV (BGR) */
(245, 42, 124)

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

Accessibility — WCAG contrast

Aa
#7c2af5 on white: 5.99:1
AA ✓ pass · AA-large · AAA
Aa
#7c2af5 on black: 3.51:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0066FA
deuteranopia · #005FF1
tritanopia · #546994

Color scale — 50 to 950

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

#F6F2FD
#EEE5FB
#D9C3F9
#BD94FA
#9C5EF7
#7c2af5
#650BEA
#5409C3
#43079C
#330A70
#200646
Base = 500Lightest = 50 · #F6F2FDDarkest = 950 · #200646
:root {
  --brand-50: #F6F2FD;
  --brand-100: #EEE5FB;
  --brand-200: #D9C3F9;
  --brand-300: #BD94FA;
  --brand-400: #9C5EF7;
  --brand-500: #7c2af5;
  --brand-600: #650BEA;
  --brand-700: #5409C3;
  --brand-800: #43079C;
  --brand-900: #330A70;
  --brand-950: #200646;
  --brand: #7c2af5;
  --brand-ink: #ffffff;
}

Colors that work with #7c2af5

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#D2C0ED
Hairlines and dividers
Muted text#6B4B9B
Captions on the surface
Accent#A9C606
Second voice, not a rival
Dark variant#35067A
Hover, pressed, headers
Light variant#F0E7FE
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 #7c2af5

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#A3F52A
Analogous left#2A3EF5
Analogous right#E12AF5
Split-complement 1#F5E12A
Split-complement 2#3EF52A
Triadic 1#F57C2A
Triadic 2#2AF57C
Tetradic#F52A3E

RGB percentages

Red48.6%
Green16.5%
Blue96.1%

CMYK percentages

Cyan49.4%
Magenta82.9%
Yellow0.0%
Key (black)3.9%

Color previews

#7c2af5 text on a black background

contrast 3.51:1

Card sample

#7c2af5 text on a white background

contrast 5.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(124, 42, 245, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(124, 42, 245, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7c2af5;
background: linear-gradient(135deg, #7c2af5, #F52AE7);

Monochromatic scale

Palettes built from #7c2af5

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.

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

#7c2af5, answered

What color is #7c2af5?

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

What is the RGB value of #7c2af5?

rgb(124, 42, 245) — 124 red, 42 green and 245 blue out of 255, or 48.6% / 16.5% / 96.1% by channel.

Is #7c2af5 a light or a dark color?

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

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

White. It scores 5.99:1 against #7c2af5, versus 3.51:1 for black — AA at any size.

What is the complementary color of #7c2af5?

#A3F52A sits directly opposite on the wheel. Softer options are the split-complements #F5E12A and #3EF52A, which give the same contrast with far less vibration.

What colors go well with #7c2af5?

For interface work: #F7F4FA as the surface, #D2C0ED for borders, #6B4B9B for secondary text, #A9C606 as an accent and #35067A for hover and pressed states. For a palette, the analogous pair #2A3EF5 and #E12AF5 stays calm, while #A3F52A is the loudest partner.

What is #7c2af5 in CMYK for printing?

cmyk(49%, 83%, 0%, 4%). 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 #7c2af5 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 #C62AF5; nudged cooler, #3028F7.

Work with #7c2af5 in the Color Lab