Skip to content

#791eb2

a dark, vivid violet · cool · closest name: Rebecca Purple

RGB
121, 30, 178
HSL
277°, 71%, 41%
CMYK
32, 83, 0, 30
Luminance
0.0821

At a glance

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

Hex
#791eb2
Hue
277°
violet
Saturation
71%
vivid
Lightness
41%
dark
Brightness
70%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0821
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.95:1
Closest name
Rebecca Purple
ΔE2000 5.4
Where it sits
Hue277° of 360°
Saturation71%
Lightness41%
Temperature
Warm ← → Cool63% 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#791eb2
RGBrgb(121, 30, 178)
HSLhsl(277, 71%, 41%)
CMYKcmyk(32%, 83%, 0%, 30%)
LABlab(34.4 61.0 -59.6)
LCHlch(34.4 85.3 315.6)
OKLCHoklch(0.463 0.213 307.3)
Decimal7937714
Display P3color(display-p3 0.475 0.118 0.698)

Copy-ready code

/* CSS */
color: #791eb2;
background-color: #791eb2;
/* Tailwind (arbitrary) */
class="text-[#791eb2] bg-[#791eb2]"
/* SCSS */
$brand: #791eb2;
/* SwiftUI */
Color(red: 0.475, green: 0.118, blue: 0.698)
/* Android */
Color.parseColor("#791eb2")
/* Flutter */
Color(0xFF791EB2)
/* Python / OpenCV (BGR) */
(178, 30, 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 #791eb2 · 7.95:1
Use #ffffffAAA at every size.
Aa
White text · 7.95:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.64:1
AA fail · AA large fail · AAA fail
Reading the other direction: #791eb2 as text scores 7.95:1 on white and 2.64:1 on black.

Accessibility — WCAG contrast

Aa
#791eb2 on white: 7.95:1
AA ✓ pass · AA-large · AAA
Aa
#791eb2 on black: 2.64:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004EB6
deuteranopia · #0052AF
tritanopia · #6F476A

Color scale — 50 to 950

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

#F8F3FC
#F2E7F8
#E3C9F3
#D09FEF
#B96FE7
#A13FDF
#8E23D2
#791eb2
#5F188C
#461565
#2C0D3F
Base = 700Lightest = 50 · #F8F3FCDarkest = 950 · #2C0D3F
:root {
  --brand-50: #F8F3FC;
  --brand-100: #F2E7F8;
  --brand-200: #E3C9F3;
  --brand-300: #D09FEF;
  --brand-400: #B96FE7;
  --brand-500: #A13FDF;
  --brand-600: #8E23D2;
  --brand-700: #791eb2;
  --brand-800: #5F188C;
  --brand-900: #461565;
  --brand-950: #2C0D3F;
  --brand: #791eb2;
  --brand-ink: #ffffff;
}

Colors that work with #791eb2

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#DBC0ED
Hairlines and dividers
Muted text#7C4B9B
Captions on the surface
Accent#7BB319
Second voice, not a rival
Dark variant#4A126D
Hover, pressed, headers
Light variant#F4E9FB
Selected rows, tints
Dark surface#1E1424
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 #791eb2

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#57B21E
Analogous left#2F1EB2
Analogous right#B21EA1
Split-complement 1#A1B21E
Split-complement 2#1EB22F
Triadic 1#B2791E
Triadic 2#1EB279
Tetradic#B22F1E

RGB percentages

Red47.5%
Green11.8%
Blue69.8%

CMYK percentages

Cyan32.0%
Magenta83.1%
Yellow0.0%
Key (black)30.2%

Color previews

#791eb2 text on a black background

contrast 2.64:1

Card sample

#791eb2 text on a white background

contrast 7.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #791eb2;
Background color
Panel with #791eb2 background
background-color: #791eb2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #791eb2;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(121, 30, 178, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 30, 178, 0.45);
Border & gradient
Gradient panel
border: 3px solid #791eb2;
background: linear-gradient(135deg, #791eb2, #B21E88);

Monochromatic scale

Palettes built from #791eb2

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.

#791eb2 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.

#791eb2, answered

What color is #791eb2?

#791eb2 is a dark vivid violet, closest to Rebecca Purple (ΔE2000 5.4). It sits at 277° on the hue wheel with 71% saturation and 41% lightness, which reads as cool.

What is the RGB value of #791eb2?

rgb(121, 30, 178) — 121 red, 30 green and 178 blue out of 255, or 47.5% / 11.8% / 69.8% by channel.

Is #791eb2 a light or a dark color?

It is a dark color. Relative luminance is 0.0821 and perceived brightness is 36%, so white text on it reaches 7.95:1.

Should I use black or white text on #791eb2?

White. It scores 7.95:1 against #791eb2, versus 2.64:1 for black — AAA at any size.

What is the complementary color of #791eb2?

#57B21E sits directly opposite on the wheel. Softer options are the split-complements #A1B21E and #1EB22F, which give the same contrast with far less vibration.

What colors go well with #791eb2?

For interface work: #F8F4FA as the surface, #DBC0ED for borders, #7C4B9B for secondary text, #7BB319 as an accent and #4A126D for hover and pressed states. For a palette, the analogous pair #2F1EB2 and #B21EA1 stays calm, while #57B21E is the loudest partner.

What is #791eb2 in CMYK for printing?

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

Is #791eb2 warm or cool?

Cool — it scores 63 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF1EB2; nudged cooler, #421CB4.

Work with #791eb2 in the Color Lab