Skip to content

#a28bf1

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

RGB
162, 139, 241
HSL
254°, 79%, 75%
CMYK
33, 42, 0, 6
Luminance
0.3250

At a glance

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

Hex
#a28bf1
Hue
254°
blue
Saturation
79%
electric
Lightness
75%
light
Brightness
95%
HSV value
Perceived
63%
weighted brightness
Luminance
0.3250
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
7.50:1
Closest name
Medium Purple
ΔE2000 8.2
Where it sits
Hue254° of 360°
Saturation79%
Lightness75%
Temperature
Warm ← → Cool76% 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#a28bf1
RGBrgb(162, 139, 241)
HSLhsl(254, 79%, 75%)
CMYKcmyk(33%, 42%, 0%, 6%)
LABlab(63.8 31.0 -48.4)
LCHlch(63.8 57.4 302.6)
OKLCHoklch(0.700 0.147 292.6)
Decimal10652657
Display P3color(display-p3 0.635 0.545 0.945)

Copy-ready code

/* CSS */
color: #a28bf1;
background-color: #a28bf1;
/* Tailwind (arbitrary) */
class="text-[#a28bf1] bg-[#a28bf1]"
/* SCSS */
$brand: #a28bf1;
/* SwiftUI */
Color(red: 0.635, green: 0.545, blue: 0.945)
/* Android */
Color.parseColor("#a28bf1")
/* Flutter */
Color(0xFFA28BF1)
/* Python / OpenCV (BGR) */
(241, 139, 162)

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

Accessibility — WCAG contrast

Aa
#a28bf1 on white: 2.80:1
AA ✗ fail · AA-large · AAA
Aa
#a28bf1 on black: 7.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6B9CF5
deuteranopia · #6D99EE
tritanopia · #8F9EB2

Color scale — 50 to 950

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

#F5F3FC
#EBE6F9
#D1C7F5
#a28bf1
#8769ED
#5E37E7
#461ADA
#3A16B6
#2E1292
#251169
#170B42
Base = 300Lightest = 50 · #F5F3FCDarkest = 950 · #170B42
:root {
  --brand-50: #F5F3FC;
  --brand-100: #EBE6F9;
  --brand-200: #D1C7F5;
  --brand-300: #a28bf1;
  --brand-400: #8769ED;
  --brand-500: #5E37E7;
  --brand-600: #461ADA;
  --brand-700: #3A16B6;
  --brand-800: #2E1292;
  --brand-900: #251169;
  --brand-950: #170B42;
  --brand: #a28bf1;
  --brand-ink: #000000;
}

Colors that work with #a28bf1

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#CAC0ED
Hairlines and dividers
Muted text#5D4B9B
Captions on the surface
Accent#BBB611
Second voice, not a rival
Dark variant#240E72
Hover, pressed, headers
Light variant#EDE8FC
Selected rows, tints
Dark surface#171424
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 #a28bf1

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#DAF18B
Analogous left#8BA7F1
Analogous right#D58BF1
Split-complement 1#F1D58B
Split-complement 2#A7F18B
Triadic 1#F1A28B
Triadic 2#8BF1A2
Tetradic#F18BA7

RGB percentages

Red63.5%
Green54.5%
Blue94.5%

CMYK percentages

Cyan32.8%
Magenta42.3%
Yellow0.0%
Key (black)5.5%

Color previews

#a28bf1 text on a black background

contrast 7.50:1

Card sample

#a28bf1 text on a white background

contrast 2.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(162, 139, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(162, 139, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a28bf1;
background: linear-gradient(135deg, #a28bf1, #E68BF1);

Monochromatic scale

Palettes built from #a28bf1

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.

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

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

#a28bf1, answered

What color is #a28bf1?

#a28bf1 is a light electric blue, closest to Medium Purple (ΔE2000 8.2). It sits at 254° on the hue wheel with 79% saturation and 75% lightness, which reads as cool.

What is the RGB value of #a28bf1?

rgb(162, 139, 241) — 162 red, 139 green and 241 blue out of 255, or 63.5% / 54.5% / 94.5% by channel.

Is #a28bf1 a light or a dark color?

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

Should I use black or white text on #a28bf1?

Black. It scores 7.50:1 against #a28bf1, versus 2.80:1 for white — AAA at any size.

What is the complementary color of #a28bf1?

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

What colors go well with #a28bf1?

For interface work: #F6F4FA as the surface, #CAC0ED for borders, #5D4B9B for secondary text, #BBB611 as an accent and #240E72 for hover and pressed states. For a palette, the analogous pair #8BA7F1 and #D58BF1 stays calm, while #DAF18B is the loudest partner.

What is #a28bf1 in CMYK for printing?

cmyk(33%, 42%, 0%, 6%). 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 #a28bf1 warm or cool?

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

Work with #a28bf1 in the Color Lab