Skip to content

#7f6bfd

a light, electric blue · cool · closest name: Medium Slate Blue

RGB
127, 107, 253
HSL
248°, 97%, 71%
CMYK
50, 58, 0, 1
Luminance
0.2212

At a glance

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

Hex
#7f6bfd
Hue
248°
blue
Saturation
97%
electric
Lightness
71%
light
Brightness
99%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2212
WCAG relative
Temperature
Cool
79/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.42:1
Closest name
Medium Slate Blue
ΔE2000 2.3
Where it sits
Hue248° of 360°
Saturation97%
Lightness71%
Temperature
Warm ← → Cool79% 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#7f6bfd
RGBrgb(127, 107, 253)
HSLhsl(248, 97%, 71%)
CMYKcmyk(50%, 58%, 0%, 1%)
LABlab(54.1 44.5 -70.5)
LCHlch(54.1 83.4 302.3)
OKLCHoklch(0.623 0.209 284.8)
Decimal8350717
Display P3color(display-p3 0.498 0.420 0.992)

Copy-ready code

/* CSS */
color: #7f6bfd;
background-color: #7f6bfd;
/* Tailwind (arbitrary) */
class="text-[#7f6bfd] bg-[#7f6bfd]"
/* SCSS */
$brand: #7f6bfd;
/* SwiftUI */
Color(red: 0.498, green: 0.420, blue: 0.992)
/* Android */
Color.parseColor("#7f6bfd")
/* Flutter */
Color(0xFF7F6BFD)
/* Python / OpenCV (BGR) */
(253, 107, 127)

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

Accessibility — WCAG contrast

Aa
#7f6bfd on white: 3.87:1
AA ✗ fail · AA-large · AAA
Aa
#7f6bfd on black: 5.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0086FF
deuteranopia · #007DFA
tritanopia · #508DAA

Color scale — 50 to 950

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

#F3F1FD
#E7E4FC
#C9C1FB
#9F90FD
#7f6bfd
#3F22FC
#2403F1
#1E03C9
#1802A1
#150674
#0D0448
Base = 400Lightest = 50 · #F3F1FDDarkest = 950 · #0D0448
:root {
  --brand-50: #F3F1FD;
  --brand-100: #E7E4FC;
  --brand-200: #C9C1FB;
  --brand-300: #9F90FD;
  --brand-400: #7f6bfd;
  --brand-500: #3F22FC;
  --brand-600: #2403F1;
  --brand-700: #1E03C9;
  --brand-800: #1802A1;
  --brand-900: #150674;
  --brand-950: #0D0448;
  --brand: #7f6bfd;
  --brand-ink: #000000;
}

Colors that work with #7f6bfd

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F5F4FA
Tinted page background
Border#C6C0ED
Hairlines and dividers
Muted text#564B9B
Captions on the surface
Accent#CCB500
Second voice, not a rival
Dark variant#13027E
Hover, pressed, headers
Light variant#E9E6FF
Selected rows, tints
Dark surface#161424
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 #7f6bfd

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • 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#E9FD6B
Analogous left#6BA0FD
Analogous right#C86BFD
Split-complement 1#FDC86B
Split-complement 2#A0FD6B
Triadic 1#FD7F6B
Triadic 2#6BFD7F
Tetradic#FD6BA0

RGB percentages

Red49.8%
Green42.0%
Blue99.2%

CMYK percentages

Cyan49.8%
Magenta57.7%
Yellow0.0%
Key (black)0.8%

Color previews

#7f6bfd text on a black background

contrast 5.42:1

Card sample

#7f6bfd text on a white background

contrast 3.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7f6bfd;
Background color
Panel with #7f6bfd background
background-color: #7f6bfd;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #7f6bfd;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(127, 107, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 107, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7f6bfd;
background: linear-gradient(135deg, #7f6bfd, #E06BFD);

Monochromatic scale

Palettes built from #7f6bfd

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.

#7f6bfd 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
SurfacesBadgesHighlightsEmpty states
Print note

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

#7f6bfd, answered

What color is #7f6bfd?

#7f6bfd is a light electric blue, closest to Medium Slate Blue (ΔE2000 2.3). It sits at 248° on the hue wheel with 97% saturation and 71% lightness, which reads as cool.

What is the RGB value of #7f6bfd?

rgb(127, 107, 253) — 127 red, 107 green and 253 blue out of 255, or 49.8% / 42% / 99.2% by channel.

Is #7f6bfd a light or a dark color?

It is a mid-tone. Relative luminance is 0.2212 and perceived brightness is 54%, so black text on it reaches 5.42:1.

Should I use black or white text on #7f6bfd?

Black. It scores 5.42:1 against #7f6bfd, versus 3.87:1 for white — AA at any size.

What is the complementary color of #7f6bfd?

#E9FD6B sits directly opposite on the wheel. Softer options are the split-complements #FDC86B and #A0FD6B, which give the same contrast with far less vibration.

What colors go well with #7f6bfd?

For interface work: #F5F4FA as the surface, #C6C0ED for borders, #564B9B for secondary text, #CCB500 as an accent and #13027E for hover and pressed states. For a palette, the analogous pair #6BA0FD and #C86BFD stays calm, while #E9FD6B is the loudest partner.

What is #7f6bfd in CMYK for printing?

cmyk(50%, 58%, 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 #7f6bfd warm or cool?

Cool — it scores 79 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B56BFD; nudged cooler, #6A8BFE.

Work with #7f6bfd in the Color Lab