Skip to content

#817eb2

a balanced, soft blue · cool · closest name: Medium Purple

RGB
129, 126, 178
HSL
244°, 25%, 60%
CMYK
28, 29, 0, 30
Luminance
0.2280

At a glance

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

Hex
#817eb2
Hue
244°
blue
Saturation
25%
soft
Lightness
60%
balanced
Brightness
70%
HSV value
Perceived
52%
weighted brightness
Luminance
0.2280
WCAG relative
Temperature
Cool
73/100 cool
Color family
Blue
Tone
Soft
Best ink
Black
5.56:1
Closest name
Medium Purple
ΔE2000 10.2
Where it sits
Hue244° of 360°
Saturation25%
Lightness60%
Temperature
Warm ← → Cool73% 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#817eb2
RGBrgb(129, 126, 178)
HSLhsl(244, 25%, 60%)
CMYKcmyk(28%, 29%, 0%, 30%)
LABlab(54.9 12.9 -27.0)
LCHlch(54.9 30.0 295.6)
OKLCHoklch(0.616 0.078 286.5)
Decimal8486578
Display P3color(display-p3 0.506 0.494 0.698)

Copy-ready code

/* CSS */
color: #817eb2;
background-color: #817eb2;
/* Tailwind (arbitrary) */
class="text-[#817eb2] bg-[#817eb2]"
/* SCSS */
$brand: #817eb2;
/* SwiftUI */
Color(red: 0.506, green: 0.494, blue: 0.698)
/* Android */
Color.parseColor("#817eb2")
/* Flutter */
Color(0xFF817EB2)
/* Python / OpenCV (BGR) */
(178, 126, 129)

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

Accessibility — WCAG contrast

Aa
#817eb2 on white: 3.78:1
AA ✗ fail · AA-large · AAA
Aa
#817eb2 on black: 5.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7085B4
deuteranopia · #6F82B1
tritanopia · #768790

Color scale — 50 to 950

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

#F6F6F9
#EDEDF3
#D7D6E5
#BAB9D5
#9896C0
#817eb2
#5F5C99
#4F4C80
#3F3D66
#312F4B
#1E1D2F
Base = 500Lightest = 50 · #F6F6F9Darkest = 950 · #1E1D2F
:root {
  --brand-50: #F6F6F9;
  --brand-100: #EDEDF3;
  --brand-200: #D7D6E5;
  --brand-300: #BAB9D5;
  --brand-400: #9896C0;
  --brand-500: #817eb2;
  --brand-600: #5F5C99;
  --brand-700: #4F4C80;
  --brand-800: #3F3D66;
  --brand-900: #312F4B;
  --brand-950: #1E1D2F;
  --brand: #817eb2;
  --brand-ink: #000000;
}

Colors that work with #817eb2

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#F6F5F9
Tinted page background
Border#CDCCE0
Hairlines and dividers
Muted text#595690
Captions on the surface
Accent#847948
Second voice, not a rival
Dark variant#323050
Hover, pressed, headers
Light variant#EFEFF5
Selected rows, tints
Dark surface#161523
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 #817eb2

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
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#AFB27E
Analogous left#7E95B2
Analogous right#9B7EB2
Split-complement 1#B29B7E
Split-complement 2#95B27E
Triadic 1#B2817E
Triadic 2#7EB281
Tetradic#B27E95

RGB percentages

Red50.6%
Green49.4%
Blue69.8%

CMYK percentages

Cyan27.5%
Magenta29.2%
Yellow0.0%
Key (black)30.2%

Color previews

#817eb2 text on a black background

contrast 5.56:1

Card sample

#817eb2 text on a white background

contrast 3.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #817eb2;
Background color
Panel with #817eb2 background
background-color: #817eb2;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(129, 126, 178, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(129, 126, 178, 0.45);
Border & gradient
Gradient panel
border: 3px solid #817eb2;
background: linear-gradient(135deg, #817eb2, #A47EB2);

Monochromatic scale

Palettes built from #817eb2

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.

#817eb2 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.

#817eb2, answered

What color is #817eb2?

#817eb2 is a balanced soft blue, closest to Medium Purple (ΔE2000 10.2). It sits at 244° on the hue wheel with 25% saturation and 60% lightness, which reads as cool.

What is the RGB value of #817eb2?

rgb(129, 126, 178) — 129 red, 126 green and 178 blue out of 255, or 50.6% / 49.4% / 69.8% by channel.

Is #817eb2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2280 and perceived brightness is 52%, so black text on it reaches 5.56:1.

Should I use black or white text on #817eb2?

Black. It scores 5.56:1 against #817eb2, versus 3.78:1 for white — AA at any size.

What is the complementary color of #817eb2?

#AFB27E sits directly opposite on the wheel. Softer options are the split-complements #B29B7E and #95B27E, which give the same contrast with far less vibration.

What colors go well with #817eb2?

For interface work: #F6F5F9 as the surface, #CDCCE0 for borders, #595690 for secondary text, #847948 as an accent and #323050 for hover and pressed states. For a palette, the analogous pair #7E95B2 and #9B7EB2 stays calm, while #AFB27E is the loudest partner.

What is #817eb2 in CMYK for printing?

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

Is #817eb2 warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #947EB2; nudged cooler, #7C8DB4.

Work with #817eb2 in the Color Lab