Skip to content

#b07cfb

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

RGB
176, 124, 251
HSL
265°, 94%, 74%
CMYK
30, 51, 0, 2
Luminance
0.3061

At a glance

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

Hex
#b07cfb
Hue
265°
violet
Saturation
94%
electric
Lightness
74%
light
Brightness
98%
HSV value
Perceived
63%
weighted brightness
Luminance
0.3061
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
7.12:1
Closest name
Medium Purple
ΔE2000 7.1
Where it sits
Hue265° of 360°
Saturation94%
Lightness74%
Temperature
Warm ← → Cool70% 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#b07cfb
RGBrgb(176, 124, 251)
HSLhsl(265, 94%, 74%)
CMYKcmyk(30%, 51%, 0%, 2%)
LABlab(62.2 45.4 -56.3)
LCHlch(62.2 72.3 308.9)
OKLCHoklch(0.693 0.184 300.6)
Decimal11566331
Display P3color(display-p3 0.690 0.486 0.984)

Copy-ready code

/* CSS */
color: #b07cfb;
background-color: #b07cfb;
/* Tailwind (arbitrary) */
class="text-[#b07cfb] bg-[#b07cfb]"
/* SCSS */
$brand: #b07cfb;
/* SwiftUI */
Color(red: 0.690, green: 0.486, blue: 0.984)
/* Android */
Color.parseColor("#b07cfb")
/* Flutter */
Color(0xFFB07CFB)
/* Python / OpenCV (BGR) */
(251, 124, 176)

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

Accessibility — WCAG contrast

Aa
#b07cfb on white: 2.95:1
AA ✗ fail · AA-large · AAA
Aa
#b07cfb on black: 7.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5096FF
deuteranopia · #5E96F8
tritanopia · #A194B0

Color scale — 50 to 950

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

#F6F2FD
#EEE4FB
#D9C2FA
#b07cfb
#9D5CFA
#7C25F8
#6607EE
#5506C6
#44059E
#340872
#200547
Base = 300Lightest = 50 · #F6F2FDDarkest = 950 · #200547
:root {
  --brand-50: #F6F2FD;
  --brand-100: #EEE4FB;
  --brand-200: #D9C2FA;
  --brand-300: #b07cfb;
  --brand-400: #9D5CFA;
  --brand-500: #7C25F8;
  --brand-600: #6607EE;
  --brand-700: #5506C6;
  --brand-800: #44059E;
  --brand-900: #340872;
  --brand-950: #200547;
  --brand: #b07cfb;
  --brand-ink: #000000;
}

Colors that work with #b07cfb

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#D2C0ED
Hairlines and dividers
Muted text#6C4B9B
Captions on the surface
Accent#ABCA02
Second voice, not a rival
Dark variant#35047C
Hover, pressed, headers
Light variant#F0E6FE
Selected rows, tints
Dark surface#1B1424
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 #b07cfb

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#C7FB7C
Analogous left#7C87FB
Analogous right#F07CFB
Split-complement 1#FBF07C
Split-complement 2#87FB7C
Triadic 1#FBB07C
Triadic 2#7CFBB0
Tetradic#FB7C87

RGB percentages

Red69.0%
Green48.6%
Blue98.4%

CMYK percentages

Cyan29.9%
Magenta50.6%
Yellow0.0%
Key (black)1.6%

Color previews

#b07cfb text on a black background

contrast 7.12:1

Card sample

#b07cfb text on a white background

contrast 2.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(176, 124, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(176, 124, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b07cfb;
background: linear-gradient(135deg, #b07cfb, #FB7CF1);

Monochromatic scale

Palettes built from #b07cfb

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.

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

#b07cfb, answered

What color is #b07cfb?

#b07cfb is a light electric violet, closest to Medium Purple (ΔE2000 7.1). It sits at 265° on the hue wheel with 94% saturation and 74% lightness, which reads as cool.

What is the RGB value of #b07cfb?

rgb(176, 124, 251) — 176 red, 124 green and 251 blue out of 255, or 69% / 48.6% / 98.4% by channel.

Is #b07cfb a light or a dark color?

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

Should I use black or white text on #b07cfb?

Black. It scores 7.12:1 against #b07cfb, versus 2.95:1 for white — AAA at any size.

What is the complementary color of #b07cfb?

#C7FB7C sits directly opposite on the wheel. Softer options are the split-complements #FBF07C and #87FB7C, which give the same contrast with far less vibration.

What colors go well with #b07cfb?

For interface work: #F7F4FA as the surface, #D2C0ED for borders, #6C4B9B for secondary text, #ABCA02 as an accent and #35047C for hover and pressed states. For a palette, the analogous pair #7C87FB and #F07CFB stays calm, while #C7FB7C is the loudest partner.

What is #b07cfb in CMYK for printing?

cmyk(30%, 51%, 0%, 2%). 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 #b07cfb warm or cool?

Cool — it scores 70 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF7CFB; nudged cooler, #807AFC.

Work with #b07cfb in the Color Lab