Skip to content

#7b6cd2

a balanced, vivid blue · cool · closest name: Medium Slate Blue

RGB
123, 108, 210
HSL
249°, 53%, 62%
CMYK
41, 49, 0, 18
Luminance
0.1959

At a glance

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

Hex
#7b6cd2
Hue
249°
blue
Saturation
53%
vivid
Lightness
62%
balanced
Brightness
82%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1959
WCAG relative
Temperature
Cool
78/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
4.92:1
Closest name
Medium Slate Blue
ΔE2000 4.2
Where it sits
Hue249° of 360°
Saturation53%
Lightness62%
Temperature
Warm ← → Cool78% 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#7b6cd2
RGBrgb(123, 108, 210)
HSLhsl(249, 53%, 62%)
CMYKcmyk(41%, 49%, 0%, 18%)
LABlab(51.4 30.7 -50.9)
LCHlch(51.4 59.4 301.1)
OKLCHoklch(0.593 0.151 287.6)
Decimal8088786
Display P3color(display-p3 0.482 0.424 0.824)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7b6cd2 on white: 4.27:1
AA ✗ fail · AA-large · AAA
Aa
#7b6cd2 on black: 4.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #437DD6
deuteranopia · #4278D0
tritanopia · #628195

Color scale — 50 to 950

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

#F5F4FB
#EBE9F6
#D3CEED
#B2A9E5
#7b6cd2
#6553CA
#4C39BB
#40309C
#33267D
#281F5B
#191439
Base = 400Lightest = 50 · #F5F4FBDarkest = 950 · #191439
:root {
  --brand-50: #F5F4FB;
  --brand-100: #EBE9F6;
  --brand-200: #D3CEED;
  --brand-300: #B2A9E5;
  --brand-400: #7b6cd2;
  --brand-500: #6553CA;
  --brand-600: #4C39BB;
  --brand-700: #40309C;
  --brand-800: #33267D;
  --brand-900: #281F5B;
  --brand-950: #191439;
  --brand: #7b6cd2;
  --brand-ink: #000000;
}

Colors that work with #7b6cd2

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F5F4FA
Tinted page background
Border#C7C1EC
Hairlines and dividers
Muted text#564B9B
Captions on the surface
Accent#A0952C
Second voice, not a rival
Dark variant#281E62
Hover, pressed, headers
Light variant#EDEBF9
Selected rows, tints
Dark surface#161424
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 #7b6cd2

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

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#C3D26C
Analogous left#6C90D2
Analogous right#AE6CD2
Split-complement 1#D2AE6C
Split-complement 2#90D26C
Triadic 1#D27B6C
Triadic 2#6CD27B
Tetradic#D26C90

RGB percentages

Red48.2%
Green42.4%
Blue82.4%

CMYK percentages

Cyan41.4%
Magenta48.6%
Yellow0.0%
Key (black)17.6%

Color previews

#7b6cd2 text on a black background

contrast 4.92:1

Card sample

#7b6cd2 text on a white background

contrast 4.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7b6cd2

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.

#7b6cd2 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#7b6cd2, answered

What color is #7b6cd2?

#7b6cd2 is a balanced vivid blue, closest to Medium Slate Blue (ΔE2000 4.2). It sits at 249° on the hue wheel with 53% saturation and 62% lightness, which reads as cool.

What is the RGB value of #7b6cd2?

rgb(123, 108, 210) — 123 red, 108 green and 210 blue out of 255, or 48.2% / 42.4% / 82.4% by channel.

Is #7b6cd2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1959 and perceived brightness is 50%, so black text on it reaches 4.92:1.

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

Black. It scores 4.92:1 against #7b6cd2, versus 4.27:1 for white — AA at any size.

What is the complementary color of #7b6cd2?

#C3D26C sits directly opposite on the wheel. Softer options are the split-complements #D2AE6C and #90D26C, which give the same contrast with far less vibration.

What colors go well with #7b6cd2?

For interface work: #F5F4FA as the surface, #C7C1EC for borders, #564B9B for secondary text, #A0952C as an accent and #281E62 for hover and pressed states. For a palette, the analogous pair #6C90D2 and #AE6CD2 stays calm, while #C3D26C is the loudest partner.

What is #7b6cd2 in CMYK for printing?

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

Is #7b6cd2 warm or cool?

Cool — it scores 78 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A06CD2; nudged cooler, #6A82D4.

Work with #7b6cd2 in the Color Lab