Skip to content

#7908ab

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

RGB
121, 8, 171
HSL
282°, 91%, 35%
CMYK
29, 95, 0, 33
Luminance
0.0718

At a glance

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

Hex
#7908ab
Hue
282°
violet
Saturation
91%
electric
Lightness
35%
dark
Brightness
67%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0718
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Electric
Best ink
White
8.62:1
Closest name
Rebecca Purple
ΔE2000 6.2
Where it sits
Hue282° of 360°
Saturation91%
Lightness35%
Temperature
Warm ← → Cool60% 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#7908ab
RGBrgb(121, 8, 171)
HSLhsl(282, 91%, 35%)
CMYKcmyk(29%, 95%, 0%, 33%)
LABlab(32.2 64.3 -59.0)
LCHlch(32.2 87.3 317.5)
OKLCHoklch(0.446 0.220 310.3)
Decimal7932075
Display P3color(display-p3 0.475 0.031 0.671)

Copy-ready code

/* CSS */
color: #7908ab;
background-color: #7908ab;
/* Tailwind (arbitrary) */
class="text-[#7908ab] bg-[#7908ab]"
/* SCSS */
$brand: #7908ab;
/* SwiftUI */
Color(red: 0.475, green: 0.031, blue: 0.671)
/* Android */
Color.parseColor("#7908ab")
/* Flutter */
Color(0xFF7908AB)
/* Python / OpenCV (BGR) */
(171, 8, 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 #7908ab · 8.62:1
Use #ffffffAAA at every size.
Aa
White text · 8.62:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.44:1
AA fail · AA large fail · AAA fail
Reading the other direction: #7908ab as text scores 8.62:1 on white and 2.44:1 on black.

Accessibility — WCAG contrast

Aa
#7908ab on white: 8.62:1
AA ✓ pass · AA-large · AAA
Aa
#7908ab on black: 2.44:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0048AF
deuteranopia · #004DA8
tritanopia · #723D64

Color scale — 50 to 950

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

#FAF2FD
#F4E5FB
#E8C3F9
#DB94FA
#C85EF8
#B629F5
#A60BEA
#8A09C3
#7908ab
#510A70
#330646
Base = 800Lightest = 50 · #FAF2FDDarkest = 950 · #330646
:root {
  --brand-50: #FAF2FD;
  --brand-100: #F4E5FB;
  --brand-200: #E8C3F9;
  --brand-300: #DB94FA;
  --brand-400: #C85EF8;
  --brand-500: #B629F5;
  --brand-600: #A60BEA;
  --brand-700: #8A09C3;
  --brand-800: #7908ab;
  --brand-900: #510A70;
  --brand-950: #330646;
  --brand: #7908ab;
  --brand-ink: #ffffff;
}

Colors that work with #7908ab

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#F9F4FA
Tinted page background
Border#DFC0ED
Hairlines and dividers
Muted text#824B9B
Captions on the surface
Accent#71C705
Second voice, not a rival
Dark variant#56067A
Hover, pressed, headers
Light variant#F7E7FE
Selected rows, tints
Dark surface#1F1424
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 #7908ab

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#3AAB08
Analogous left#2708AB
Analogous right#AB088C
Split-complement 1#8CAB08
Split-complement 2#08AB27
Triadic 1#AB7908
Triadic 2#08AB79
Tetradic#AB2708

RGB percentages

Red47.5%
Green3.1%
Blue67.1%

CMYK percentages

Cyan29.2%
Magenta95.3%
Yellow0.0%
Key (black)32.9%

Color previews

#7908ab text on a black background

contrast 2.44:1

Card sample

#7908ab text on a white background

contrast 8.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7908ab;
Background color
Panel with #7908ab background
background-color: #7908ab;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #7908ab;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(121, 8, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 8, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7908ab;
background: linear-gradient(135deg, #7908ab, #AB0870);

Monochromatic scale

Palettes built from #7908ab

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.

#7908ab 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.

#7908ab, answered

What color is #7908ab?

#7908ab is a dark electric violet, closest to Rebecca Purple (ΔE2000 6.2). It sits at 282° on the hue wheel with 91% saturation and 35% lightness, which reads as cool.

What is the RGB value of #7908ab?

rgb(121, 8, 171) — 121 red, 8 green and 171 blue out of 255, or 47.5% / 3.1% / 67.1% by channel.

Is #7908ab a light or a dark color?

It is a dark color. Relative luminance is 0.0718 and perceived brightness is 35%, so white text on it reaches 8.62:1.

Should I use black or white text on #7908ab?

White. It scores 8.62:1 against #7908ab, versus 2.44:1 for black — AAA at any size.

What is the complementary color of #7908ab?

#3AAB08 sits directly opposite on the wheel. Softer options are the split-complements #8CAB08 and #08AB27, which give the same contrast with far less vibration.

What colors go well with #7908ab?

For interface work: #F9F4FA as the surface, #DFC0ED for borders, #824B9B for secondary text, #71C705 as an accent and #56067A for hover and pressed states. For a palette, the analogous pair #2708AB and #AB088C stays calm, while #3AAB08 is the loudest partner.

What is #7908ab in CMYK for printing?

cmyk(29%, 95%, 0%, 33%). 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 #7908ab warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AB08A1; nudged cooler, #3D06AD.

Work with #7908ab in the Color Lab