Skip to content

#6728df

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

RGB
103, 40, 223
HSL
261°, 74%, 52%
CMYK
54, 82, 0, 13
Luminance
0.0973

At a glance

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

Hex
#6728df
Hue
261°
violet
Saturation
74%
vivid
Lightness
52%
balanced
Brightness
87%
HSV value
Perceived
39%
weighted brightness
Luminance
0.0973
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.13:1
Closest name
Blue Violet
ΔE2000 5.5
Where it sits
Hue261° of 360°
Saturation74%
Lightness52%
Temperature
Warm ← → Cool72% 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#6728df
RGBrgb(103, 40, 223)
HSLhsl(261, 74%, 52%)
CMYKcmyk(54%, 82%, 0%, 13%)
LABlab(37.4 65.8 -81.2)
LCHlch(37.4 104.5 309.0)
OKLCHoklch(0.490 0.247 289.2)
Decimal6760671
Display P3color(display-p3 0.404 0.157 0.875)

Copy-ready code

/* CSS */
color: #6728df;
background-color: #6728df;
/* Tailwind (arbitrary) */
class="text-[#6728df] bg-[#6728df]"
/* SCSS */
$brand: #6728df;
/* SwiftUI */
Color(red: 0.404, green: 0.157, blue: 0.875)
/* Android */
Color.parseColor("#6728df")
/* Flutter */
Color(0xFF6728DF)
/* Python / OpenCV (BGR) */
(223, 40, 103)

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 #6728df · 7.13:1
Use #ffffffAAA at every size.
Aa
White text · 7.13:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.95:1
AA fail · AA large fail · AAA fail
Reading the other direction: #6728df as text scores 7.13:1 on white and 2.95:1 on black.

Accessibility — WCAG contrast

Aa
#6728df on white: 7.13:1
AA ✓ pass · AA-large · AAA
Aa
#6728df on black: 2.95:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005BE4
deuteranopia · #0053DC
tritanopia · #366086

Color scale — 50 to 950

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

#F6F3FC
#EDE7F9
#D7C8F3
#BA9DF0
#986CE9
#753CE2
#6728df
#4F1AB2
#3F158E
#301367
#1E0C40
Base = 600Lightest = 50 · #F6F3FCDarkest = 950 · #1E0C40
:root {
  --brand-50: #F6F3FC;
  --brand-100: #EDE7F9;
  --brand-200: #D7C8F3;
  --brand-300: #BA9DF0;
  --brand-400: #986CE9;
  --brand-500: #753CE2;
  --brand-600: #6728df;
  --brand-700: #4F1AB2;
  --brand-800: #3F158E;
  --brand-900: #301367;
  --brand-950: #1E0C40;
  --brand: #6728df;
  --brand-ink: #ffffff;
}

Colors that work with #6728df

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#CFC0ED
Hairlines and dividers
Muted text#664B9B
Captions on the surface
Accent#A7B616
Second voice, not a rival
Dark variant#31116F
Hover, pressed, headers
Light variant#EFE9FC
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 #6728df

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
  • Text on black or near-black surfaces
  • 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#A0DF28
Analogous left#2844DF
Analogous right#C328DF
Split-complement 1#DFC328
Split-complement 2#44DF28
Triadic 1#DF6728
Triadic 2#28DF67
Tetradic#DF2844

RGB percentages

Red40.4%
Green15.7%
Blue87.5%

CMYK percentages

Cyan53.8%
Magenta82.1%
Yellow0.0%
Key (black)12.5%

Color previews

#6728df text on a black background

contrast 2.95:1

Card sample

#6728df text on a white background

contrast 7.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #6728df;
Background color
Panel with #6728df background
background-color: #6728df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #6728df;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(103, 40, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(103, 40, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6728df;
background: linear-gradient(135deg, #6728df, #DF28DD);

Monochromatic scale

Palettes built from #6728df

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.

#6728df 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.

#6728df, answered

What color is #6728df?

#6728df is a balanced vivid violet, closest to Blue Violet (ΔE2000 5.5). It sits at 261° on the hue wheel with 74% saturation and 52% lightness, which reads as cool.

What is the RGB value of #6728df?

rgb(103, 40, 223) — 103 red, 40 green and 223 blue out of 255, or 40.4% / 15.7% / 87.5% by channel.

Is #6728df a light or a dark color?

It is a dark color. Relative luminance is 0.0973 and perceived brightness is 39%, so white text on it reaches 7.13:1.

Should I use black or white text on #6728df?

White. It scores 7.13:1 against #6728df, versus 2.95:1 for black — AAA at any size.

What is the complementary color of #6728df?

#A0DF28 sits directly opposite on the wheel. Softer options are the split-complements #DFC328 and #44DF28, which give the same contrast with far less vibration.

What colors go well with #6728df?

For interface work: #F6F4FA as the surface, #CFC0ED for borders, #664B9B for secondary text, #A7B616 as an accent and #31116F for hover and pressed states. For a palette, the analogous pair #2844DF and #C328DF stays calm, while #A0DF28 is the loudest partner.

What is #6728df in CMYK for printing?

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

Is #6728df warm or cool?

Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AA28DF; nudged cooler, #262AE2.

Work with #6728df in the Color Lab