Skip to content

#817dbb

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

RGB
129, 125, 187
HSL
244°, 31%, 61%
CMYK
31, 33, 0, 27
Luminance
0.2292

At a glance

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

Hex
#817dbb
Hue
244°
blue
Saturation
31%
soft
Lightness
61%
balanced
Brightness
73%
HSV value
Perceived
53%
weighted brightness
Luminance
0.2292
WCAG relative
Temperature
Cool
78/100 cool
Color family
Blue
Tone
Soft
Best ink
Black
5.58:1
Closest name
Medium Purple
ΔE2000 8.4
Where it sits
Hue244° of 360°
Saturation31%
Lightness61%
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#817dbb
RGBrgb(129, 125, 187)
HSLhsl(244, 31%, 61%)
CMYKcmyk(31%, 33%, 0%, 27%)
LABlab(55.0 15.9 -32.0)
LCHlch(55.0 35.7 296.4)
OKLCHoklch(0.618 0.093 286.3)
Decimal8486331
Display P3color(display-p3 0.506 0.490 0.733)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#817dbb on white: 3.76:1
AA ✗ fail · AA-large · AAA
Aa
#817dbb on black: 5.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6B85BE
deuteranopia · #6A82B9
tritanopia · #738893

Color scale — 50 to 950

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

#F6F5F9
#ECECF3
#D6D5E7
#B8B5D8
#9491C5
#817dbb
#5954A1
#4A4686
#3B386B
#2E2C4F
#1D1B31
Base = 500Lightest = 50 · #F6F5F9Darkest = 950 · #1D1B31
:root {
  --brand-50: #F6F5F9;
  --brand-100: #ECECF3;
  --brand-200: #D6D5E7;
  --brand-300: #B8B5D8;
  --brand-400: #9491C5;
  --brand-500: #817dbb;
  --brand-600: #5954A1;
  --brand-700: #4A4686;
  --brand-800: #3B386B;
  --brand-900: #2E2C4F;
  --brand-950: #1D1B31;
  --brand: #817dbb;
  --brand-ink: #000000;
}

Colors that work with #817dbb

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#F5F5FA
Tinted page background
Border#CBC9E3
Hairlines and dividers
Muted text#544F97
Captions on the surface
Accent#8A7D42
Second voice, not a rival
Dark variant#2E2C54
Hover, pressed, headers
Light variant#EFEEF6
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 #817dbb

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#B7BB7D
Analogous left#7D98BB
Analogous right#A07DBB
Split-complement 1#BBA07D
Split-complement 2#98BB7D
Triadic 1#BB817D
Triadic 2#7DBB81
Tetradic#BB7D98

RGB percentages

Red50.6%
Green49.0%
Blue73.3%

CMYK percentages

Cyan31.0%
Magenta33.2%
Yellow0.0%
Key (black)26.7%

Color previews

#817dbb text on a black background

contrast 5.58:1

Card sample

#817dbb text on a white background

contrast 3.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #817dbb

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.

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

#817dbb, answered

What color is #817dbb?

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

What is the RGB value of #817dbb?

rgb(129, 125, 187) — 129 red, 125 green and 187 blue out of 255, or 50.6% / 49% / 73.3% by channel.

Is #817dbb a light or a dark color?

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

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

Black. It scores 5.58:1 against #817dbb, versus 3.76:1 for white — AA at any size.

What is the complementary color of #817dbb?

#B7BB7D sits directly opposite on the wheel. Softer options are the split-complements #BBA07D and #98BB7D, which give the same contrast with far less vibration.

What colors go well with #817dbb?

For interface work: #F5F5FA as the surface, #CBC9E3 for borders, #544F97 for secondary text, #8A7D42 as an accent and #2E2C54 for hover and pressed states. For a palette, the analogous pair #7D98BB and #A07DBB stays calm, while #B7BB7D is the loudest partner.

What is #817dbb in CMYK for printing?

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

Is #817dbb 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 #987DBB; nudged cooler, #7B8FBD.

Work with #817dbb in the Color Lab