#501fd2
a balanced, vivid violet · cool · closest name: Blue
At a glance
Every number on this page in one read: what #501fd2 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 | #501fd2 |
| RGB | rgb(80, 31, 210) |
| HSL | hsl(256, 74%, 47%) |
| CMYK | cmyk(62%, 85%, 0%, 18%) |
| LAB | lab(32.6 63.4 -81.7) |
| LCH | lch(32.6 103.4 307.8) |
| OKLCH | oklch(0.448 0.242 283.2) |
| Decimal | 5251026 |
| Display P3 | color(display-p3 0.314 0.122 0.824) |
Copy-ready code
/* CSS */
color: #501fd2;
background-color: #501fd2;
/* Tailwind (arbitrary) */
class="text-[#501fd2] bg-[#501fd2]"
/* SCSS */
$brand: #501fd2;
/* SwiftUI */
Color(red: 0.314, green: 0.122, blue: 0.824)
/* Android */
Color.parseColor("#501fd2")
/* Flutter */
Color(0xFF501FD2)
/* Python / OpenCV (BGR) */
(210, 31, 80)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. #501fd2 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F5F3FC;
--brand-100: #ECE7F9;
--brand-200: #D4C8F4;
--brand-300: #B49DF1;
--brand-400: #8F6CE9;
--brand-500: #693BE2;
--brand-600: #501fd2;
--brand-700: #441AB2;
--brand-800: #36158E;
--brand-900: #2A1367;
--brand-950: #1A0C40;
--brand: #501fd2;
--brand-ink: #ffffff;
}Colors that work with #501fd2
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 #501fd2
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠Text on black or near-black surfaces
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠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 | #A1D21F | Directly opposite — maximum tension | |
| Analogous left | #1F48D2 | Neighbour, quieter | |
| Analogous right | #AA1FD2 | Neighbour, quieter | |
| Split-complement 1 | #D2AA1F | Contrast without the clash | |
| Split-complement 2 | #48D21F | Contrast without the clash | |
| Triadic 1 | #D2501F | Even thirds — balanced and loud | |
| Triadic 2 | #1FD250 | Even thirds — balanced and loud | |
| Tetradic | #D21F48 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#501fd2 text on a black background
contrast 2.47:1
#501fd2 text on a white background
contrast 8.51:1
CSS3 live lab
The quick brown fox
color: #501fd2;
background-color: #501fd2;
Glowing headline
text-shadow: 2px 2px 8px #501fd2;
Soft neon halo
text-shadow: 0 0 14px rgba(80, 31, 210, 0.45);
box-shadow: 0 12px 32px -8px rgba(80, 31, 210, 0.45);
border: 3px solid #501fd2; background: linear-gradient(135deg, #501fd2, #C71FD2);
Monochromatic scale
Palettes built from #501fd2
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: Ultramarine (#3f00ff) — ΔE2000 4.8 away, with its history, psychology and brand usage.
#501fd2 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.
#501fd2, answered
What color is #501fd2?
#501fd2 is a balanced vivid violet, closest to Blue (ΔE2000 5.3). It sits at 256° on the hue wheel with 74% saturation and 47% lightness, which reads as cool.
What is the RGB value of #501fd2?
rgb(80, 31, 210) — 80 red, 31 green and 210 blue out of 255, or 31.4% / 12.2% / 82.4% by channel.
Is #501fd2 a light or a dark color?
It is a dark color. Relative luminance is 0.0734 and perceived brightness is 34%, so white text on it reaches 8.51:1.
Should I use black or white text on #501fd2?
White. It scores 8.51:1 against #501fd2, versus 2.47:1 for black — AAA at any size.
What is the complementary color of #501fd2?
#A1D21F sits directly opposite on the wheel. Softer options are the split-complements #D2AA1F and #48D21F, which give the same contrast with far less vibration.
What colors go well with #501fd2?
For interface work: #F6F4FA as the surface, #CCC0ED for borders, #614B9B for secondary text, #B3B616 as an accent and #2A106F for hover and pressed states. For a palette, the analogous pair #1F48D2 and #AA1FD2 stays calm, while #A1D21F is the loudest partner.
What is #501fd2 in CMYK for printing?
cmyk(62%, 85%, 0%, 18%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #501fd2 warm or cool?
Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #921FD2; nudged cooler, #1D2ED5.