Skip to content

#9766df

a balanced, vivid violet · cool · closest name: Medium Purple

RGB
151, 102, 223
HSL
264°, 65%, 64%
CMYK
32, 54, 0, 13
Luminance
0.2141

At a glance

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

Hex
#9766df
Hue
264°
violet
Saturation
65%
vivid
Lightness
64%
balanced
Brightness
87%
HSV value
Perceived
53%
weighted brightness
Luminance
0.2141
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
5.28:1
Closest name
Medium Purple
ΔE2000 3
Where it sits
Hue264° of 360°
Saturation65%
Lightness64%
Temperature
Warm ← → Cool70% 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#9766df
RGBrgb(151, 102, 223)
HSLhsl(264, 65%, 64%)
CMYKcmyk(32%, 54%, 0%, 13%)
LABlab(53.4 44.4 -54.8)
LCHlch(53.4 70.6 309.0)
OKLCHoklch(0.617 0.179 299.9)
Decimal9922271
Display P3color(display-p3 0.592 0.400 0.875)

Copy-ready code

/* CSS */
color: #9766df;
background-color: #9766df;
/* Tailwind (arbitrary) */
class="text-[#9766df] bg-[#9766df]"
/* SCSS */
$brand: #9766df;
/* SwiftUI */
Color(red: 0.592, green: 0.400, blue: 0.875)
/* Android */
Color.parseColor("#9766df")
/* Flutter */
Color(0xFF9766DF)
/* Python / OpenCV (BGR) */
(223, 102, 151)

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

Accessibility — WCAG contrast

Aa
#9766df on white: 3.98:1
AA ✗ fail · AA-large · AAA
Aa
#9766df on black: 5.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #357FE3
deuteranopia · #457FDC
tritanopia · #887E99

Color scale — 50 to 950

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

#F7F3FB
#EEE8F8
#DACBF1
#C0A2EC
#9766df
#8145D8
#6B2ACA
#5923A9
#471C87
#361862
#220F3D
Base = 400Lightest = 50 · #F7F3FBDarkest = 950 · #220F3D
:root {
  --brand-50: #F7F3FB;
  --brand-100: #EEE8F8;
  --brand-200: #DACBF1;
  --brand-300: #C0A2EC;
  --brand-400: #9766df;
  --brand-500: #8145D8;
  --brand-600: #6B2ACA;
  --brand-700: #5923A9;
  --brand-800: #471C87;
  --brand-900: #361862;
  --brand-950: #220F3D;
  --brand: #9766df;
  --brand-ink: #000000;
}

Colors that work with #9766df

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#F7F4FA
Tinted page background
Border#D2C0ED
Hairlines and dividers
Muted text#6B4B9B
Captions on the surface
Accent#97AD1F
Second voice, not a rival
Dark variant#381669
Hover, pressed, headers
Light variant#F1EAFB
Selected rows, tints
Dark surface#1A1424
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 #9766df

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
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#AEDF66
Analogous left#6671DF
Analogous right#D366DF
Split-complement 1#DFD366
Split-complement 2#71DF66
Triadic 1#DF9766
Triadic 2#66DF97
Tetradic#DF6671

RGB percentages

Red59.2%
Green40.0%
Blue87.5%

CMYK percentages

Cyan32.3%
Magenta54.3%
Yellow0.0%
Key (black)12.5%

Color previews

#9766df text on a black background

contrast 5.28:1

Card sample

#9766df text on a white background

contrast 3.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #9766df;
Background color
Panel with #9766df background
background-color: #9766df;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(151, 102, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(151, 102, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9766df;
background: linear-gradient(135deg, #9766df, #DF66D6);

Monochromatic scale

Palettes built from #9766df

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.

#9766df in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#9766df, answered

What color is #9766df?

#9766df is a balanced vivid violet, closest to Medium Purple (ΔE2000 3). It sits at 264° on the hue wheel with 65% saturation and 64% lightness, which reads as cool.

What is the RGB value of #9766df?

rgb(151, 102, 223) — 151 red, 102 green and 223 blue out of 255, or 59.2% / 40% / 87.5% by channel.

Is #9766df a light or a dark color?

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

Should I use black or white text on #9766df?

Black. It scores 5.28:1 against #9766df, versus 3.98:1 for white — AA at any size.

What is the complementary color of #9766df?

#AEDF66 sits directly opposite on the wheel. Softer options are the split-complements #DFD366 and #71DF66, which give the same contrast with far less vibration.

What colors go well with #9766df?

For interface work: #F7F4FA as the surface, #D2C0ED for borders, #6B4B9B for secondary text, #97AD1F as an accent and #381669 for hover and pressed states. For a palette, the analogous pair #6671DF and #D366DF stays calm, while #AEDF66 is the loudest partner.

What is #9766df in CMYK for printing?

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

Is #9766df warm or cool?

Cool — it scores 70 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C366DF; nudged cooler, #6964E1.

Work with #9766df in the Color Lab