Skip to content

#682dfb

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

RGB
104, 45, 251
HSL
257°, 96%, 58%
CMYK
59, 82, 0, 2
Luminance
0.1178

At a glance

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

Hex
#682dfb
Hue
257°
violet
Saturation
96%
electric
Lightness
58%
balanced
Brightness
98%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1178
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Electric
Best ink
White
6.26:1
Closest name
Blue Violet
ΔE2000 5.4
Where it sits
Hue257° of 360°
Saturation96%
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#682dfb
RGBrgb(104, 45, 251)
HSLhsl(257, 96%, 58%)
CMYKcmyk(59%, 82%, 0%, 2%)
LABlab(40.9 71.1 -91.2)
LCHlch(40.9 115.7 308.0)
OKLCHoklch(0.523 0.272 285.1)
Decimal6827515
Display P3color(display-p3 0.408 0.176 0.984)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#682dfb on white: 6.26:1
AA ✓ pass · AA-large · AAA
Aa
#682dfb on black: 3.36:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0066FF
deuteranopia · #005AF7
tritanopia · #006E98

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #682dfb 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
#EBE4FC
#D2C1FA
#B091FD
#885AFC
#682dfb
#4805F0
#3C04C8
#3003A0
#260773
#180448
Base = 500Lightest = 50 · #F5F1FDDarkest = 950 · #180448
:root {
  --brand-50: #F5F1FD;
  --brand-100: #EBE4FC;
  --brand-200: #D2C1FA;
  --brand-300: #B091FD;
  --brand-400: #885AFC;
  --brand-500: #682dfb;
  --brand-600: #4805F0;
  --brand-700: #3C04C8;
  --brand-800: #3003A0;
  --brand-900: #260773;
  --brand-950: #180448;
  --brand: #682dfb;
  --brand-ink: #ffffff;
}

Colors that work with #682dfb

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#624B9B
Captions on the surface
Accent#C5CC00
Second voice, not a rival
Dark variant#26027D
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 #682dfb

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#C0FB2D
Analogous left#2D59FB
Analogous right#CF2DFB
Split-complement 1#FBCF2D
Split-complement 2#59FB2D
Triadic 1#FB682D
Triadic 2#2DFB68
Tetradic#FB2D59

RGB percentages

Red40.8%
Green17.6%
Blue98.4%

CMYK percentages

Cyan58.6%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#682dfb text on a black background

contrast 3.36:1

Card sample

#682dfb text on a white background

contrast 6.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #682dfb

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.

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

#682dfb, answered

What color is #682dfb?

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

What is the RGB value of #682dfb?

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

Is #682dfb a light or a dark color?

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

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

White. It scores 6.26:1 against #682dfb, versus 3.36:1 for black — AA at any size.

What is the complementary color of #682dfb?

#C0FB2D sits directly opposite on the wheel. Softer options are the split-complements #FBCF2D and #59FB2D, which give the same contrast with far less vibration.

What colors go well with #682dfb?

For interface work: #F6F4FA as the surface, #CDC0ED for borders, #624B9B for secondary text, #C5CC00 as an accent and #26027D for hover and pressed states. For a palette, the analogous pair #2D59FB and #CF2DFB stays calm, while #C0FB2D is the loudest partner.

What is #682dfb in CMYK for printing?

cmyk(59%, 82%, 0%, 2%). 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 #682dfb 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 #B42DFB; nudged cooler, #2B3BFD.

Work with #682dfb in the Color Lab