Skip to content

#802eee

a balanced, electric violet · cool · closest name: Blue Violet

RGB
128, 46, 238
HSL
266°, 85%, 56%
CMYK
46, 81, 0, 7
Luminance
0.1272

At a glance

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

Hex
#802eee
Hue
266°
violet
Saturation
85%
electric
Lightness
56%
balanced
Brightness
93%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1272
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.93:1
Closest name
Blue Violet
ΔE2000 2.2
Where it sits
Hue266° of 360°
Saturation85%
Lightness56%
Temperature
Warm ← → Cool69% 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#802eee
RGBrgb(128, 46, 238)
HSLhsl(266, 85%, 56%)
CMYKcmyk(46%, 81%, 0%, 7%)
LABlab(42.3 70.2 -81.4)
LCHlch(42.3 107.5 310.8)
OKLCHoklch(0.535 0.258 295.3)
Decimal8400622
Display P3color(display-p3 0.502 0.180 0.933)

Copy-ready code

/* CSS */
color: #802eee;
background-color: #802eee;
/* Tailwind (arbitrary) */
class="text-[#802eee] bg-[#802eee]"
/* SCSS */
$brand: #802eee;
/* SwiftUI */
Color(red: 0.502, green: 0.180, blue: 0.933)
/* Android */
Color.parseColor("#802eee")
/* Flutter */
Color(0xFF802EEE)
/* Python / OpenCV (BGR) */
(238, 46, 128)

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#ffffff on #802eee · 5.93:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.93:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.54:1
AA fail · AA large pass · AAA fail
Reading the other direction: #802eee as text scores 5.93:1 on white and 3.54:1 on black.

Accessibility — WCAG contrast

Aa
#802eee on white: 5.93:1
AA ✓ pass · AA-large · AAA
Aa
#802eee on black: 3.54:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0065F3
deuteranopia · #0061EB
tritanopia · #606790

Color scale — 50 to 950

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

#F7F2FC
#EEE5FA
#DAC5F7
#C097F7
#A063F2
#802eee
#6B12E2
#590FBD
#470C97
#360D6D
#220844
Base = 500Lightest = 50 · #F7F2FCDarkest = 950 · #220844
:root {
  --brand-50: #F7F2FC;
  --brand-100: #EEE5FA;
  --brand-200: #DAC5F7;
  --brand-300: #C097F7;
  --brand-400: #A063F2;
  --brand-500: #802eee;
  --brand-600: #6B12E2;
  --brand-700: #590FBD;
  --brand-800: #470C97;
  --brand-900: #360D6D;
  --brand-950: #220844;
  --brand: #802eee;
  --brand-ink: #ffffff;
}

Colors that work with #802eee

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F7F4FA
Tinted page background
Border#D3C0ED
Hairlines and dividers
Muted text#6D4B9B
Captions on the surface
Accent#A1C10B
Second voice, not a rival
Dark variant#380A76
Hover, pressed, headers
Light variant#F1E7FD
Selected rows, tints
Dark surface#1B1424
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 #802eee

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#9CEE2E
Analogous left#2E3CEE
Analogous right#E02EEE
Split-complement 1#EEE02E
Split-complement 2#3CEE2E
Triadic 1#EE802E
Triadic 2#2EEE80
Tetradic#EE2E3C

RGB percentages

Red50.2%
Green18.0%
Blue93.3%

CMYK percentages

Cyan46.2%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#802eee text on a black background

contrast 3.54:1

Card sample

#802eee text on a white background

contrast 5.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(128, 46, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 46, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #802eee;
background: linear-gradient(135deg, #802eee, #EE2EDC);

Monochromatic scale

Palettes built from #802eee

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.

#802eee in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#802eee, answered

What color is #802eee?

#802eee is a balanced electric violet, closest to Blue Violet (ΔE2000 2.2). It sits at 266° on the hue wheel with 85% saturation and 56% lightness, which reads as cool.

What is the RGB value of #802eee?

rgb(128, 46, 238) — 128 red, 46 green and 238 blue out of 255, or 50.2% / 18% / 93.3% by channel.

Is #802eee a light or a dark color?

It is a dark color. Relative luminance is 0.1272 and perceived brightness is 44%, so white text on it reaches 5.93:1.

Should I use black or white text on #802eee?

White. It scores 5.93:1 against #802eee, versus 3.54:1 for black — AA at any size.

What is the complementary color of #802eee?

#9CEE2E sits directly opposite on the wheel. Softer options are the split-complements #EEE02E and #3CEE2E, which give the same contrast with far less vibration.

What colors go well with #802eee?

For interface work: #F7F4FA as the surface, #D3C0ED for borders, #6D4B9B for secondary text, #A1C10B as an accent and #380A76 for hover and pressed states. For a palette, the analogous pair #2E3CEE and #E02EEE stays calm, while #9CEE2E is the loudest partner.

What is #802eee in CMYK for printing?

cmyk(46%, 81%, 0%, 7%). 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 #802eee warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C62EEE; nudged cooler, #382CF0.

Work with #802eee in the Color Lab