Skip to content

#b08af5

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

RGB
176, 138, 245
HSL
261°, 84%, 75%
CMYK
28, 44, 0, 4
Luminance
0.3400

At a glance

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

Hex
#b08af5
Hue
261°
violet
Saturation
84%
electric
Lightness
75%
light
Brightness
96%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3400
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
7.80:1
Closest name
Medium Purple
ΔE2000 8.8
Where it sits
Hue261° of 360°
Saturation84%
Lightness75%
Temperature
Warm ← → Cool72% 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#b08af5
RGBrgb(176, 138, 245)
HSLhsl(261, 84%, 75%)
CMYKcmyk(28%, 44%, 0%, 4%)
LABlab(65.0 36.3 -48.5)
LCHlch(65.0 60.6 306.8)
OKLCHoklch(0.713 0.155 298.8)
Decimal11569909
Display P3color(display-p3 0.690 0.541 0.961)

Copy-ready code

/* CSS */
color: #b08af5;
background-color: #b08af5;
/* Tailwind (arbitrary) */
class="text-[#b08af5] bg-[#b08af5]"
/* SCSS */
$brand: #b08af5;
/* SwiftUI */
Color(red: 0.690, green: 0.541, blue: 0.961)
/* Android */
Color.parseColor("#b08af5")
/* Flutter */
Color(0xFFB08AF5)
/* Python / OpenCV (BGR) */
(245, 138, 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 #b08af5 · 7.80:1
Use #000000AAA at every size.
Aa
White text · 2.69:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.80:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #b08af5 as text scores 2.69:1 on white and 7.80:1 on black.

Accessibility — WCAG contrast

Aa
#b08af5 on white: 2.69:1
AA ✗ fail · AA-large · AAA
Aa
#b08af5 on black: 7.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6B9EF9
deuteranopia · #739DF2
tritanopia · #A29DB4

Color scale — 50 to 950

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

#F6F2FC
#EDE6FA
#D7C5F6
#b08af5
#9664F2
#7330ED
#5C13E2
#4D10BC
#3E0D96
#2F0E6D
#1E0944
Base = 300Lightest = 50 · #F6F2FCDarkest = 950 · #1E0944
:root {
  --brand-50: #F6F2FC;
  --brand-100: #EDE6FA;
  --brand-200: #D7C5F6;
  --brand-300: #b08af5;
  --brand-400: #9664F2;
  --brand-500: #7330ED;
  --brand-600: #5C13E2;
  --brand-700: #4D10BC;
  --brand-800: #3E0D96;
  --brand-900: #2F0E6D;
  --brand-950: #1E0944;
  --brand: #b08af5;
  --brand-ink: #000000;
}

Colors that work with #b08af5

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#F6F4FA
Tinted page background
Border#D0C0ED
Hairlines and dividers
Muted text#674B9B
Captions on the surface
Accent#ADC10B
Second voice, not a rival
Dark variant#300A75
Hover, pressed, headers
Light variant#EFE8FD
Selected rows, tints
Dark surface#1A1424
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 #b08af5

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#CFF58A
Analogous left#8A9AF5
Analogous right#E68AF5
Split-complement 1#F5E68A
Split-complement 2#9AF58A
Triadic 1#F5B08A
Triadic 2#8AF5B0
Tetradic#F58A9A

RGB percentages

Red69.0%
Green54.1%
Blue96.1%

CMYK percentages

Cyan28.2%
Magenta43.7%
Yellow0.0%
Key (black)3.9%

Color previews

#b08af5 text on a black background

contrast 7.80:1

Card sample

#b08af5 text on a white background

contrast 2.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b08af5

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.

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

#b08af5, answered

What color is #b08af5?

#b08af5 is a light electric violet, closest to Medium Purple (ΔE2000 8.8). It sits at 261° on the hue wheel with 84% saturation and 75% lightness, which reads as cool.

What is the RGB value of #b08af5?

rgb(176, 138, 245) — 176 red, 138 green and 245 blue out of 255, or 69% / 54.1% / 96.1% by channel.

Is #b08af5 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3400 and perceived brightness is 65%, so black text on it reaches 7.80:1.

Should I use black or white text on #b08af5?

Black. It scores 7.80:1 against #b08af5, versus 2.69:1 for white — AAA at any size.

What is the complementary color of #b08af5?

#CFF58A sits directly opposite on the wheel. Softer options are the split-complements #F5E68A and #9AF58A, which give the same contrast with far less vibration.

What colors go well with #b08af5?

For interface work: #F6F4FA as the surface, #D0C0ED for borders, #674B9B for secondary text, #ADC10B as an accent and #300A75 for hover and pressed states. For a palette, the analogous pair #8A9AF5 and #E68AF5 stays calm, while #CFF58A is the loudest partner.

What is #b08af5 in CMYK for printing?

cmyk(28%, 44%, 0%, 4%). 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 #b08af5 warm or cool?

Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D78AF5; nudged cooler, #898AF6.

Work with #b08af5 in the Color Lab