Skip to content

#b77eee

a light, electric violet · cool · closest name: Medium Purple

RGB
183, 126, 238
HSL
271°, 77%, 71%
CMYK
23, 47, 0, 7
Luminance
0.3116

At a glance

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

Hex
#b77eee
Hue
271°
violet
Saturation
77%
electric
Lightness
71%
light
Brightness
93%
HSV value
Perceived
63%
weighted brightness
Luminance
0.3116
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
7.23:1
Closest name
Medium Purple
ΔE2000 7.8
Where it sits
Hue271° of 360°
Saturation77%
Lightness71%
Temperature
Warm ← → Cool66% 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#b77eee
RGBrgb(183, 126, 238)
HSLhsl(271, 77%, 71%)
CMYKcmyk(23%, 47%, 0%, 7%)
LABlab(62.6 43.1 -48.3)
LCHlch(62.6 64.8 311.7)
OKLCHoklch(0.696 0.167 306.0)
Decimal12025582
Display P3color(display-p3 0.718 0.494 0.933)

Copy-ready code

/* CSS */
color: #b77eee;
background-color: #b77eee;
/* Tailwind (arbitrary) */
class="text-[#b77eee] bg-[#b77eee]"
/* SCSS */
$brand: #b77eee;
/* SwiftUI */
Color(red: 0.718, green: 0.494, blue: 0.933)
/* Android */
Color.parseColor("#b77eee")
/* Flutter */
Color(0xFFB77EEE)
/* Python / OpenCV (BGR) */
(238, 126, 183)

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

Accessibility — WCAG contrast

Aa
#b77eee on white: 2.90:1
AA ✗ fail · AA-large · AAA
Aa
#b77eee on black: 7.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6096F2
deuteranopia · #6F98EB
tritanopia · #AE91AB

Color scale — 50 to 950

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

#F7F3FC
#F0E7F9
#DEC7F4
#C89CF2
#b77eee
#9039E5
#7C1DD8
#6718B4
#531390
#3E1268
#270B41
Base = 400Lightest = 50 · #F7F3FCDarkest = 950 · #270B41
:root {
  --brand-50: #F7F3FC;
  --brand-100: #F0E7F9;
  --brand-200: #DEC7F4;
  --brand-300: #C89CF2;
  --brand-400: #b77eee;
  --brand-500: #9039E5;
  --brand-600: #7C1DD8;
  --brand-700: #6718B4;
  --brand-800: #531390;
  --brand-900: #3E1268;
  --brand-950: #270B41;
  --brand: #b77eee;
  --brand-ink: #000000;
}

Colors that work with #b77eee

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#F7F4FA
Tinted page background
Border#D7C0ED
Hairlines and dividers
Muted text#734B9B
Captions on the surface
Accent#8EB814
Second voice, not a rival
Dark variant#410F71
Hover, pressed, headers
Light variant#F2E8FC
Selected rows, tints
Dark surface#1C1424
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 #b77eee

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

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White 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#B5EE7E
Analogous left#7F7EEE
Analogous right#EE7EED
Split-complement 1#EDEE7E
Split-complement 2#7EEE7F
Triadic 1#EEB77E
Triadic 2#7EEEB7
Tetradic#EE7F7E

RGB percentages

Red71.8%
Green49.4%
Blue93.3%

CMYK percentages

Cyan23.1%
Magenta47.1%
Yellow0.0%
Key (black)6.7%

Color previews

#b77eee text on a black background

contrast 7.23:1

Card sample

#b77eee text on a white background

contrast 2.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(183, 126, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(183, 126, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b77eee;
background: linear-gradient(135deg, #b77eee, #EE7EDA);

Monochromatic scale

Palettes built from #b77eee

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.

#b77eee 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
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#b77eee, answered

What color is #b77eee?

#b77eee is a light electric violet, closest to Medium Purple (ΔE2000 7.8). It sits at 271° on the hue wheel with 77% saturation and 71% lightness, which reads as cool.

What is the RGB value of #b77eee?

rgb(183, 126, 238) — 183 red, 126 green and 238 blue out of 255, or 71.8% / 49.4% / 93.3% by channel.

Is #b77eee a light or a dark color?

It is a mid-tone. Relative luminance is 0.3116 and perceived brightness is 63%, so black text on it reaches 7.23:1.

Should I use black or white text on #b77eee?

Black. It scores 7.23:1 against #b77eee, versus 2.90:1 for white — AAA at any size.

What is the complementary color of #b77eee?

#B5EE7E sits directly opposite on the wheel. Softer options are the split-complements #EDEE7E and #7EEE7F, which give the same contrast with far less vibration.

What colors go well with #b77eee?

For interface work: #F7F4FA as the surface, #D7C0ED for borders, #734B9B for secondary text, #8EB814 as an accent and #410F71 for hover and pressed states. For a palette, the analogous pair #7F7EEE and #EE7EED stays calm, while #B5EE7E is the loudest partner.

What is #b77eee in CMYK for printing?

cmyk(23%, 47%, 0%, 7%). 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 #b77eee warm or cool?

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E07EEE; nudged cooler, #8D7DEF.

Work with #b77eee in the Color Lab