Skip to content

#817bc9

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

RGB
129, 123, 201
HSL
245°, 42%, 64%
CMYK
36, 39, 0, 21
Luminance
0.2305

At a glance

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

Hex
#817bc9
Hue
245°
blue
Saturation
42%
soft
Lightness
64%
balanced
Brightness
79%
HSV value
Perceived
53%
weighted brightness
Luminance
0.2305
WCAG relative
Temperature
Cool
81/100 cool
Color family
Blue
Tone
Soft
Best ink
Black
5.61:1
Closest name
Medium Purple
ΔE2000 6.3
Where it sits
Hue245° of 360°
Saturation42%
Lightness64%
Temperature
Warm ← → Cool81% 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#817bc9
RGBrgb(129, 123, 201)
HSLhsl(245, 42%, 64%)
CMYKcmyk(36%, 39%, 0%, 21%)
LABlab(55.1 20.8 -39.8)
LCHlch(55.1 44.9 297.6)
OKLCHoklch(0.621 0.116 286.0)
Decimal8485833
Display P3color(display-p3 0.506 0.482 0.788)

Copy-ready code

/* CSS */
color: #817bc9;
background-color: #817bc9;
/* Tailwind (arbitrary) */
class="text-[#817bc9] bg-[#817bc9]"
/* SCSS */
$brand: #817bc9;
/* SwiftUI */
Color(red: 0.506, green: 0.482, blue: 0.788)
/* Android */
Color.parseColor("#817bc9")
/* Flutter */
Color(0xFF817BC9)
/* Python / OpenCV (BGR) */
(201, 123, 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 #817bc9 · 5.61:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.74:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.61:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #817bc9 as text scores 3.74:1 on white and 5.61:1 on black.

Accessibility — WCAG contrast

Aa
#817bc9 on white: 3.74:1
AA ✗ fail · AA-large · AAA
Aa
#817bc9 on black: 5.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6286CC
deuteranopia · #6082C7
tritanopia · #6E8A98

Color scale — 50 to 950

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

#F5F5FA
#EBEBF5
#D4D2EA
#B3AFDE
#817bc9
#6760BE
#4F47AE
#423B91
#352F74
#292655
#1A1835
Base = 400Lightest = 50 · #F5F5FADarkest = 950 · #1A1835
:root {
  --brand-50: #F5F5FA;
  --brand-100: #EBEBF5;
  --brand-200: #D4D2EA;
  --brand-300: #B3AFDE;
  --brand-400: #817bc9;
  --brand-500: #6760BE;
  --brand-600: #4F47AE;
  --brand-700: #423B91;
  --brand-800: #352F74;
  --brand-900: #292655;
  --brand-950: #1A1835;
  --brand: #817bc9;
  --brand-ink: #000000;
}

Colors that work with #817bc9

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#C8C5E7
Hairlines and dividers
Muted text#514B9B
Captions on the surface
Accent#958537
Second voice, not a rival
Dark variant#29255A
Hover, pressed, headers
Light variant#EEEDF8
Selected rows, tints
Dark surface#151424
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 #817bc9

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#C3C97B
Analogous left#7B9CC9
Analogous right#A87BC9
Split-complement 1#C9A87B
Split-complement 2#9CC97B
Triadic 1#C9817B
Triadic 2#7BC981
Tetradic#C97B9C

RGB percentages

Red50.6%
Green48.2%
Blue78.8%

CMYK percentages

Cyan35.8%
Magenta38.8%
Yellow0.0%
Key (black)21.2%

Color previews

#817bc9 text on a black background

contrast 5.61:1

Card sample

#817bc9 text on a white background

contrast 3.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #817bc9

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.

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

#817bc9, answered

What color is #817bc9?

#817bc9 is a balanced soft blue, closest to Medium Purple (ΔE2000 6.3). It sits at 245° on the hue wheel with 42% saturation and 64% lightness, which reads as cool.

What is the RGB value of #817bc9?

rgb(129, 123, 201) — 129 red, 123 green and 201 blue out of 255, or 50.6% / 48.2% / 78.8% by channel.

Is #817bc9 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2305 and perceived brightness is 53%, so black text on it reaches 5.61:1.

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

Black. It scores 5.61:1 against #817bc9, versus 3.74:1 for white — AA at any size.

What is the complementary color of #817bc9?

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

What colors go well with #817bc9?

For interface work: #F5F4FA as the surface, #C8C5E7 for borders, #514B9B for secondary text, #958537 as an accent and #29255A for hover and pressed states. For a palette, the analogous pair #7B9CC9 and #A87BC9 stays calm, while #C3C97B is the loudest partner.

What is #817bc9 in CMYK for printing?

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

Is #817bc9 warm or cool?

Cool — it scores 81 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9E7BC9; nudged cooler, #7991CB.

Work with #817bc9 in the Color Lab