Skip to content

#640cfd

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

RGB
100, 12, 253
HSL
262°, 98%, 52%
CMYK
61, 95, 0, 1
Luminance
0.1006

At a glance

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

Hex
#640cfd
Hue
262°
violet
Saturation
98%
electric
Lightness
52%
balanced
Brightness
99%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1006
WCAG relative
Temperature
Cool
71/100 cool
Color family
Violet
Tone
Electric
Best ink
White
6.97:1
Closest name
Blue
ΔE2000 5.8
Where it sits
Hue262° of 360°
Saturation98%
Lightness52%
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#640cfd
RGBrgb(100, 12, 253)
HSLhsl(262, 98%, 52%)
CMYKcmyk(61%, 95%, 0%, 1%)
LABlab(38.0 79.5 -97.2)
LCHlch(38.0 125.5 309.3)
OKLCHoklch(0.503 0.289 284.8)
Decimal6556925
Display P3color(display-p3 0.392 0.047 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#640cfd on white: 6.97:1
AA ✓ pass · AA-large · AAA
Aa
#640cfd on black: 3.01:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005FFF
deuteranopia · #0052F9
tritanopia · #006895

Color scale — 50 to 950

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

#F6F1FE
#ECE3FC
#D6C1FB
#B890FE
#9458FE
#640cfd
#5A02F3
#4B02CA
#3C01A2
#2E0675
#1D0449
Base = 500Lightest = 50 · #F6F1FEDarkest = 950 · #1D0449
:root {
  --brand-50: #F6F1FE;
  --brand-100: #ECE3FC;
  --brand-200: #D6C1FB;
  --brand-300: #B890FE;
  --brand-400: #9458FE;
  --brand-500: #640cfd;
  --brand-600: #5A02F3;
  --brand-700: #4B02CA;
  --brand-800: #3C01A2;
  --brand-900: #2E0675;
  --brand-950: #1D0449;
  --brand: #640cfd;
  --brand-ink: #ffffff;
}

Colors that work with #640cfd

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#B5CC00
Second voice, not a rival
Dark variant#2F017E
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 #640cfd

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#A5FD0C
Analogous left#0C2DFD
Analogous right#DD0CFD
Split-complement 1#FDDD0C
Split-complement 2#2DFD0C
Triadic 1#FD640C
Triadic 2#0CFD64
Tetradic#FD0C2D

RGB percentages

Red39.2%
Green4.7%
Blue99.2%

CMYK percentages

Cyan60.5%
Magenta95.3%
Yellow0.0%
Key (black)0.8%

Color previews

#640cfd text on a black background

contrast 3.01:1

Card sample

#640cfd text on a white background

contrast 6.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #640cfd

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.

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

#640cfd, answered

What color is #640cfd?

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

What is the RGB value of #640cfd?

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

Is #640cfd a light or a dark color?

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

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

White. It scores 6.97:1 against #640cfd, versus 3.01:1 for black — AA at any size.

What is the complementary color of #640cfd?

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

What colors go well with #640cfd?

For interface work: #F7F4FA as the surface, #D0C0ED for borders, #684B9B for secondary text, #B5CC00 as an accent and #2F017E for hover and pressed states. For a palette, the analogous pair #0C2DFD and #DD0CFD stays calm, while #A5FD0C is the loudest partner.

What is #640cfd in CMYK for printing?

cmyk(61%, 95%, 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 #640cfd 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 #BC0CFD; nudged cooler, #0A0BFF.

Work with #640cfd in the Color Lab