Skip to content

#b398ee

a light, vivid violet · cool · closest name: Plum

RGB
179, 152, 238
HSL
259°, 72%, 77%
CMYK
25, 36, 0, 7
Luminance
0.3821

At a glance

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

Hex
#b398ee
Hue
259°
violet
Saturation
72%
vivid
Lightness
77%
light
Brightness
93%
HSV value
Perceived
67%
weighted brightness
Luminance
0.3821
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
8.64:1
Closest name
Plum
ΔE2000 11.6
Where it sits
Hue259° of 360°
Saturation72%
Lightness77%
Temperature
Warm ← → Cool73% 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#b398ee
RGBrgb(179, 152, 238)
HSLhsl(259, 72%, 77%)
CMYKcmyk(25%, 36%, 0%, 7%)
LABlab(68.2 27.6 -39.6)
LCHlch(68.2 48.3 304.8)
OKLCHoklch(0.737 0.124 297.7)
Decimal11770094
Display P3color(display-p3 0.702 0.596 0.933)

Copy-ready code

/* CSS */
color: #b398ee;
background-color: #b398ee;
/* Tailwind (arbitrary) */
class="text-[#b398ee] bg-[#b398ee]"
/* SCSS */
$brand: #b398ee;
/* SwiftUI */
Color(red: 0.702, green: 0.596, blue: 0.933)
/* Android */
Color.parseColor("#b398ee")
/* Flutter */
Color(0xFFB398EE)
/* Python / OpenCV (BGR) */
(238, 152, 179)

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

Accessibility — WCAG contrast

Aa
#b398ee on white: 2.43:1
AA ✗ fail · AA-large · AAA
Aa
#b398ee on black: 8.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #82A6F1
deuteranopia · #87A5EC
tritanopia · #A8A6B8

Color scale — 50 to 950

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

#F6F3FC
#EDE7F8
#D6C9F3
#b398ee
#946FE7
#713EDF
#5A23D2
#4B1DAF
#3C178C
#2E1566
#1D0D3F
Base = 300Lightest = 50 · #F6F3FCDarkest = 950 · #1D0D3F
:root {
  --brand-50: #F6F3FC;
  --brand-100: #EDE7F8;
  --brand-200: #D6C9F3;
  --brand-300: #b398ee;
  --brand-400: #946FE7;
  --brand-500: #713EDF;
  --brand-600: #5A23D2;
  --brand-700: #4B1DAF;
  --brand-800: #3C178C;
  --brand-900: #2E1566;
  --brand-950: #1D0D3F;
  --brand: #b398ee;
  --brand-ink: #000000;
}

Colors that work with #b398ee

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#CEC0ED
Hairlines and dividers
Muted text#644B9B
Captions on the surface
Accent#AAB319
Second voice, not a rival
Dark variant#2F126D
Hover, pressed, headers
Light variant#EFE9FB
Selected rows, tints
Dark surface#191424
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 #b398ee

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#D3EE98
Analogous left#98A8EE
Analogous right#DE98EE
Split-complement 1#EEDE98
Split-complement 2#A8EE98
Triadic 1#EEB398
Triadic 2#98EEB3
Tetradic#EE98A8

RGB percentages

Red70.2%
Green59.6%
Blue93.3%

CMYK percentages

Cyan24.8%
Magenta36.1%
Yellow0.0%
Key (black)6.7%

Color previews

#b398ee text on a black background

contrast 8.64:1

Card sample

#b398ee text on a white background

contrast 2.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b398ee

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.

#b398ee 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

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

#b398ee, answered

What color is #b398ee?

#b398ee is a light vivid violet, closest to Plum (ΔE2000 11.6). It sits at 259° on the hue wheel with 72% saturation and 77% lightness, which reads as cool.

What is the RGB value of #b398ee?

rgb(179, 152, 238) — 179 red, 152 green and 238 blue out of 255, or 70.2% / 59.6% / 93.3% by channel.

Is #b398ee a light or a dark color?

It is a mid-tone. Relative luminance is 0.3821 and perceived brightness is 67%, so black text on it reaches 8.64:1.

Should I use black or white text on #b398ee?

Black. It scores 8.64:1 against #b398ee, versus 2.43:1 for white — AAA at any size.

What is the complementary color of #b398ee?

#D3EE98 sits directly opposite on the wheel. Softer options are the split-complements #EEDE98 and #A8EE98, which give the same contrast with far less vibration.

What colors go well with #b398ee?

For interface work: #F6F4FA as the surface, #CEC0ED for borders, #644B9B for secondary text, #AAB319 as an accent and #2F126D for hover and pressed states. For a palette, the analogous pair #98A8EE and #DE98EE stays calm, while #D3EE98 is the loudest partner.

What is #b398ee in CMYK for printing?

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

Is #b398ee warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D398EE; nudged cooler, #979CEF.

Work with #b398ee in the Color Lab