Skip to content

#905df4

a light, electric violet · cool · closest name: Medium Slate Blue

RGB
144, 93, 244
HSL
260°, 87%, 66%
CMYK
41, 62, 0, 4
Luminance
0.2029

At a glance

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

Hex
#905df4
Hue
260°
violet
Saturation
87%
electric
Lightness
66%
light
Brightness
96%
HSV value
Perceived
53%
weighted brightness
Luminance
0.2029
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.06:1
Closest name
Medium Slate Blue
ΔE2000 4.7
Where it sits
Hue260° of 360°
Saturation87%
Lightness66%
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#905df4
RGBrgb(144, 93, 244)
HSLhsl(260, 87%, 66%)
CMYKcmyk(41%, 62%, 0%, 4%)
LABlab(52.2 53.1 -68.6)
LCHlch(52.2 86.8 307.7)
OKLCHoklch(0.610 0.215 294.7)
Decimal9461236
Display P3color(display-p3 0.565 0.365 0.957)

Copy-ready code

/* CSS */
color: #905df4;
background-color: #905df4;
/* Tailwind (arbitrary) */
class="text-[#905df4] bg-[#905df4]"
/* SCSS */
$brand: #905df4;
/* SwiftUI */
Color(red: 0.565, green: 0.365, blue: 0.957)
/* Android */
Color.parseColor("#905df4")
/* Flutter */
Color(0xFF905DF4)
/* Python / OpenCV (BGR) */
(244, 93, 144)

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

Accessibility — WCAG contrast

Aa
#905df4 on white: 4.15:1
AA ✗ fail · AA-large · AAA
Aa
#905df4 on black: 5.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007EF9
deuteranopia · #007AF1
tritanopia · #767FA0

Color scale — 50 to 950

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

#F6F2FD
#ECE5FA
#D6C4F7
#B796F8
#905df4
#6F2DF1
#5810E5
#490DBF
#3B0A99
#2D0C6E
#1C0845
Base = 400Lightest = 50 · #F6F2FDDarkest = 950 · #1C0845
:root {
  --brand-50: #F6F2FD;
  --brand-100: #ECE5FA;
  --brand-200: #D6C4F7;
  --brand-300: #B796F8;
  --brand-400: #905df4;
  --brand-500: #6F2DF1;
  --brand-600: #5810E5;
  --brand-700: #490DBF;
  --brand-800: #3B0A99;
  --brand-900: #2D0C6E;
  --brand-950: #1C0845;
  --brand: #905df4;
  --brand-ink: #000000;
}

Colors that work with #905df4

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#F6F4FA
Tinted page background
Border#CFC0ED
Hairlines and dividers
Muted text#664B9B
Captions on the surface
Accent#B3C309
Second voice, not a rival
Dark variant#2E0877
Hover, pressed, headers
Light variant#EFE7FD
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 #905df4

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
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • 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#C1F45D
Analogous left#5D75F4
Analogous right#DC5DF4
Split-complement 1#F4DC5D
Split-complement 2#75F45D
Triadic 1#F4905D
Triadic 2#5DF490
Tetradic#F45D75

RGB percentages

Red56.5%
Green36.5%
Blue95.7%

CMYK percentages

Cyan41.0%
Magenta61.9%
Yellow0.0%
Key (black)4.3%

Color previews

#905df4 text on a black background

contrast 5.06:1

Card sample

#905df4 text on a white background

contrast 4.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #905df4;
Background color
Panel with #905df4 background
background-color: #905df4;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #905df4;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(144, 93, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(144, 93, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #905df4;
background: linear-gradient(135deg, #905df4, #F45DF3);

Monochromatic scale

Palettes built from #905df4

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.

#905df4 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
SurfacesBadgesHighlightsEmpty states
Print note

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

#905df4, answered

What color is #905df4?

#905df4 is a light electric violet, closest to Medium Slate Blue (ΔE2000 4.7). It sits at 260° on the hue wheel with 87% saturation and 66% lightness, which reads as cool.

What is the RGB value of #905df4?

rgb(144, 93, 244) — 144 red, 93 green and 244 blue out of 255, or 56.5% / 36.5% / 95.7% by channel.

Is #905df4 a light or a dark color?

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

Should I use black or white text on #905df4?

Black. It scores 5.06:1 against #905df4, versus 4.15:1 for white — AA at any size.

What is the complementary color of #905df4?

#C1F45D sits directly opposite on the wheel. Softer options are the split-complements #F4DC5D and #75F45D, which give the same contrast with far less vibration.

What colors go well with #905df4?

For interface work: #F6F4FA as the surface, #CFC0ED for borders, #664B9B for secondary text, #B3C309 as an accent and #2E0877 for hover and pressed states. For a palette, the analogous pair #5D75F4 and #DC5DF4 stays calm, while #C1F45D is the loudest partner.

What is #905df4 in CMYK for printing?

cmyk(41%, 62%, 0%, 4%). 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 #905df4 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 #C75DF4; nudged cooler, #5B60F6.

Work with #905df4 in the Color Lab