Skip to content

#7b0df6

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

RGB
123, 13, 246
HSL
268°, 93%, 51%
CMYK
50, 95, 0, 4
Luminance
0.1115

At a glance

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

Hex
#7b0df6
Hue
268°
violet
Saturation
93%
electric
Lightness
51%
balanced
Brightness
96%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1115
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
White
6.50:1
Closest name
Blue Violet
ΔE2000 4
Where it sits
Hue268° of 360°
Saturation93%
Lightness51%
Temperature
Warm ← → Cool68% 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#7b0df6
RGBrgb(123, 13, 246)
HSLhsl(268, 93%, 51%)
CMYKcmyk(50%, 95%, 0%, 4%)
LABlab(39.8 79.4 -90.0)
LCHlch(39.8 120.1 311.4)
OKLCHoklch(0.519 0.282 293.6)
Decimal8064502
Display P3color(display-p3 0.482 0.051 0.965)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7b0df6 on white: 6.50:1
AA ✓ pass · AA-large · AAA
Aa
#7b0df6 on black: 3.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0060FB
deuteranopia · #005AF2
tritanopia · #526391

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #7b0df6 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F7F2FD
#EFE4FB
#DCC2F9
#C493FB
#A65DF9
#8927F7
#7b0df6
#6107C5
#4D069D
#3A0971
#240647
Base = 600Lightest = 50 · #F7F2FDDarkest = 950 · #240647
:root {
  --brand-50: #F7F2FD;
  --brand-100: #EFE4FB;
  --brand-200: #DCC2F9;
  --brand-300: #C493FB;
  --brand-400: #A65DF9;
  --brand-500: #8927F7;
  --brand-600: #7b0df6;
  --brand-700: #6107C5;
  --brand-800: #4D069D;
  --brand-900: #3A0971;
  --brand-950: #240647;
  --brand: #7b0df6;
  --brand-ink: #ffffff;
}

Colors that work with #7b0df6

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#D5C0ED
Hairlines and dividers
Muted text#704B9B
Captions on the surface
Accent#9DC903
Second voice, not a rival
Dark variant#3C057B
Hover, pressed, headers
Light variant#F2E6FE
Selected rows, tints
Dark surface#1C1424
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 #7b0df6

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#88F60D
Analogous left#0D14F6
Analogous right#EF0DF6
Split-complement 1#F6EF0D
Split-complement 2#14F60D
Triadic 1#F67B0D
Triadic 2#0DF67B
Tetradic#F60D14

RGB percentages

Red48.2%
Green5.1%
Blue96.5%

CMYK percentages

Cyan50.0%
Magenta94.7%
Yellow0.0%
Key (black)3.5%

Color previews

#7b0df6 text on a black background

contrast 3.23:1

Card sample

#7b0df6 text on a white background

contrast 6.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7b0df6

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.

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

#7b0df6, answered

What color is #7b0df6?

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

What is the RGB value of #7b0df6?

rgb(123, 13, 246) — 123 red, 13 green and 246 blue out of 255, or 48.2% / 5.1% / 96.5% by channel.

Is #7b0df6 a light or a dark color?

It is a dark color. Relative luminance is 0.1115 and perceived brightness is 42%, so white text on it reaches 6.50:1.

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

White. It scores 6.50:1 against #7b0df6, versus 3.23:1 for black — AA at any size.

What is the complementary color of #7b0df6?

#88F60D sits directly opposite on the wheel. Softer options are the split-complements #F6EF0D and #14F60D, which give the same contrast with far less vibration.

What colors go well with #7b0df6?

For interface work: #F7F4FA as the surface, #D5C0ED for borders, #704B9B for secondary text, #9DC903 as an accent and #3C057B for hover and pressed states. For a palette, the analogous pair #0D14F6 and #EF0DF6 stays calm, while #88F60D is the loudest partner.

What is #7b0df6 in CMYK for printing?

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

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D00DF6; nudged cooler, #240BF8.

Work with #7b0df6 in the Color Lab