Skip to content

#7b5dbb

a balanced, soft violet · cool · closest name: Slate Blue

RGB
123, 93, 187
HSL
259°, 41%, 55%
CMYK
34, 50, 0, 27
Luminance
0.1563

At a glance

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

Hex
#7b5dbb
Hue
259°
violet
Saturation
41%
soft
Lightness
55%
balanced
Brightness
73%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1563
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Soft
Best ink
White
5.09:1
Closest name
Slate Blue
ΔE2000 5
Where it sits
Hue259° of 360°
Saturation41%
Lightness55%
Temperature
Warm ← → Cool73% 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#7b5dbb
RGBrgb(123, 93, 187)
HSLhsl(259, 41%, 55%)
CMYKcmyk(34%, 50%, 0%, 27%)
LABlab(46.5 33.2 -45.5)
LCHlch(46.5 56.3 306.1)
OKLCHoklch(0.552 0.143 296.1)
Decimal8084923
Display P3color(display-p3 0.482 0.365 0.733)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7b5dbb on white: 5.09:1
AA ✓ pass · AA-large · AAA
Aa
#7b5dbb on black: 4.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3B6FBE
deuteranopia · #426DB9
tritanopia · #6D6F83

Color scale — 50 to 950

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

#F6F5FA
#EEEBF5
#DAD2EA
#BFB0DE
#9E88CD
#7b5dbb
#6848AC
#573C90
#453073
#352654
#211835
Base = 500Lightest = 50 · #F6F5FADarkest = 950 · #211835
:root {
  --brand-50: #F6F5FA;
  --brand-100: #EEEBF5;
  --brand-200: #DAD2EA;
  --brand-300: #BFB0DE;
  --brand-400: #9E88CD;
  --brand-500: #7b5dbb;
  --brand-600: #6848AC;
  --brand-700: #573C90;
  --brand-800: #453073;
  --brand-900: #352654;
  --brand-950: #211835;
  --brand: #7b5dbb;
  --brand-ink: #ffffff;
}

Colors that work with #7b5dbb

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#F6F4FA
Tinted page background
Border#D0C6E7
Hairlines and dividers
Muted text#644B9B
Captions on the surface
Accent#8E9438
Second voice, not a rival
Dark variant#36265A
Hover, pressed, headers
Light variant#F0EDF7
Selected rows, tints
Dark surface#191424
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 #7b5dbb

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#9DBB5D
Analogous left#5D6EBB
Analogous right#AA5DBB
Split-complement 1#BBAA5D
Split-complement 2#6EBB5D
Triadic 1#BB7B5D
Triadic 2#5DBB7B
Tetradic#BB5D6E

RGB percentages

Red48.2%
Green36.5%
Blue73.3%

CMYK percentages

Cyan34.2%
Magenta50.3%
Yellow0.0%
Key (black)26.7%

Color previews

#7b5dbb text on a black background

contrast 4.13:1

Card sample

#7b5dbb text on a white background

contrast 5.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7b5dbb

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.

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

#7b5dbb, answered

What color is #7b5dbb?

#7b5dbb is a balanced soft violet, closest to Slate Blue (ΔE2000 5). It sits at 259° on the hue wheel with 41% saturation and 55% lightness, which reads as cool.

What is the RGB value of #7b5dbb?

rgb(123, 93, 187) — 123 red, 93 green and 187 blue out of 255, or 48.2% / 36.5% / 73.3% by channel.

Is #7b5dbb a light or a dark color?

It is a dark color. Relative luminance is 0.1563 and perceived brightness is 46%, so white text on it reaches 5.09:1.

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

White. It scores 5.09:1 against #7b5dbb, versus 4.13:1 for black — AA at any size.

What is the complementary color of #7b5dbb?

#9DBB5D sits directly opposite on the wheel. Softer options are the split-complements #BBAA5D and #6EBB5D, which give the same contrast with far less vibration.

What colors go well with #7b5dbb?

For interface work: #F6F4FA as the surface, #D0C6E7 for borders, #644B9B for secondary text, #8E9438 as an accent and #36265A for hover and pressed states. For a palette, the analogous pair #5D6EBB and #AA5DBB stays calm, while #9DBB5D is the loudest partner.

What is #7b5dbb in CMYK for printing?

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

Is #7b5dbb warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9D5DBB; nudged cooler, #5B5FBD.

Work with #7b5dbb in the Color Lab