Skip to content

#7b5af5

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

RGB
123, 90, 245
HSL
253°, 89%, 66%
CMYK
50, 63, 0, 4
Luminance
0.1812

At a glance

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

Hex
#7b5af5
Hue
253°
blue
Saturation
89%
electric
Lightness
66%
light
Brightness
96%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1812
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
4.62:1
Closest name
Medium Slate Blue
ΔE2000 3.9
Where it sits
Hue253° of 360°
Saturation89%
Lightness66%
Temperature
Warm ← → Cool76% 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#7b5af5
RGBrgb(123, 90, 245)
HSLhsl(253, 89%, 66%)
CMYKcmyk(50%, 63%, 0%, 4%)
LABlab(49.6 51.0 -73.4)
LCHlch(49.6 89.4 304.8)
OKLCHoklch(0.588 0.220 287.4)
Decimal8084213
Display P3color(display-p3 0.482 0.353 0.961)

Copy-ready code

/* CSS */
color: #7b5af5;
background-color: #7b5af5;
/* Tailwind (arbitrary) */
class="text-[#7b5af5] bg-[#7b5af5]"
/* SCSS */
$brand: #7b5af5;
/* SwiftUI */
Color(red: 0.482, green: 0.353, blue: 0.961)
/* Android */
Color.parseColor("#7b5af5")
/* Flutter */
Color(0xFF7B5AF5)
/* Python / OpenCV (BGR) */
(245, 90, 123)

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

Accessibility — WCAG contrast

Aa
#7b5af5 on white: 4.54:1
AA ✓ pass · AA-large · AAA
Aa
#7b5af5 on black: 4.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007AFA
deuteranopia · #0072F2
tritanopia · #4F80A0

Color scale — 50 to 950

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

#F4F2FD
#EAE5FB
#CFC4F8
#AA95F9
#7b5af5
#562BF2
#3C0EE7
#320CC0
#28099A
#210B6F
#140745
Base = 400Lightest = 50 · #F4F2FDDarkest = 950 · #140745
:root {
  --brand-50: #F4F2FD;
  --brand-100: #EAE5FB;
  --brand-200: #CFC4F8;
  --brand-300: #AA95F9;
  --brand-400: #7b5af5;
  --brand-500: #562BF2;
  --brand-600: #3C0EE7;
  --brand-700: #320CC0;
  --brand-800: #28099A;
  --brand-900: #210B6F;
  --brand-950: #140745;
  --brand: #7b5af5;
  --brand-ink: #000000;
}

Colors that work with #7b5af5

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#F6F4FA
Tinted page background
Border#C9C0ED
Hairlines and dividers
Muted text#5C4B9B
Captions on the surface
Accent#C5BE07
Second voice, not a rival
Dark variant#1F0778
Hover, pressed, headers
Light variant#ECE7FE
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 #7b5af5

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

Works well for
  • Body text and links 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
  • 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#D4F55A
Analogous left#5A86F5
Analogous right#C95AF5
Split-complement 1#F5C95A
Split-complement 2#86F55A
Triadic 1#F57B5A
Triadic 2#5AF57B
Tetradic#F55A86

RGB percentages

Red48.2%
Green35.3%
Blue96.1%

CMYK percentages

Cyan49.8%
Magenta63.3%
Yellow0.0%
Key (black)3.9%

Color previews

#7b5af5 text on a black background

contrast 4.62:1

Card sample

#7b5af5 text on a white background

contrast 4.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(123, 90, 245, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(123, 90, 245, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7b5af5;
background: linear-gradient(135deg, #7b5af5, #E25AF5);

Monochromatic scale

Palettes built from #7b5af5

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.

#7b5af5 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.

#7b5af5, answered

What color is #7b5af5?

#7b5af5 is a light electric blue, closest to Medium Slate Blue (ΔE2000 3.9). It sits at 253° on the hue wheel with 89% saturation and 66% lightness, which reads as cool.

What is the RGB value of #7b5af5?

rgb(123, 90, 245) — 123 red, 90 green and 245 blue out of 255, or 48.2% / 35.3% / 96.1% by channel.

Is #7b5af5 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1812 and perceived brightness is 50%, so black text on it reaches 4.62:1.

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

Black. It scores 4.62:1 against #7b5af5, versus 4.54:1 for white — AA at any size.

What is the complementary color of #7b5af5?

#D4F55A sits directly opposite on the wheel. Softer options are the split-complements #F5C95A and #86F55A, which give the same contrast with far less vibration.

What colors go well with #7b5af5?

For interface work: #F6F4FA as the surface, #C9C0ED for borders, #5C4B9B for secondary text, #C5BE07 as an accent and #1F0778 for hover and pressed states. For a palette, the analogous pair #5A86F5 and #C95AF5 stays calm, while #D4F55A is the loudest partner.

What is #7b5af5 in CMYK for printing?

cmyk(50%, 63%, 0%, 4%). 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 #7b5af5 warm or cool?

Cool — it scores 76 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B45AF5; nudged cooler, #5871F7.

Work with #7b5af5 in the Color Lab