Skip to content

#640df9

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

RGB
100, 13, 249
HSL
262°, 95%, 51%
CMYK
60, 95, 0, 2
Luminance
0.0984

At a glance

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

Hex
#640df9
Hue
262°
violet
Saturation
95%
electric
Lightness
51%
balanced
Brightness
98%
HSV value
Perceived
40%
weighted brightness
Luminance
0.0984
WCAG relative
Temperature
Cool
71/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.08:1
Closest name
Blue
ΔE2000 5.7
Where it sits
Hue262° of 360°
Saturation95%
Lightness51%
Temperature
Warm ← → Cool71% 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#640df9
RGBrgb(100, 13, 249)
HSLhsl(262, 95%, 51%)
CMYKcmyk(60%, 95%, 0%, 2%)
LABlab(37.5 78.5 -95.6)
LCHlch(37.5 123.7 309.4)
OKLCHoklch(0.499 0.285 285.3)
Decimal6557177
Display P3color(display-p3 0.392 0.051 0.976)

Copy-ready code

/* CSS */
color: #640df9;
background-color: #640df9;
/* Tailwind (arbitrary) */
class="text-[#640df9] bg-[#640df9]"
/* SCSS */
$brand: #640df9;
/* SwiftUI */
Color(red: 0.392, green: 0.051, blue: 0.976)
/* Android */
Color.parseColor("#640df9")
/* Flutter */
Color(0xFF640DF9)
/* Python / OpenCV (BGR) */
(249, 13, 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 #640df9 · 7.08:1
Use #ffffffAAA at every size.
Aa
White text · 7.08: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: #640df9 as text scores 7.08:1 on white and 2.97:1 on black.

Accessibility — WCAG contrast

Aa
#640df9 on white: 7.08:1
AA ✓ pass · AA-large · AAA
Aa
#640df9 on black: 2.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005EFF
deuteranopia · #0051F5
tritanopia · #006693

Color scale — 50 to 950

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

#F6F1FD
#EDE4FC
#D6C2FA
#B991FC
#965BFB
#7324FA
#640df9
#4C05C7
#3D049F
#2F0873
#1D0548
Base = 600Lightest = 50 · #F6F1FDDarkest = 950 · #1D0548
:root {
  --brand-50: #F6F1FD;
  --brand-100: #EDE4FC;
  --brand-200: #D6C2FA;
  --brand-300: #B991FC;
  --brand-400: #965BFB;
  --brand-500: #7324FA;
  --brand-600: #640df9;
  --brand-700: #4C05C7;
  --brand-800: #3D049F;
  --brand-900: #2F0873;
  --brand-950: #1D0548;
  --brand: #640df9;
  --brand-ink: #ffffff;
}

Colors that work with #640df9

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#D0C0ED
Hairlines and dividers
Muted text#684B9B
Captions on the surface
Accent#B3CB01
Second voice, not a rival
Dark variant#30037C
Hover, pressed, headers
Light variant#EFE6FE
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 #640df9

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#A2F90D
Analogous left#0D2CF9
Analogous right#DA0DF9
Split-complement 1#F9DA0D
Split-complement 2#2CF90D
Triadic 1#F9640D
Triadic 2#0DF964
Tetradic#F90D2C

RGB percentages

Red39.2%
Green5.1%
Blue97.6%

CMYK percentages

Cyan59.8%
Magenta94.8%
Yellow0.0%
Key (black)2.4%

Color previews

#640df9 text on a black background

contrast 2.97:1

Card sample

#640df9 text on a white background

contrast 7.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #640df9;
Background color
Panel with #640df9 background
background-color: #640df9;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #640df9;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(100, 13, 249, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(100, 13, 249, 0.45);
Border & gradient
Gradient panel
border: 3px solid #640df9;
background: linear-gradient(135deg, #640df9, #F90DF1);

Monochromatic scale

Palettes built from #640df9

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.

#640df9 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.

#640df9, answered

What color is #640df9?

#640df9 is a balanced electric violet, closest to Blue (ΔE2000 5.7). It sits at 262° on the hue wheel with 95% saturation and 51% lightness, which reads as cool.

What is the RGB value of #640df9?

rgb(100, 13, 249) — 100 red, 13 green and 249 blue out of 255, or 39.2% / 5.1% / 97.6% by channel.

Is #640df9 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.08:1.

Should I use black or white text on #640df9?

White. It scores 7.08:1 against #640df9, versus 2.97:1 for black — AAA at any size.

What is the complementary color of #640df9?

#A2F90D sits directly opposite on the wheel. Softer options are the split-complements #F9DA0D and #2CF90D, which give the same contrast with far less vibration.

What colors go well with #640df9?

For interface work: #F7F4FA as the surface, #D0C0ED for borders, #684B9B for secondary text, #B3CB01 as an accent and #30037C for hover and pressed states. For a palette, the analogous pair #0D2CF9 and #DA0DF9 stays calm, while #A2F90D is the loudest partner.

What is #640df9 in CMYK for printing?

cmyk(60%, 95%, 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 #640df9 warm or cool?

Cool — it scores 71 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BB0DF9; nudged cooler, #0B0BFC.

Work with #640df9 in the Color Lab