Skip to content

#6402fd

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

RGB
100, 2, 253
HSL
263°, 98%, 50%
CMYK
61, 99, 0, 1
Luminance
0.0984

At a glance

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

Hex
#6402fd
Hue
263°
violet
Saturation
98%
electric
Lightness
50%
balanced
Brightness
99%
HSV value
Perceived
40%
weighted brightness
Luminance
0.0984
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.07:1
Closest name
Blue
ΔE2000 5.6
Where it sits
Hue263° of 360°
Saturation98%
Lightness50%
Temperature
Warm ← → Cool70% 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#6402fd
RGBrgb(100, 2, 253)
HSLhsl(263, 98%, 50%)
CMYKcmyk(61%, 99%, 0%, 1%)
LABlab(37.6 80.7 -97.8)
LCHlch(37.6 126.8 309.5)
OKLCHoklch(0.500 0.292 285.0)
Decimal6554365
Display P3color(display-p3 0.392 0.008 0.992)

Copy-ready code

/* CSS */
color: #6402fd;
background-color: #6402fd;
/* Tailwind (arbitrary) */
class="text-[#6402fd] bg-[#6402fd]"
/* SCSS */
$brand: #6402fd;
/* SwiftUI */
Color(red: 0.392, green: 0.008, blue: 0.992)
/* Android */
Color.parseColor("#6402fd")
/* Flutter */
Color(0xFF6402FD)
/* Python / OpenCV (BGR) */
(253, 2, 100)

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

Accessibility — WCAG contrast

Aa
#6402fd on white: 7.07:1
AA ✓ pass · AA-large · AAA
Aa
#6402fd on black: 2.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005EFF
deuteranopia · #0051F9
tritanopia · #006795

Color scale — 50 to 950

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

#F6F1FE
#EDE3FC
#D7C1FB
#BB90FE
#9958FE
#7720FD
#6402fd
#5002CA
#4001A2
#310675
#1F0449
Base = 600Lightest = 50 · #F6F1FEDarkest = 950 · #1F0449
:root {
  --brand-50: #F6F1FE;
  --brand-100: #EDE3FC;
  --brand-200: #D7C1FB;
  --brand-300: #BB90FE;
  --brand-400: #9958FE;
  --brand-500: #7720FD;
  --brand-600: #6402fd;
  --brand-700: #5002CA;
  --brand-800: #4001A2;
  --brand-900: #310675;
  --brand-950: #1F0449;
  --brand: #6402fd;
  --brand-ink: #ffffff;
}

Colors that work with #6402fd

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#D1C0ED
Hairlines and dividers
Muted text#6A4B9B
Captions on the surface
Accent#AFCC00
Second voice, not a rival
Dark variant#32017E
Hover, pressed, headers
Light variant#EFE6FF
Selected rows, tints
Dark surface#1A1424
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 #6402fd

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#9BFD02
Analogous left#021EFD
Analogous right#E102FD
Split-complement 1#FDE102
Split-complement 2#1EFD02
Triadic 1#FD6402
Triadic 2#02FD64
Tetradic#FD021E

RGB percentages

Red39.2%
Green0.8%
Blue99.2%

CMYK percentages

Cyan60.5%
Magenta99.2%
Yellow0.0%
Key (black)0.8%

Color previews

#6402fd text on a black background

contrast 2.97:1

Card sample

#6402fd text on a white background

contrast 7.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #6402fd;
Background color
Panel with #6402fd background
background-color: #6402fd;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #6402fd;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(100, 2, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(100, 2, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6402fd;
background: linear-gradient(135deg, #6402fd, #FD02EF);

Monochromatic scale

Palettes built from #6402fd

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.

#6402fd 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.

#6402fd, answered

What color is #6402fd?

#6402fd is a balanced electric violet, closest to Blue (ΔE2000 5.6). It sits at 263° on the hue wheel with 98% saturation and 50% lightness, which reads as cool.

What is the RGB value of #6402fd?

rgb(100, 2, 253) — 100 red, 2 green and 253 blue out of 255, or 39.2% / 0.8% / 99.2% by channel.

Is #6402fd a light or a dark color?

It is a dark color. Relative luminance is 0.0984 and perceived brightness is 40%, so white text on it reaches 7.07:1.

Should I use black or white text on #6402fd?

White. It scores 7.07:1 against #6402fd, versus 2.97:1 for black — AAA at any size.

What is the complementary color of #6402fd?

#9BFD02 sits directly opposite on the wheel. Softer options are the split-complements #FDE102 and #1EFD02, which give the same contrast with far less vibration.

What colors go well with #6402fd?

For interface work: #F7F4FA as the surface, #D1C0ED for borders, #6A4B9B for secondary text, #AFCC00 as an accent and #32017E for hover and pressed states. For a palette, the analogous pair #021EFD and #E102FD stays calm, while #9BFD02 is the loudest partner.

What is #6402fd in CMYK for printing?

cmyk(61%, 99%, 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 #6402fd warm or cool?

Cool — it scores 70 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C002FD; nudged cooler, #0600FF.

Work with #6402fd in the Color Lab