Skip to content

#7a5fdf

a balanced, vivid blue · cool · closest name: Medium Slate Blue

RGB
122, 95, 223
HSL
253°, 67%, 62%
CMYK
45, 57, 0, 13
Luminance
0.1765

At a glance

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

Hex
#7a5fdf
Hue
253°
blue
Saturation
67%
vivid
Lightness
62%
balanced
Brightness
87%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1765
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
4.64:1
Closest name
Medium Slate Blue
ΔE2000 3.6
Where it sits
Hue253° of 360°
Saturation67%
Lightness62%
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#7a5fdf
RGBrgb(122, 95, 223)
HSLhsl(253, 67%, 62%)
CMYKcmyk(45%, 57%, 0%, 13%)
LABlab(49.1 41.7 -62.0)
LCHlch(49.1 74.7 304.0)
OKLCHoklch(0.578 0.187 288.9)
Decimal8019935
Display P3color(display-p3 0.478 0.373 0.875)

Copy-ready code

/* CSS */
color: #7a5fdf;
background-color: #7a5fdf;
/* Tailwind (arbitrary) */
class="text-[#7a5fdf] bg-[#7a5fdf]"
/* SCSS */
$brand: #7a5fdf;
/* SwiftUI */
Color(red: 0.478, green: 0.373, blue: 0.875)
/* Android */
Color.parseColor("#7a5fdf")
/* Flutter */
Color(0xFF7A5FDF)
/* Python / OpenCV (BGR) */
(223, 95, 122)

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

Accessibility — WCAG contrast

Aa
#7a5fdf on white: 4.64:1
AA ✓ pass · AA-large · AAA
Aa
#7a5fdf on black: 4.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0077E3
deuteranopia · #0671DC
tritanopia · #5B7C96

Color scale — 50 to 950

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

#F5F3FB
#EBE8F8
#D3CAF1
#B1A1EC
#7a5fdf
#6444DA
#4B29CC
#3F22AA
#321B88
#281863
#190F3E
Base = 400Lightest = 50 · #F5F3FBDarkest = 950 · #190F3E
:root {
  --brand-50: #F5F3FB;
  --brand-100: #EBE8F8;
  --brand-200: #D3CAF1;
  --brand-300: #B1A1EC;
  --brand-400: #7a5fdf;
  --brand-500: #6444DA;
  --brand-600: #4B29CC;
  --brand-700: #3F22AA;
  --brand-800: #321B88;
  --brand-900: #281863;
  --brand-950: #190F3E;
  --brand: #7a5fdf;
  --brand-ink: #ffffff;
}

Colors that work with #7a5fdf

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#F6F4FA
Tinted page background
Border#C9C0ED
Hairlines and dividers
Muted text#5C4B9B
Captions on the surface
Accent#AEA91E
Second voice, not a rival
Dark variant#27156A
Hover, pressed, headers
Light variant#EDEAFB
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 #7a5fdf

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
  • 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#C4DF5F
Analogous left#5F84DF
Analogous right#BA5FDF
Split-complement 1#DFBA5F
Split-complement 2#84DF5F
Triadic 1#DF7A5F
Triadic 2#5FDF7A
Tetradic#DF5F84

RGB percentages

Red47.8%
Green37.3%
Blue87.5%

CMYK percentages

Cyan45.3%
Magenta57.4%
Yellow0.0%
Key (black)12.5%

Color previews

#7a5fdf text on a black background

contrast 4.53:1

Card sample

#7a5fdf text on a white background

contrast 4.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(122, 95, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(122, 95, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7a5fdf;
background: linear-gradient(135deg, #7a5fdf, #D05FDF);

Monochromatic scale

Palettes built from #7a5fdf

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.

#7a5fdf 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

Converts to four-color process without much drama. Proof it anyway.

#7a5fdf, answered

What color is #7a5fdf?

#7a5fdf is a balanced vivid blue, closest to Medium Slate Blue (ΔE2000 3.6). It sits at 253° on the hue wheel with 67% saturation and 62% lightness, which reads as cool.

What is the RGB value of #7a5fdf?

rgb(122, 95, 223) — 122 red, 95 green and 223 blue out of 255, or 47.8% / 37.3% / 87.5% by channel.

Is #7a5fdf a light or a dark color?

It is a dark color. Relative luminance is 0.1765 and perceived brightness is 49%, so white text on it reaches 4.64:1.

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

White. It scores 4.64:1 against #7a5fdf, versus 4.53:1 for black — AA at any size.

What is the complementary color of #7a5fdf?

#C4DF5F sits directly opposite on the wheel. Softer options are the split-complements #DFBA5F and #84DF5F, which give the same contrast with far less vibration.

What colors go well with #7a5fdf?

For interface work: #F6F4FA as the surface, #C9C0ED for borders, #5C4B9B for secondary text, #AEA91E as an accent and #27156A for hover and pressed states. For a palette, the analogous pair #5F84DF and #BA5FDF stays calm, while #C4DF5F is the loudest partner.

What is #7a5fdf in CMYK for printing?

cmyk(45%, 57%, 0%, 13%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #7a5fdf 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 #A95FDF; nudged cooler, #5D72E1.

Work with #7a5fdf in the Color Lab