#7b2fbc
a balanced, vivid violet · cool · closest name: Dark Violet
At a glance
Every number on this page in one read: what #7b2fbc is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #7b2fbc |
| RGB | rgb(123, 47, 188) |
| HSL | hsl(272, 60%, 46%) |
| CMYK | cmyk(35%, 75%, 0%, 26%) |
| LAB | lab(37.6 57.4 -60.3) |
| LCH | lch(37.6 83.3 313.6) |
| OKLCH | oklch(0.488 0.207 304.1) |
| Decimal | 8073148 |
| Display P3 | color(display-p3 0.482 0.184 0.737) |
Copy-ready code
/* CSS */
color: #7b2fbc;
background-color: #7b2fbc;
/* Tailwind (arbitrary) */
class="text-[#7b2fbc] bg-[#7b2fbc]"
/* SCSS */
$brand: #7b2fbc;
/* SwiftUI */
Color(red: 0.482, green: 0.184, blue: 0.737)
/* Android */
Color.parseColor("#7b2fbc")
/* Flutter */
Color(0xFF7B2FBC)
/* Python / OpenCV (BGR) */
(188, 47, 123)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #7b2fbc 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.
:root {
--brand-50: #F8F4FB;
--brand-100: #F0E9F7;
--brand-200: #DFCCEF;
--brand-300: #C9A5E9;
--brand-400: #AF78DD;
--brand-500: #944BD2;
--brand-600: #7b2fbc;
--brand-700: #6B29A3;
--brand-800: #552183;
--brand-900: #401B5F;
--brand-950: #28113B;
--brand: #7b2fbc;
--brand-ink: #ffffff;
}Colors that work with #7b2fbc
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #7b2fbc
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠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 | #70BC2F | Directly opposite — maximum tension | |
| Analogous left | #342FBC | Neighbour, quieter | |
| Analogous right | #BC2FB7 | Neighbour, quieter | |
| Split-complement 1 | #B7BC2F | Contrast without the clash | |
| Split-complement 2 | #2FBC34 | Contrast without the clash | |
| Triadic 1 | #BC7B2F | Even thirds — balanced and loud | |
| Triadic 2 | #2FBC7B | Even thirds — balanced and loud | |
| Tetradic | #BC342F | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#7b2fbc text on a black background
contrast 2.97:1
#7b2fbc text on a white background
contrast 7.06:1
CSS3 live lab
The quick brown fox
color: #7b2fbc;
background-color: #7b2fbc;
Glowing headline
text-shadow: 2px 2px 8px #7b2fbc;
Soft neon halo
text-shadow: 0 0 14px rgba(123, 47, 188, 0.45);
box-shadow: 0 12px 32px -8px rgba(123, 47, 188, 0.45);
border: 3px solid #7b2fbc; background: linear-gradient(135deg, #7b2fbc, #BC2F9F);
Monochromatic scale
Palettes built from #7b2fbc
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.
Closest color with a full write-up: Iris (#5a4fcf) — ΔE2000 9.9 away, with its history, psychology and brand usage.
#7b2fbc in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#7b2fbc, answered
What color is #7b2fbc?
#7b2fbc is a balanced vivid violet, closest to Dark Violet (ΔE2000 4.9). It sits at 272° on the hue wheel with 60% saturation and 46% lightness, which reads as cool.
What is the RGB value of #7b2fbc?
rgb(123, 47, 188) — 123 red, 47 green and 188 blue out of 255, or 48.2% / 18.4% / 73.7% by channel.
Is #7b2fbc a light or a dark color?
It is a dark color. Relative luminance is 0.0987 and perceived brightness is 39%, so white text on it reaches 7.06:1.
Should I use black or white text on #7b2fbc?
White. It scores 7.06:1 against #7b2fbc, versus 2.97:1 for black — AAA at any size.
What is the complementary color of #7b2fbc?
#70BC2F sits directly opposite on the wheel. Softer options are the split-complements #B7BC2F and #2FBC34, which give the same contrast with far less vibration.
What colors go well with #7b2fbc?
For interface work: #F8F4FA as the surface, #D8C0ED for borders, #764B9B for secondary text, #81A824 as an accent and #431A66 for hover and pressed states. For a palette, the analogous pair #342FBC and #BC2FB7 stays calm, while #70BC2F is the loudest partner.
What is #7b2fbc in CMYK for printing?
cmyk(35%, 75%, 0%, 26%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #7b2fbc warm or cool?
Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF2FBC; nudged cooler, #462DBE.