Skip to content

#8d79eb

a light, vivid blue · cool · closest name: Medium Purple

RGB
141, 121, 235
HSL
251°, 74%, 70%
CMYK
40, 49, 0, 8
Luminance
0.2534

At a glance

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

Hex
#8d79eb
Hue
251°
blue
Saturation
74%
vivid
Lightness
70%
light
Brightness
92%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2534
WCAG relative
Temperature
Cool
78/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
6.07:1
Closest name
Medium Purple
ΔE2000 4.2
Where it sits
Hue251° of 360°
Saturation74%
Lightness70%
Temperature
Warm ← → Cool78% 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#8d79eb
RGBrgb(141, 121, 235)
HSLhsl(251, 74%, 70%)
CMYKcmyk(40%, 49%, 0%, 8%)
LABlab(57.4 34.4 -55.2)
LCHlch(57.4 65.0 301.9)
OKLCHoklch(0.647 0.165 289.0)
Decimal9271787
Display P3color(display-p3 0.553 0.475 0.922)

Copy-ready code

/* CSS */
color: #8d79eb;
background-color: #8d79eb;
/* Tailwind (arbitrary) */
class="text-[#8d79eb] bg-[#8d79eb]"
/* SCSS */
$brand: #8d79eb;
/* SwiftUI */
Color(red: 0.553, green: 0.475, blue: 0.922)
/* Android */
Color.parseColor("#8d79eb")
/* Flutter */
Color(0xFF8D79EB)
/* Python / OpenCV (BGR) */
(235, 121, 141)

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

Accessibility — WCAG contrast

Aa
#8d79eb on white: 3.46:1
AA ✗ fail · AA-large · AAA
Aa
#8d79eb on black: 6.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4C8CEF
deuteranopia · #4C87E8
tritanopia · #7390A7

Color scale — 50 to 950

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

#F4F3FC
#EAE7F9
#D0C8F3
#AC9DF0
#8d79eb
#593CE2
#4020D5
#351BB1
#2A158E
#221467
#150C40
Base = 400Lightest = 50 · #F4F3FCDarkest = 950 · #150C40
:root {
  --brand-50: #F4F3FC;
  --brand-100: #EAE7F9;
  --brand-200: #D0C8F3;
  --brand-300: #AC9DF0;
  --brand-400: #8d79eb;
  --brand-500: #593CE2;
  --brand-600: #4020D5;
  --brand-700: #351BB1;
  --brand-800: #2A158E;
  --brand-900: #221467;
  --brand-950: #150C40;
  --brand: #8d79eb;
  --brand-ink: #000000;
}

Colors that work with #8d79eb

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#C8C0ED
Hairlines and dividers
Muted text#594B9B
Captions on the surface
Accent#B5AA17
Second voice, not a rival
Dark variant#21116F
Hover, pressed, headers
Light variant#ECE9FC
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 #8d79eb

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#D7EB79
Analogous left#799EEB
Analogous right#C679EB
Split-complement 1#EBC679
Split-complement 2#9EEB79
Triadic 1#EB8D79
Triadic 2#79EB8D
Tetradic#EB799E

RGB percentages

Red55.3%
Green47.5%
Blue92.2%

CMYK percentages

Cyan40.0%
Magenta48.5%
Yellow0.0%
Key (black)7.8%

Color previews

#8d79eb text on a black background

contrast 6.07:1

Card sample

#8d79eb text on a white background

contrast 3.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8d79eb;
Background color
Panel with #8d79eb background
background-color: #8d79eb;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(141, 121, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(141, 121, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8d79eb;
background: linear-gradient(135deg, #8d79eb, #D979EB);

Monochromatic scale

Palettes built from #8d79eb

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.

#8d79eb 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

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

#8d79eb, answered

What color is #8d79eb?

#8d79eb is a light vivid blue, closest to Medium Purple (ΔE2000 4.2). It sits at 251° on the hue wheel with 74% saturation and 70% lightness, which reads as cool.

What is the RGB value of #8d79eb?

rgb(141, 121, 235) — 141 red, 121 green and 235 blue out of 255, or 55.3% / 47.5% / 92.2% by channel.

Is #8d79eb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2534 and perceived brightness is 57%, so black text on it reaches 6.07:1.

Should I use black or white text on #8d79eb?

Black. It scores 6.07:1 against #8d79eb, versus 3.46:1 for white — AA at any size.

What is the complementary color of #8d79eb?

#D7EB79 sits directly opposite on the wheel. Softer options are the split-complements #EBC679 and #9EEB79, which give the same contrast with far less vibration.

What colors go well with #8d79eb?

For interface work: #F5F4FA as the surface, #C8C0ED for borders, #594B9B for secondary text, #B5AA17 as an accent and #21116F for hover and pressed states. For a palette, the analogous pair #799EEB and #C679EB stays calm, while #D7EB79 is the loudest partner.

What is #8d79eb in CMYK for printing?

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

Is #8d79eb warm or cool?

Cool — it scores 78 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B779EB; nudged cooler, #778EED.

Work with #8d79eb in the Color Lab