Skip to content

#682eb7

a dark, vivid violet · cool · closest name: Rebecca Purple

RGB
104, 46, 183
HSL
265°, 60%, 45%
CMYK
43, 75, 0, 28
Luminance
0.0832

At a glance

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

Hex
#682eb7
Hue
265°
violet
Saturation
60%
vivid
Lightness
45%
dark
Brightness
72%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0832
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.89:1
Closest name
Rebecca Purple
ΔE2000 4.8
Where it sits
Hue265° of 360°
Saturation60%
Lightness45%
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#682eb7
RGBrgb(104, 46, 183)
HSLhsl(265, 60%, 45%)
CMYKcmyk(43%, 75%, 0%, 28%)
LABlab(34.6 53.3 -62.3)
LCHlch(34.6 82.0 310.6)
OKLCHoklch(0.461 0.200 297.0)
Decimal6827703
Display P3color(display-p3 0.408 0.180 0.718)

Copy-ready code

/* CSS */
color: #682eb7;
background-color: #682eb7;
/* Tailwind (arbitrary) */
class="text-[#682eb7] bg-[#682eb7]"
/* SCSS */
$brand: #682eb7;
/* SwiftUI */
Color(red: 0.408, green: 0.180, blue: 0.718)
/* Android */
Color.parseColor("#682eb7")
/* Flutter */
Color(0xFF682EB7)
/* Python / OpenCV (BGR) */
(183, 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 #682eb7 · 7.89:1
Use #ffffffAAA at every size.
Aa
White text · 7.89:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.66:1
AA fail · AA large fail · AAA fail
Reading the other direction: #682eb7 as text scores 7.89:1 on white and 2.66:1 on black.

Accessibility — WCAG contrast

Aa
#682eb7 on white: 7.89:1
AA ✓ pass · AA-large · AAA
Aa
#682eb7 on black: 2.66:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0052BB
deuteranopia · #0050B4
tritanopia · #535270

Color scale — 50 to 950

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

#F7F4FB
#EFE9F7
#DBCCEF
#C2A5E8
#A379DD
#854CD2
#682eb7
#5D29A3
#4A2182
#381C5F
#23113B
Base = 600Lightest = 50 · #F7F4FBDarkest = 950 · #23113B
:root {
  --brand-50: #F7F4FB;
  --brand-100: #EFE9F7;
  --brand-200: #DBCCEF;
  --brand-300: #C2A5E8;
  --brand-400: #A379DD;
  --brand-500: #854CD2;
  --brand-600: #682eb7;
  --brand-700: #5D29A3;
  --brand-800: #4A2182;
  --brand-900: #381C5F;
  --brand-950: #23113B;
  --brand: #682eb7;
  --brand-ink: #ffffff;
}

Colors that work with #682eb7

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#90A725
Second voice, not a rival
Dark variant#3A1A66
Hover, pressed, headers
Light variant#F1EBFA
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 #682eb7

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black 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#7DB72E
Analogous left#2E39B7
Analogous right#AC2EB7
Split-complement 1#B7AC2E
Split-complement 2#39B72E
Triadic 1#B7682E
Triadic 2#2EB768
Tetradic#B72E39

RGB percentages

Red40.8%
Green18.0%
Blue71.8%

CMYK percentages

Cyan43.2%
Magenta74.9%
Yellow0.0%
Key (black)28.2%

Color previews

#682eb7 text on a black background

contrast 2.66:1

Card sample

#682eb7 text on a white background

contrast 7.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #682eb7

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.

#682eb7 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

Converts to four-color process without much drama. Proof it anyway.

#682eb7, answered

What color is #682eb7?

#682eb7 is a dark vivid violet, closest to Rebecca Purple (ΔE2000 4.8). It sits at 265° on the hue wheel with 60% saturation and 45% lightness, which reads as cool.

What is the RGB value of #682eb7?

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

Is #682eb7 a light or a dark color?

It is a dark color. Relative luminance is 0.0832 and perceived brightness is 36%, so white text on it reaches 7.89:1.

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

White. It scores 7.89:1 against #682eb7, versus 2.66:1 for black — AAA at any size.

What is the complementary color of #682eb7?

#7DB72E sits directly opposite on the wheel. Softer options are the split-complements #B7AC2E and #39B72E, which give the same contrast with far less vibration.

What colors go well with #682eb7?

For interface work: #F7F4FA as the surface, #D3C0ED for borders, #6D4B9B for secondary text, #90A725 as an accent and #3A1A66 for hover and pressed states. For a palette, the analogous pair #2E39B7 and #AC2EB7 stays calm, while #7DB72E is the loudest partner.

What is #682eb7 in CMYK for printing?

cmyk(43%, 75%, 0%, 28%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #682eb7 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 #9A2EB7; nudged cooler, #342CB9.

Work with #682eb7 in the Color Lab