Skip to content

#682dfd

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

RGB
104, 45, 253
HSL
257°, 98%, 58%
CMYK
59, 82, 0, 1
Luminance
0.1191

At a glance

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

Hex
#682dfd
Hue
257°
violet
Saturation
98%
electric
Lightness
58%
balanced
Brightness
99%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1191
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Electric
Best ink
White
6.21:1
Closest name
Blue Violet
ΔE2000 5.5
Where it sits
Hue257° of 360°
Saturation98%
Lightness58%
Temperature
Warm ← → Cool74% 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#682dfd
RGBrgb(104, 45, 253)
HSLhsl(257, 98%, 58%)
CMYKcmyk(59%, 82%, 0%, 1%)
LABlab(41.1 71.7 -92.0)
LCHlch(41.1 116.6 307.9)
OKLCHoklch(0.525 0.274 284.8)
Decimal6827517
Display P3color(display-p3 0.408 0.176 0.992)

Copy-ready code

/* CSS */
color: #682dfd;
background-color: #682dfd;
/* Tailwind (arbitrary) */
class="text-[#682dfd] bg-[#682dfd]"
/* SCSS */
$brand: #682dfd;
/* SwiftUI */
Color(red: 0.408, green: 0.176, blue: 0.992)
/* Android */
Color.parseColor("#682dfd")
/* Flutter */
Color(0xFF682DFD)
/* Python / OpenCV (BGR) */
(253, 45, 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 #682dfd · 6.21:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.21:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.38:1
AA fail · AA large pass · AAA fail
Reading the other direction: #682dfd as text scores 6.21:1 on white and 3.38:1 on black.

Accessibility — WCAG contrast

Aa
#682dfd on white: 6.21:1
AA ✓ pass · AA-large · AAA
Aa
#682dfd on black: 3.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0066FF
deuteranopia · #005AF9
tritanopia · #006F99

Color scale — 50 to 950

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

#F5F1FD
#EAE3FC
#D1C1FB
#AF90FE
#8758FD
#682dfd
#4602F2
#3B02CA
#2F02A2
#250674
#170449
Base = 500Lightest = 50 · #F5F1FDDarkest = 950 · #170449
:root {
  --brand-50: #F5F1FD;
  --brand-100: #EAE3FC;
  --brand-200: #D1C1FB;
  --brand-300: #AF90FE;
  --brand-400: #8758FD;
  --brand-500: #682dfd;
  --brand-600: #4602F2;
  --brand-700: #3B02CA;
  --brand-800: #2F02A2;
  --brand-900: #250674;
  --brand-950: #170449;
  --brand: #682dfd;
  --brand-ink: #ffffff;
}

Colors that work with #682dfd

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#CCC0ED
Hairlines and dividers
Muted text#614B9B
Captions on the surface
Accent#C5CC00
Second voice, not a rival
Dark variant#25017E
Hover, pressed, headers
Light variant#EDE6FF
Selected rows, tints
Dark surface#181424
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 #682dfd

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#C2FD2D
Analogous left#2D5AFD
Analogous right#D02DFD
Split-complement 1#FDD02D
Split-complement 2#5AFD2D
Triadic 1#FD682D
Triadic 2#2DFD68
Tetradic#FD2D5A

RGB percentages

Red40.8%
Green17.6%
Blue99.2%

CMYK percentages

Cyan58.9%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#682dfd text on a black background

contrast 3.38:1

Card sample

#682dfd text on a white background

contrast 6.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #682dfd

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.

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

#682dfd, answered

What color is #682dfd?

#682dfd is a balanced electric violet, closest to Blue Violet (ΔE2000 5.5). It sits at 257° on the hue wheel with 98% saturation and 58% lightness, which reads as cool.

What is the RGB value of #682dfd?

rgb(104, 45, 253) — 104 red, 45 green and 253 blue out of 255, or 40.8% / 17.6% / 99.2% by channel.

Is #682dfd a light or a dark color?

It is a dark color. Relative luminance is 0.1191 and perceived brightness is 42%, so white text on it reaches 6.21:1.

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

White. It scores 6.21:1 against #682dfd, versus 3.38:1 for black — AA at any size.

What is the complementary color of #682dfd?

#C2FD2D sits directly opposite on the wheel. Softer options are the split-complements #FDD02D and #5AFD2D, which give the same contrast with far less vibration.

What colors go well with #682dfd?

For interface work: #F6F4FA as the surface, #CCC0ED for borders, #614B9B for secondary text, #C5CC00 as an accent and #25017E for hover and pressed states. For a palette, the analogous pair #2D5AFD and #D02DFD stays calm, while #C2FD2D is the loudest partner.

What is #682dfd in CMYK for printing?

cmyk(59%, 82%, 0%, 1%). 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 #682dfd 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 #B42DFD; nudged cooler, #2B3DFF.

Work with #682dfd in the Color Lab