Skip to content

#ab96eb

a light, vivid blue · cool · closest name: Medium Purple

RGB
171, 150, 235
HSL
255°, 68%, 76%
CMYK
27, 36, 0, 8
Luminance
0.3647

At a glance

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

Hex
#ab96eb
Hue
255°
blue
Saturation
68%
vivid
Lightness
76%
light
Brightness
92%
HSV value
Perceived
66%
weighted brightness
Luminance
0.3647
WCAG relative
Temperature
Cool
75/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
8.29:1
Closest name
Medium Purple
ΔE2000 11.2
Where it sits
Hue255° of 360°
Saturation68%
Lightness76%
Temperature
Warm ← → Cool75% 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#ab96eb
RGBrgb(171, 150, 235)
HSLhsl(255, 68%, 76%)
CMYKcmyk(27%, 36%, 0%, 8%)
LABlab(66.9 25.7 -40.1)
LCHlch(66.9 47.6 302.7)
OKLCHoklch(0.725 0.123 294.5)
Decimal11245291
Display P3color(display-p3 0.671 0.588 0.922)

Copy-ready code

/* CSS */
color: #ab96eb;
background-color: #ab96eb;
/* Tailwind (arbitrary) */
class="text-[#ab96eb] bg-[#ab96eb]"
/* SCSS */
$brand: #ab96eb;
/* SwiftUI */
Color(red: 0.671, green: 0.588, blue: 0.922)
/* Android */
Color.parseColor("#ab96eb")
/* Flutter */
Color(0xFFAB96EB)
/* Python / OpenCV (BGR) */
(235, 150, 171)

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

Accessibility — WCAG contrast

Aa
#ab96eb on white: 2.53:1
AA ✗ fail · AA-large · AAA
Aa
#ab96eb on black: 8.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7FA4EE
deuteranopia · #82A1E9
tritanopia · #9DA5B6

Color scale — 50 to 950

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

#F5F3FB
#ECE8F8
#D4CAF2
#ab96eb
#8E72E4
#6843DB
#5027CE
#4321AB
#351A89
#2A1763
#1A0E3E
Base = 300Lightest = 50 · #F5F3FBDarkest = 950 · #1A0E3E
:root {
  --brand-50: #F5F3FB;
  --brand-100: #ECE8F8;
  --brand-200: #D4CAF2;
  --brand-300: #ab96eb;
  --brand-400: #8E72E4;
  --brand-500: #6843DB;
  --brand-600: #5027CE;
  --brand-700: #4321AB;
  --brand-800: #351A89;
  --brand-900: #2A1763;
  --brand-950: #1A0E3E;
  --brand: #ab96eb;
  --brand-ink: #000000;
}

Colors that work with #ab96eb

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#CBC0ED
Hairlines and dividers
Muted text#5E4B9B
Captions on the surface
Accent#B0AE1C
Second voice, not a rival
Dark variant#2A146B
Hover, pressed, headers
Light variant#EEEAFB
Selected rows, tints
Dark surface#181424
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 #ab96eb

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#D6EB96
Analogous left#96ACEB
Analogous right#D596EB
Split-complement 1#EBD596
Split-complement 2#ACEB96
Triadic 1#EBAB96
Triadic 2#96EBAB
Tetradic#EB96AC

RGB percentages

Red67.1%
Green58.8%
Blue92.2%

CMYK percentages

Cyan27.2%
Magenta36.2%
Yellow0.0%
Key (black)7.8%

Color previews

#ab96eb text on a black background

contrast 8.29:1

Card sample

#ab96eb text on a white background

contrast 2.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(171, 150, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 150, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab96eb;
background: linear-gradient(135deg, #ab96eb, #E496EB);

Monochromatic scale

Palettes built from #ab96eb

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.

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

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

#ab96eb, answered

What color is #ab96eb?

#ab96eb is a light vivid blue, closest to Medium Purple (ΔE2000 11.2). It sits at 255° on the hue wheel with 68% saturation and 76% lightness, which reads as cool.

What is the RGB value of #ab96eb?

rgb(171, 150, 235) — 171 red, 150 green and 235 blue out of 255, or 67.1% / 58.8% / 92.2% by channel.

Is #ab96eb a light or a dark color?

It is a mid-tone. Relative luminance is 0.3647 and perceived brightness is 66%, so black text on it reaches 8.29:1.

Should I use black or white text on #ab96eb?

Black. It scores 8.29:1 against #ab96eb, versus 2.53:1 for white — AAA at any size.

What is the complementary color of #ab96eb?

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

What colors go well with #ab96eb?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5E4B9B for secondary text, #B0AE1C as an accent and #2A146B for hover and pressed states. For a palette, the analogous pair #96ACEB and #D596EB stays calm, while #D6EB96 is the loudest partner.

What is #ab96eb in CMYK for printing?

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

Is #ab96eb warm or cool?

Cool — it scores 75 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CA96EB; nudged cooler, #959FEC.

Work with #ab96eb in the Color Lab