#8024cb
a balanced, vivid violet · cool · closest name: Dark Violet
At a glance
Every number on this page in one read: what #8024cb 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 | #8024cb |
| RGB | rgb(128, 36, 203) |
| HSL | hsl(273, 70%, 47%) |
| CMYK | cmyk(37%, 82%, 0%, 20%) |
| LAB | lab(38.1 65.6 -68.2) |
| LCH | lch(38.1 94.6 313.9) |
| OKLCH | oklch(0.497 0.233 303.3) |
| Decimal | 8398027 |
| Display P3 | color(display-p3 0.502 0.141 0.796) |
Copy-ready code
/* CSS */
color: #8024cb;
background-color: #8024cb;
/* Tailwind (arbitrary) */
class="text-[#8024cb] bg-[#8024cb]"
/* SCSS */
$brand: #8024cb;
/* SwiftUI */
Color(red: 0.502, green: 0.141, blue: 0.796)
/* Android */
Color.parseColor("#8024cb")
/* Flutter */
Color(0xFF8024CB)
/* Python / OpenCV (BGR) */
(203, 36, 128)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. #8024cb 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: #F8F3FC;
--brand-100: #F1E7F8;
--brand-200: #E0C9F2;
--brand-300: #CBA0EE;
--brand-400: #B170E6;
--brand-500: #9740DD;
--brand-600: #8024cb;
--brand-700: #6D1FAD;
--brand-800: #57198B;
--brand-900: #411665;
--brand-950: #290E3F;
--brand: #8024cb;
--brand-ink: #ffffff;
}Colors that work with #8024cb
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 #8024cb
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
- ⚠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 | #6FCB24 | Directly opposite — maximum tension | |
| Analogous left | #2D24CB | Neighbour, quieter | |
| Analogous right | #CB24C3 | Neighbour, quieter | |
| Split-complement 1 | #C3CB24 | Contrast without the clash | |
| Split-complement 2 | #24CB2D | Contrast without the clash | |
| Triadic 1 | #CB8024 | Even thirds — balanced and loud | |
| Triadic 2 | #24CB80 | Even thirds — balanced and loud | |
| Tetradic | #CB2D24 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#8024cb text on a black background
contrast 3.03:1
#8024cb text on a white background
contrast 6.92:1
CSS3 live lab
The quick brown fox
color: #8024cb;
background-color: #8024cb;
Glowing headline
text-shadow: 2px 2px 8px #8024cb;
Soft neon halo
text-shadow: 0 0 14px rgba(128, 36, 203, 0.45);
box-shadow: 0 12px 32px -8px rgba(128, 36, 203, 0.45);
border: 3px solid #8024cb; background: linear-gradient(135deg, #8024cb, #CB24A7);
Monochromatic scale
Palettes built from #8024cb
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 9.2 away, with its history, psychology and brand usage.
#8024cb 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.
#8024cb, answered
What color is #8024cb?
#8024cb is a balanced vivid violet, closest to Dark Violet (ΔE2000 3.2). It sits at 273° on the hue wheel with 70% saturation and 47% lightness, which reads as cool.
What is the RGB value of #8024cb?
rgb(128, 36, 203) — 128 red, 36 green and 203 blue out of 255, or 50.2% / 14.1% / 79.6% by channel.
Is #8024cb a light or a dark color?
It is a dark color. Relative luminance is 0.1016 and perceived brightness is 40%, so white text on it reaches 6.92:1.
Should I use black or white text on #8024cb?
White. It scores 6.92:1 against #8024cb, versus 3.03:1 for black — AA at any size.
What is the complementary color of #8024cb?
#6FCB24 sits directly opposite on the wheel. Softer options are the split-complements #C3CB24 and #24CB2D, which give the same contrast with far less vibration.
What colors go well with #8024cb?
For interface work: #F8F4FA as the surface, #D9C0ED for borders, #774B9B for secondary text, #84B21A as an accent and #44136C for hover and pressed states. For a palette, the analogous pair #2D24CB and #CB24C3 stays calm, while #6FCB24 is the loudest partner.
What is #8024cb in CMYK for printing?
cmyk(37%, 82%, 0%, 20%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #8024cb warm or cool?
Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BE24CB; nudged cooler, #4122CE.