Skip to content

#682eee

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

RGB
104, 46, 238
HSL
258°, 85%, 56%
CMYK
56, 81, 0, 7
Luminance
0.1107

At a glance

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

Hex
#682eee
Hue
258°
violet
Saturation
85%
electric
Lightness
56%
balanced
Brightness
93%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1107
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Electric
Best ink
White
6.53:1
Closest name
Blue Violet
ΔE2000 5.1
Where it sits
Hue258° of 360°
Saturation85%
Lightness56%
Temperature
Warm ← → Cool73% 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#682eee
RGBrgb(104, 46, 238)
HSLhsl(258, 85%, 56%)
CMYKcmyk(56%, 81%, 0%, 7%)
LABlab(39.7 67.5 -85.8)
LCHlch(39.7 109.2 308.2)
OKLCHoklch(0.511 0.258 286.8)
Decimal6827758
Display P3color(display-p3 0.408 0.180 0.933)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#682eee on white: 6.53:1
AA ✓ pass · AA-large · AAA
Aa
#682eee on black: 3.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0062F3
deuteranopia · #0058EB
tritanopia · #256990

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #682eee 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.

#F5F2FC
#ECE5FA
#D4C5F7
#B497F7
#8E63F2
#682eee
#5112E2
#440FBD
#360C97
#2A0D6D
#1A0844
Base = 500Lightest = 50 · #F5F2FCDarkest = 950 · #1A0844
:root {
  --brand-50: #F5F2FC;
  --brand-100: #ECE5FA;
  --brand-200: #D4C5F7;
  --brand-300: #B497F7;
  --brand-400: #8E63F2;
  --brand-500: #682eee;
  --brand-600: #5112E2;
  --brand-700: #440FBD;
  --brand-800: #360C97;
  --brand-900: #2A0D6D;
  --brand-950: #1A0844;
  --brand: #682eee;
  --brand-ink: #ffffff;
}

Colors that work with #682eee

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#F6F4FA
Tinted page background
Border#CDC0ED
Hairlines and dividers
Muted text#634B9B
Captions on the surface
Accent#B7C10B
Second voice, not a rival
Dark variant#2A0A76
Hover, pressed, headers
Light variant#EEE7FD
Selected rows, tints
Dark surface#191424
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 #682eee

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#B4EE2E
Analogous left#2E54EE
Analogous right#C82EEE
Split-complement 1#EEC82E
Split-complement 2#54EE2E
Triadic 1#EE682E
Triadic 2#2EEE68
Tetradic#EE2E54

RGB percentages

Red40.8%
Green18.0%
Blue93.3%

CMYK percentages

Cyan56.3%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#682eee text on a black background

contrast 3.21:1

Card sample

#682eee text on a white background

contrast 6.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #682eee

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.

#682eee 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.

#682eee, answered

What color is #682eee?

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

What is the RGB value of #682eee?

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

Is #682eee a light or a dark color?

It is a dark color. Relative luminance is 0.1107 and perceived brightness is 41%, so white text on it reaches 6.53:1.

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

White. It scores 6.53:1 against #682eee, versus 3.21:1 for black — AA at any size.

What is the complementary color of #682eee?

#B4EE2E sits directly opposite on the wheel. Softer options are the split-complements #EEC82E and #54EE2E, which give the same contrast with far less vibration.

What colors go well with #682eee?

For interface work: #F6F4FA as the surface, #CDC0ED for borders, #634B9B for secondary text, #B7C10B as an accent and #2A0A76 for hover and pressed states. For a palette, the analogous pair #2E54EE and #C82EEE stays calm, while #B4EE2E is the loudest partner.

What is #682eee in CMYK for printing?

cmyk(56%, 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 #682eee warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AE2EEE; nudged cooler, #2C39F0.

Work with #682eee in the Color Lab