Skip to content

#754ceb

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

RGB
117, 76, 235
HSL
256°, 80%, 61%
CMYK
50, 68, 0, 8
Luminance
0.1495

At a glance

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

Hex
#754ceb
Hue
256°
violet
Saturation
80%
electric
Lightness
61%
balanced
Brightness
92%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1495
WCAG relative
Temperature
Cool
75/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.26:1
Closest name
Slate Blue
ΔE2000 5.5
Where it sits
Hue256° of 360°
Saturation80%
Lightness61%
Temperature
Warm ← → Cool75% 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#754ceb
RGBrgb(117, 76, 235)
HSLhsl(256, 80%, 61%)
CMYKcmyk(50%, 68%, 0%, 8%)
LABlab(45.6 54.6 -74.4)
LCHlch(45.6 92.3 306.3)
OKLCHoklch(0.554 0.226 288.7)
Decimal7687403
Display P3color(display-p3 0.459 0.298 0.922)

Copy-ready code

/* CSS */
color: #754ceb;
background-color: #754ceb;
/* Tailwind (arbitrary) */
class="text-[#754ceb] bg-[#754ceb]"
/* SCSS */
$brand: #754ceb;
/* SwiftUI */
Color(red: 0.459, green: 0.298, blue: 0.922)
/* Android */
Color.parseColor("#754ceb")
/* Flutter */
Color(0xFF754CEB)
/* Python / OpenCV (BGR) */
(235, 76, 117)

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

Accessibility — WCAG contrast

Aa
#754ceb on white: 5.26:1
AA ✓ pass · AA-large · AAA
Aa
#754ceb on black: 3.99:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006FF0
deuteranopia · #0068E8
tritanopia · #4A7496

Color scale — 50 to 950

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

#F5F3FC
#EBE6F9
#D3C7F5
#B19AF4
#8A68EE
#754ceb
#4B19DC
#3F15B7
#321093
#27106A
#190A42
Base = 500Lightest = 50 · #F5F3FCDarkest = 950 · #190A42
:root {
  --brand-50: #F5F3FC;
  --brand-100: #EBE6F9;
  --brand-200: #D3C7F5;
  --brand-300: #B19AF4;
  --brand-400: #8A68EE;
  --brand-500: #754ceb;
  --brand-600: #4B19DC;
  --brand-700: #3F15B7;
  --brand-800: #321093;
  --brand-900: #27106A;
  --brand-950: #190A42;
  --brand: #754ceb;
  --brand-ink: #ffffff;
}

Colors that work with #754ceb

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#CBC0ED
Hairlines and dividers
Muted text#5F4B9B
Captions on the surface
Accent#BABC10
Second voice, not a rival
Dark variant#270D73
Hover, pressed, headers
Light variant#EDE8FC
Selected rows, tints
Dark surface#181424
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 #754ceb

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#C2EB4C
Analogous left#4C72EB
Analogous right#C54CEB
Split-complement 1#EBC54C
Split-complement 2#72EB4C
Triadic 1#EB754C
Triadic 2#4CEB75
Tetradic#EB4C72

RGB percentages

Red45.9%
Green29.8%
Blue92.2%

CMYK percentages

Cyan50.2%
Magenta67.7%
Yellow0.0%
Key (black)7.8%

Color previews

#754ceb text on a black background

contrast 3.99:1

Card sample

#754ceb text on a white background

contrast 5.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #754ceb;
Background color
Panel with #754ceb background
background-color: #754ceb;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #754ceb;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(117, 76, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(117, 76, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #754ceb;
background: linear-gradient(135deg, #754ceb, #DF4CEB);

Monochromatic scale

Palettes built from #754ceb

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.

#754ceb 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#754ceb, answered

What color is #754ceb?

#754ceb is a balanced electric violet, closest to Slate Blue (ΔE2000 5.5). It sits at 256° on the hue wheel with 80% saturation and 61% lightness, which reads as cool.

What is the RGB value of #754ceb?

rgb(117, 76, 235) — 117 red, 76 green and 235 blue out of 255, or 45.9% / 29.8% / 92.2% by channel.

Is #754ceb a light or a dark color?

It is a dark color. Relative luminance is 0.1495 and perceived brightness is 46%, so white text on it reaches 5.26:1.

Should I use black or white text on #754ceb?

White. It scores 5.26:1 against #754ceb, versus 3.99:1 for black — AA at any size.

What is the complementary color of #754ceb?

#C2EB4C sits directly opposite on the wheel. Softer options are the split-complements #EBC54C and #72EB4C, which give the same contrast with far less vibration.

What colors go well with #754ceb?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5F4B9B for secondary text, #BABC10 as an accent and #270D73 for hover and pressed states. For a palette, the analogous pair #4C72EB and #C54CEB stays calm, while #C2EB4C is the loudest partner.

What is #754ceb in CMYK for printing?

cmyk(50%, 68%, 0%, 8%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #754ceb warm or cool?

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

Work with #754ceb in the Color Lab