Skip to content

#6c4dfb

a balanced, electric blue · cool · closest name: Slate Blue

RGB
108, 77, 251
HSL
251°, 96%, 64%
CMYK
57, 69, 0, 2
Luminance
0.1546

At a glance

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

Hex
#6c4dfb
Hue
251°
blue
Saturation
96%
electric
Lightness
64%
balanced
Brightness
98%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1546
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Electric
Best ink
White
5.13:1
Closest name
Slate Blue
ΔE2000 6.5
Where it sits
Hue251° of 360°
Saturation96%
Lightness64%
Temperature
Warm ← → Cool77% 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#6c4dfb
RGBrgb(108, 77, 251)
HSLhsl(251, 96%, 64%)
CMYKcmyk(57%, 69%, 0%, 2%)
LABlab(46.3 57.2 -82.3)
LCHlch(46.3 100.3 304.8)
OKLCHoklch(0.562 0.244 283.4)
Decimal7097851
Display P3color(display-p3 0.424 0.302 0.984)

Copy-ready code

/* CSS */
color: #6c4dfb;
background-color: #6c4dfb;
/* Tailwind (arbitrary) */
class="text-[#6c4dfb] bg-[#6c4dfb]"
/* SCSS */
$brand: #6c4dfb;
/* SwiftUI */
Color(red: 0.424, green: 0.302, blue: 0.984)
/* Android */
Color.parseColor("#6c4dfb")
/* Flutter */
Color(0xFF6C4DFB)
/* Python / OpenCV (BGR) */
(251, 77, 108)

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 #6c4dfb · 5.13:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.13:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.09:1
AA fail · AA large pass · AAA fail
Reading the other direction: #6c4dfb as text scores 5.13:1 on white and 4.09:1 on black.

Accessibility — WCAG contrast

Aa
#6c4dfb on white: 5.13:1
AA ✓ pass · AA-large · AAA
Aa
#6c4dfb on black: 4.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0073FF
deuteranopia · #0068F8
tritanopia · #1A7B9F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #6c4dfb is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F4F1FD
#E8E4FC
#CCC1FA
#A491FD
#6c4dfb
#4A24FA
#2F05EF
#2704C8
#1F04A0
#1B0773
#110548
Base = 400Lightest = 50 · #F4F1FDDarkest = 950 · #110548
:root {
  --brand-50: #F4F1FD;
  --brand-100: #E8E4FC;
  --brand-200: #CCC1FA;
  --brand-300: #A491FD;
  --brand-400: #6c4dfb;
  --brand-500: #4A24FA;
  --brand-600: #2F05EF;
  --brand-700: #2704C8;
  --brand-800: #1F04A0;
  --brand-900: #1B0773;
  --brand-950: #110548;
  --brand: #6c4dfb;
  --brand-ink: #ffffff;
}

Colors that work with #6c4dfb

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#F5F4FA
Tinted page background
Border#C8C0ED
Hairlines and dividers
Muted text#594B9B
Captions on the surface
Accent#CCBD00
Second voice, not a rival
Dark variant#19037D
Hover, pressed, headers
Light variant#EAE6FE
Selected rows, tints
Dark surface#171424
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 #6c4dfb

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#DCFB4D
Analogous left#4D85FB
Analogous right#C34DFB
Split-complement 1#FBC34D
Split-complement 2#85FB4D
Triadic 1#FB6C4D
Triadic 2#4DFB6C
Tetradic#FB4D85

RGB percentages

Red42.4%
Green30.2%
Blue98.4%

CMYK percentages

Cyan57.0%
Magenta69.3%
Yellow0.0%
Key (black)1.6%

Color previews

#6c4dfb text on a black background

contrast 4.09:1

Card sample

#6c4dfb text on a white background

contrast 5.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #6c4dfb;
Background color
Panel with #6c4dfb background
background-color: #6c4dfb;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #6c4dfb;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(108, 77, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(108, 77, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6c4dfb;
background: linear-gradient(135deg, #6c4dfb, #E04DFB);

Monochromatic scale

Palettes built from #6c4dfb

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.

#6c4dfb in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#6c4dfb, answered

What color is #6c4dfb?

#6c4dfb is a balanced electric blue, closest to Slate Blue (ΔE2000 6.5). It sits at 251° on the hue wheel with 96% saturation and 64% lightness, which reads as cool.

What is the RGB value of #6c4dfb?

rgb(108, 77, 251) — 108 red, 77 green and 251 blue out of 255, or 42.4% / 30.2% / 98.4% by channel.

Is #6c4dfb a light or a dark color?

It is a dark color. Relative luminance is 0.1546 and perceived brightness is 47%, so white text on it reaches 5.13:1.

Should I use black or white text on #6c4dfb?

White. It scores 5.13:1 against #6c4dfb, versus 4.09:1 for black — AA at any size.

What is the complementary color of #6c4dfb?

#DCFB4D sits directly opposite on the wheel. Softer options are the split-complements #FBC34D and #85FB4D, which give the same contrast with far less vibration.

What colors go well with #6c4dfb?

For interface work: #F5F4FA as the surface, #C8C0ED for borders, #594B9B for secondary text, #CCBD00 as an accent and #19037D for hover and pressed states. For a palette, the analogous pair #4D85FB and #C34DFB stays calm, while #DCFB4D is the loudest partner.

What is #6c4dfb in CMYK for printing?

cmyk(57%, 69%, 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 #6c4dfb warm or cool?

Cool — it scores 77 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AC4DFB; nudged cooler, #4B6BFD.

Work with #6c4dfb in the Color Lab