Skip to content

#764ccc

a balanced, vivid violet · cool · closest name: Slate Blue

RGB
118, 76, 204
HSL
260°, 56%, 55%
CMYK
42, 63, 0, 20
Luminance
0.1338

At a glance

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

Hex
#764ccc
Hue
260°
violet
Saturation
56%
vivid
Lightness
55%
balanced
Brightness
80%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1338
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
5.71:1
Closest name
Slate Blue
ΔE2000 4.7
Where it sits
Hue260° of 360°
Saturation56%
Lightness55%
Temperature
Warm ← → Cool72% 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#764ccc
RGBrgb(118, 76, 204)
HSLhsl(260, 56%, 55%)
CMYKcmyk(42%, 63%, 0%, 20%)
LABlab(43.3 46.3 -60.4)
LCHlch(43.3 76.1 307.5)
OKLCHoklch(0.531 0.189 294.1)
Decimal7752908
Display P3color(display-p3 0.463 0.298 0.800)

Copy-ready code

/* CSS */
color: #764ccc;
background-color: #764ccc;
/* Tailwind (arbitrary) */
class="text-[#764ccc] bg-[#764ccc]"
/* SCSS */
$brand: #764ccc;
/* SwiftUI */
Color(red: 0.463, green: 0.298, blue: 0.800)
/* Android */
Color.parseColor("#764ccc")
/* Flutter */
Color(0xFF764CCC)
/* Python / OpenCV (BGR) */
(204, 76, 118)

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#ffffff on #764ccc · 5.71:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.71:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.68:1
AA fail · AA large pass · AAA fail
Reading the other direction: #764ccc as text scores 5.71:1 on white and 3.68:1 on black.

Accessibility — WCAG contrast

Aa
#764ccc on white: 5.71:1
AA ✓ pass · AA-large · AAA
Aa
#764ccc on black: 3.68:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0068D0
deuteranopia · #0064C9
tritanopia · #5F6985

Color scale — 50 to 950

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

#F6F4FB
#EDE9F6
#D8CEEE
#BCA8E6
#9B7CDA
#764ccc
#6336BF
#522D9F
#42247F
#321E5D
#20133A
Base = 500Lightest = 50 · #F6F4FBDarkest = 950 · #20133A
:root {
  --brand-50: #F6F4FB;
  --brand-100: #EDE9F6;
  --brand-200: #D8CEEE;
  --brand-300: #BCA8E6;
  --brand-400: #9B7CDA;
  --brand-500: #764ccc;
  --brand-600: #6336BF;
  --brand-700: #522D9F;
  --brand-800: #42247F;
  --brand-900: #321E5D;
  --brand-950: #20133A;
  --brand: #764ccc;
  --brand-ink: #ffffff;
}

Colors that work with #764ccc

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F6F4FA
Tinted page background
Border#CEC0ED
Hairlines and dividers
Muted text#654B9B
Captions on the surface
Accent#99A329
Second voice, not a rival
Dark variant#341C63
Hover, pressed, headers
Light variant#F0EBF9
Selected rows, tints
Dark surface#191424
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 #764ccc

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#A2CC4C
Analogous left#4C62CC
Analogous right#B64CCC
Split-complement 1#CCB64C
Split-complement 2#62CC4C
Triadic 1#CC764C
Triadic 2#4CCC76
Tetradic#CC4C62

RGB percentages

Red46.3%
Green29.8%
Blue80.0%

CMYK percentages

Cyan42.2%
Magenta62.7%
Yellow0.0%
Key (black)20.0%

Color previews

#764ccc text on a black background

contrast 3.68:1

Card sample

#764ccc text on a white background

contrast 5.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #764ccc;
Background color
Panel with #764ccc background
background-color: #764ccc;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(118, 76, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(118, 76, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #764ccc;
background: linear-gradient(135deg, #764ccc, #CB4CCC);

Monochromatic scale

Palettes built from #764ccc

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.

#764ccc 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.

#764ccc, answered

What color is #764ccc?

#764ccc is a balanced vivid violet, closest to Slate Blue (ΔE2000 4.7). It sits at 260° on the hue wheel with 56% saturation and 55% lightness, which reads as cool.

What is the RGB value of #764ccc?

rgb(118, 76, 204) — 118 red, 76 green and 204 blue out of 255, or 46.3% / 29.8% / 80% by channel.

Is #764ccc a light or a dark color?

It is a dark color. Relative luminance is 0.1338 and perceived brightness is 43%, so white text on it reaches 5.71:1.

Should I use black or white text on #764ccc?

White. It scores 5.71:1 against #764ccc, versus 3.68:1 for black — AA at any size.

What is the complementary color of #764ccc?

#A2CC4C sits directly opposite on the wheel. Softer options are the split-complements #CCB64C and #62CC4C, which give the same contrast with far less vibration.

What colors go well with #764ccc?

For interface work: #F6F4FA as the surface, #CEC0ED for borders, #654B9B for secondary text, #99A329 as an accent and #341C63 for hover and pressed states. For a palette, the analogous pair #4C62CC and #B64CCC stays calm, while #A2CC4C is the loudest partner.

What is #764ccc in CMYK for printing?

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

Is #764ccc warm or cool?

Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A54CCC; nudged cooler, #4A4FCE.

Work with #764ccc in the Color Lab