Skip to content

#7f7bbc

a balanced, soft blue · cool · closest name: Medium Purple

RGB
127, 123, 188
HSL
244°, 33%, 61%
CMYK
32, 35, 0, 26
Luminance
0.2231

At a glance

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

Hex
#7f7bbc
Hue
244°
blue
Saturation
33%
soft
Lightness
61%
balanced
Brightness
74%
HSV value
Perceived
52%
weighted brightness
Luminance
0.2231
WCAG relative
Temperature
Cool
79/100 cool
Color family
Blue
Tone
Soft
Best ink
Black
5.46:1
Closest name
Medium Purple
ΔE2000 8
Where it sits
Hue244° of 360°
Saturation33%
Lightness61%
Temperature
Warm ← → Cool79% 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#7f7bbc
RGBrgb(127, 123, 188)
HSLhsl(244, 33%, 61%)
CMYKcmyk(32%, 35%, 0%, 26%)
LABlab(54.4 16.7 -33.6)
LCHlch(54.4 37.5 296.5)
OKLCHoklch(0.613 0.097 286.0)
Decimal8354748
Display P3color(display-p3 0.498 0.482 0.737)

Copy-ready code

/* CSS */
color: #7f7bbc;
background-color: #7f7bbc;
/* Tailwind (arbitrary) */
class="text-[#7f7bbc] bg-[#7f7bbc]"
/* SCSS */
$brand: #7f7bbc;
/* SwiftUI */
Color(red: 0.498, green: 0.482, blue: 0.737)
/* Android */
Color.parseColor("#7f7bbc")
/* Flutter */
Color(0xFF7F7BBC)
/* Python / OpenCV (BGR) */
(188, 123, 127)

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 #7f7bbc · 5.46:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.84:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.46:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #7f7bbc as text scores 3.84:1 on white and 5.46:1 on black.

Accessibility — WCAG contrast

Aa
#7f7bbc on white: 3.84:1
AA ✗ fail · AA-large · AAA
Aa
#7f7bbc on black: 5.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6884BF
deuteranopia · #6680BA
tritanopia · #708793

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #7f7bbc 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.

#F6F5F9
#ECECF4
#D5D4E7
#B7B5D9
#938FC6
#7f7bbc
#5752A2
#494587
#3A376C
#2D2B50
#1C1B32
Base = 500Lightest = 50 · #F6F5F9Darkest = 950 · #1C1B32
:root {
  --brand-50: #F6F5F9;
  --brand-100: #ECECF4;
  --brand-200: #D5D4E7;
  --brand-300: #B7B5D9;
  --brand-400: #938FC6;
  --brand-500: #7f7bbc;
  --brand-600: #5752A2;
  --brand-700: #494587;
  --brand-800: #3A376C;
  --brand-900: #2D2B50;
  --brand-950: #1C1B32;
  --brand: #7f7bbc;
  --brand-ink: #000000;
}

Colors that work with #7f7bbc

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#F5F5FA
Tinted page background
Border#CBC9E4
Hairlines and dividers
Muted text#524D98
Captions on the surface
Accent#8B7D41
Second voice, not a rival
Dark variant#2D2B55
Hover, pressed, headers
Light variant#EFEEF6
Selected rows, tints
Dark surface#151424
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 #7f7bbc

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
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#B8BC7B
Analogous left#7B98BC
Analogous right#A07BBC
Split-complement 1#BCA07B
Split-complement 2#98BC7B
Triadic 1#BC7F7B
Triadic 2#7BBC7F
Tetradic#BC7B98

RGB percentages

Red49.8%
Green48.2%
Blue73.7%

CMYK percentages

Cyan32.4%
Magenta34.6%
Yellow0.0%
Key (black)26.3%

Color previews

#7f7bbc text on a black background

contrast 5.46:1

Card sample

#7f7bbc text on a white background

contrast 3.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7f7bbc

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.

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

#7f7bbc, answered

What color is #7f7bbc?

#7f7bbc is a balanced soft blue, closest to Medium Purple (ΔE2000 8). It sits at 244° on the hue wheel with 33% saturation and 61% lightness, which reads as cool.

What is the RGB value of #7f7bbc?

rgb(127, 123, 188) — 127 red, 123 green and 188 blue out of 255, or 49.8% / 48.2% / 73.7% by channel.

Is #7f7bbc a light or a dark color?

It is a mid-tone. Relative luminance is 0.2231 and perceived brightness is 52%, so black text on it reaches 5.46:1.

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

Black. It scores 5.46:1 against #7f7bbc, versus 3.84:1 for white — AA at any size.

What is the complementary color of #7f7bbc?

#B8BC7B sits directly opposite on the wheel. Softer options are the split-complements #BCA07B and #98BC7B, which give the same contrast with far less vibration.

What colors go well with #7f7bbc?

For interface work: #F5F5FA as the surface, #CBC9E4 for borders, #524D98 for secondary text, #8B7D41 as an accent and #2D2B55 for hover and pressed states. For a palette, the analogous pair #7B98BC and #A07BBC stays calm, while #B8BC7B is the loudest partner.

What is #7f7bbc in CMYK for printing?

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

Is #7f7bbc warm or cool?

Cool — it scores 79 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #977BBC; nudged cooler, #798EBE.

Work with #7f7bbc in the Color Lab