Skip to content

#8271df

a light, vivid blue · cool · closest name: Medium Slate Blue

RGB
130, 113, 223
HSL
249°, 63%, 66%
CMYK
42, 49, 0, 13
Luminance
0.2188

At a glance

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

Hex
#8271df
Hue
249°
blue
Saturation
63%
vivid
Lightness
66%
light
Brightness
87%
HSV value
Perceived
53%
weighted brightness
Luminance
0.2188
WCAG relative
Temperature
Cool
78/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
5.38:1
Closest name
Medium Slate Blue
ΔE2000 3.6
Where it sits
Hue249° of 360°
Saturation63%
Lightness66%
Temperature
Warm ← → Cool78% 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#8271df
RGBrgb(130, 113, 223)
HSLhsl(249, 63%, 66%)
CMYKcmyk(42%, 49%, 0%, 13%)
LABlab(53.9 33.1 -54.1)
LCHlch(53.9 63.4 301.4)
OKLCHoklch(0.616 0.161 287.8)
Decimal8548831
Display P3color(display-p3 0.510 0.443 0.875)

Copy-ready code

/* CSS */
color: #8271df;
background-color: #8271df;
/* Tailwind (arbitrary) */
class="text-[#8271df] bg-[#8271df]"
/* SCSS */
$brand: #8271df;
/* SwiftUI */
Color(red: 0.510, green: 0.443, blue: 0.875)
/* Android */
Color.parseColor("#8271df")
/* Flutter */
Color(0xFF8271DF)
/* Python / OpenCV (BGR) */
(223, 113, 130)

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 #8271df · 5.38:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.91:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.38:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #8271df as text scores 3.91:1 on white and 5.38:1 on black.

Accessibility — WCAG contrast

Aa
#8271df on white: 3.91:1
AA ✗ fail · AA-large · AAA
Aa
#8271df on black: 5.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4383E3
deuteranopia · #437EDD
tritanopia · #67889D

Color scale — 50 to 950

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

#F5F4FB
#EAE8F7
#D1CBF0
#AEA3EA
#8271df
#5E48D6
#452DC8
#3A26A6
#2E1E85
#251A61
#17103C
Base = 400Lightest = 50 · #F5F4FBDarkest = 950 · #17103C
:root {
  --brand-50: #F5F4FB;
  --brand-100: #EAE8F7;
  --brand-200: #D1CBF0;
  --brand-300: #AEA3EA;
  --brand-400: #8271df;
  --brand-500: #5E48D6;
  --brand-600: #452DC8;
  --brand-700: #3A26A6;
  --brand-800: #2E1E85;
  --brand-900: #251A61;
  --brand-950: #17103C;
  --brand: #8271df;
  --brand-ink: #000000;
}

Colors that work with #8271df

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#F5F4FA
Tinted page background
Border#C7C0ED
Hairlines and dividers
Muted text#574B9B
Captions on the surface
Accent#AA9D22
Second voice, not a rival
Dark variant#241768
Hover, pressed, headers
Light variant#EDEAFA
Selected rows, tints
Dark surface#161424
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 #8271df

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • 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
  • Small text on white — under 4.5:1
  • 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#CEDF71
Analogous left#7197DF
Analogous right#B971DF
Split-complement 1#DFB971
Split-complement 2#97DF71
Triadic 1#DF8271
Triadic 2#71DF82
Tetradic#DF7197

RGB percentages

Red51.0%
Green44.3%
Blue87.5%

CMYK percentages

Cyan41.7%
Magenta49.3%
Yellow0.0%
Key (black)12.5%

Color previews

#8271df text on a black background

contrast 5.38:1

Card sample

#8271df text on a white background

contrast 3.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(130, 113, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(130, 113, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8271df;
background: linear-gradient(135deg, #8271df, #CB71DF);

Monochromatic scale

Palettes built from #8271df

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.

#8271df 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.

#8271df, answered

What color is #8271df?

#8271df is a light vivid blue, closest to Medium Slate Blue (ΔE2000 3.6). It sits at 249° on the hue wheel with 63% saturation and 66% lightness, which reads as cool.

What is the RGB value of #8271df?

rgb(130, 113, 223) — 130 red, 113 green and 223 blue out of 255, or 51% / 44.3% / 87.5% by channel.

Is #8271df a light or a dark color?

It is a mid-tone. Relative luminance is 0.2188 and perceived brightness is 53%, so black text on it reaches 5.38:1.

Should I use black or white text on #8271df?

Black. It scores 5.38:1 against #8271df, versus 3.91:1 for white — AA at any size.

What is the complementary color of #8271df?

#CEDF71 sits directly opposite on the wheel. Softer options are the split-complements #DFB971 and #97DF71, which give the same contrast with far less vibration.

What colors go well with #8271df?

For interface work: #F5F4FA as the surface, #C7C0ED for borders, #574B9B for secondary text, #AA9D22 as an accent and #241768 for hover and pressed states. For a palette, the analogous pair #7197DF and #B971DF stays calm, while #CEDF71 is the loudest partner.

What is #8271df in CMYK for printing?

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

Is #8271df warm or cool?

Cool — it scores 78 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AA71DF; nudged cooler, #6F87E1.

Work with #8271df in the Color Lab