Skip to content

#792fba

a balanced, vivid violet · cool · closest name: Dark Violet

RGB
121, 47, 186
HSL
272°, 60%, 46%
CMYK
35, 75, 0, 27
Luminance
0.0964

At a glance

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

Hex
#792fba
Hue
272°
violet
Saturation
60%
vivid
Lightness
46%
balanced
Brightness
73%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0964
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.17:1
Closest name
Dark Violet
ΔE2000 5.3
Where it sits
Hue272° of 360°
Saturation60%
Lightness46%
Temperature
Warm ← → Cool66% 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#792fba
RGBrgb(121, 47, 186)
HSLhsl(272, 60%, 46%)
CMYKcmyk(35%, 75%, 0%, 27%)
LABlab(37.2 56.6 -59.8)
LCHlch(37.2 82.3 313.4)
OKLCHoklch(0.484 0.205 303.7)
Decimal7942074
Display P3color(display-p3 0.475 0.184 0.729)

Copy-ready code

/* CSS */
color: #792fba;
background-color: #792fba;
/* Tailwind (arbitrary) */
class="text-[#792fba] bg-[#792fba]"
/* SCSS */
$brand: #792fba;
/* SwiftUI */
Color(red: 0.475, green: 0.184, blue: 0.729)
/* Android */
Color.parseColor("#792fba")
/* Flutter */
Color(0xFF792FBA)
/* Python / OpenCV (BGR) */
(186, 47, 121)

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 #792fba · 7.17:1
Use #ffffffAAA at every size.
Aa
White text · 7.17:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.93:1
AA fail · AA large fail · AAA fail
Reading the other direction: #792fba as text scores 7.17:1 on white and 2.93:1 on black.

Accessibility — WCAG contrast

Aa
#792fba on white: 7.17:1
AA ✓ pass · AA-large · AAA
Aa
#792fba on black: 2.93:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0056BE
deuteranopia · #0057B7
tritanopia · #6C5272

Color scale — 50 to 950

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

#F8F4FB
#F0E9F7
#DFCCEF
#C9A5E8
#AE79DD
#934CD2
#792fba
#6A29A3
#552182
#3F1C5F
#28113B
Base = 600Lightest = 50 · #F8F4FBDarkest = 950 · #28113B
:root {
  --brand-50: #F8F4FB;
  --brand-100: #F0E9F7;
  --brand-200: #DFCCEF;
  --brand-300: #C9A5E8;
  --brand-400: #AE79DD;
  --brand-500: #934CD2;
  --brand-600: #792fba;
  --brand-700: #6A29A3;
  --brand-800: #552182;
  --brand-900: #3F1C5F;
  --brand-950: #28113B;
  --brand: #792fba;
  --brand-ink: #ffffff;
}

Colors that work with #792fba

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#F8F4FA
Tinted page background
Border#D8C0ED
Hairlines and dividers
Muted text#754B9B
Captions on the surface
Accent#82A725
Second voice, not a rival
Dark variant#421A66
Hover, pressed, headers
Light variant#F3EBFA
Selected rows, tints
Dark surface#1D1424
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 #792fba

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
  • Text on black or near-black surfaces
  • 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#70BA2F
Analogous left#332FBA
Analogous right#BA2FB6
Split-complement 1#B6BA2F
Split-complement 2#2FBA33
Triadic 1#BA792F
Triadic 2#2FBA79
Tetradic#BA332F

RGB percentages

Red47.5%
Green18.4%
Blue72.9%

CMYK percentages

Cyan34.9%
Magenta74.7%
Yellow0.0%
Key (black)27.1%

Color previews

#792fba text on a black background

contrast 2.93:1

Card sample

#792fba text on a white background

contrast 7.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #792fba;
Background color
Panel with #792fba background
background-color: #792fba;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #792fba;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(121, 47, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 47, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #792fba;
background: linear-gradient(135deg, #792fba, #BA2F9F);

Monochromatic scale

Palettes built from #792fba

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.

#792fba 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

Converts to four-color process without much drama. Proof it anyway.

#792fba, answered

What color is #792fba?

#792fba is a balanced vivid violet, closest to Dark Violet (ΔE2000 5.3). It sits at 272° on the hue wheel with 60% saturation and 46% lightness, which reads as cool.

What is the RGB value of #792fba?

rgb(121, 47, 186) — 121 red, 47 green and 186 blue out of 255, or 47.5% / 18.4% / 72.9% by channel.

Is #792fba a light or a dark color?

It is a dark color. Relative luminance is 0.0964 and perceived brightness is 38%, so white text on it reaches 7.17:1.

Should I use black or white text on #792fba?

White. It scores 7.17:1 against #792fba, versus 2.93:1 for black — AAA at any size.

What is the complementary color of #792fba?

#70BA2F sits directly opposite on the wheel. Softer options are the split-complements #B6BA2F and #2FBA33, which give the same contrast with far less vibration.

What colors go well with #792fba?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #754B9B for secondary text, #82A725 as an accent and #421A66 for hover and pressed states. For a palette, the analogous pair #332FBA and #BA2FB6 stays calm, while #70BA2F is the loudest partner.

What is #792fba in CMYK for printing?

cmyk(35%, 75%, 0%, 27%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #792fba warm or cool?

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AC2FBA; nudged cooler, #442DBC.

Work with #792fba in the Color Lab