#8271df
a light, vivid blue · cool · closest name: Medium Slate Blue
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.
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 |
| RGB | rgb(130, 113, 223) |
| HSL | hsl(249, 63%, 66%) |
| CMYK | cmyk(42%, 49%, 0%, 13%) |
| LAB | lab(53.9 33.1 -54.1) |
| LCH | lch(53.9 63.4 301.4) |
| OKLCH | oklch(0.616 0.161 287.8) |
| Decimal | 8548831 |
| Display P3 | color(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.
Accessibility — WCAG contrast
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.
: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.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #8271df
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | Directly opposite — maximum tension | |
| Analogous left | #7197DF | Neighbour, quieter | |
| Analogous right | #B971DF | Neighbour, quieter | |
| Split-complement 1 | #DFB971 | Contrast without the clash | |
| Split-complement 2 | #97DF71 | Contrast without the clash | |
| Triadic 1 | #DF8271 | Even thirds — balanced and loud | |
| Triadic 2 | #71DF82 | Even thirds — balanced and loud | |
| Tetradic | #DF7197 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#8271df text on a black background
contrast 5.38:1
#8271df text on a white background
contrast 3.91:1
CSS3 live lab
The quick brown fox
color: #8271df;
background-color: #8271df;
Glowing headline
text-shadow: 2px 2px 8px #8271df;
Soft neon halo
text-shadow: 0 0 14px rgba(130, 113, 223, 0.45);
box-shadow: 0 12px 32px -8px rgba(130, 113, 223, 0.45);
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.
Closest color with a full write-up: Royal Blue (#4169e1) — ΔE2000 10.7 away, with its history, psychology and brand usage.
#8271df in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
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.