Skip to content

#875cf4

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

RGB
135, 92, 244
HSL
257°, 87%, 66%
CMYK
45, 62, 0, 4
Luminance
0.1934

At a glance

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

Hex
#875cf4
Hue
257°
violet
Saturation
87%
electric
Lightness
66%
light
Brightness
96%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1934
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.87:1
Closest name
Medium Slate Blue
ΔE2000 3.9
Where it sits
Hue257° of 360°
Saturation87%
Lightness66%
Temperature
Warm ← → Cool74% 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#875cf4
RGBrgb(135, 92, 244)
HSLhsl(257, 87%, 66%)
CMYKcmyk(45%, 62%, 0%, 4%)
LABlab(51.1 51.9 -70.4)
LCHlch(51.1 87.5 306.4)
OKLCHoklch(0.600 0.216 291.5)
Decimal8871156
Display P3color(display-p3 0.529 0.361 0.957)

Copy-ready code

/* CSS */
color: #875cf4;
background-color: #875cf4;
/* Tailwind (arbitrary) */
class="text-[#875cf4] bg-[#875cf4]"
/* SCSS */
$brand: #875cf4;
/* SwiftUI */
Color(red: 0.529, green: 0.361, blue: 0.957)
/* Android */
Color.parseColor("#875cf4")
/* Flutter */
Color(0xFF875CF4)
/* Python / OpenCV (BGR) */
(244, 92, 135)

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

Accessibility — WCAG contrast

Aa
#875cf4 on white: 4.31:1
AA ✗ fail · AA-large · AAA
Aa
#875cf4 on black: 4.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007CF9
deuteranopia · #0076F1
tritanopia · #6680A0

Color scale — 50 to 950

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

#F5F2FD
#EBE5FA
#D3C4F8
#B296F8
#875cf4
#642DF1
#4C0FE5
#3F0DBF
#330A99
#280C6E
#190745
Base = 400Lightest = 50 · #F5F2FDDarkest = 950 · #190745
:root {
  --brand-50: #F5F2FD;
  --brand-100: #EBE5FA;
  --brand-200: #D3C4F8;
  --brand-300: #B296F8;
  --brand-400: #875cf4;
  --brand-500: #642DF1;
  --brand-600: #4C0FE5;
  --brand-700: #3F0DBF;
  --brand-800: #330A99;
  --brand-900: #280C6E;
  --brand-950: #190745;
  --brand: #875cf4;
  --brand-ink: #000000;
}

Colors that work with #875cf4

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#CCC0ED
Hairlines and dividers
Muted text#614B9B
Captions on the surface
Accent#BDC408
Second voice, not a rival
Dark variant#280877
Hover, pressed, headers
Light variant#EDE7FD
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 #875cf4

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#C9F45C
Analogous left#5C7DF4
Analogous right#D35CF4
Split-complement 1#F4D35C
Split-complement 2#7DF45C
Triadic 1#F4875C
Triadic 2#5CF487
Tetradic#F45C7D

RGB percentages

Red52.9%
Green36.1%
Blue95.7%

CMYK percentages

Cyan44.7%
Magenta62.3%
Yellow0.0%
Key (black)4.3%

Color previews

#875cf4 text on a black background

contrast 4.87:1

Card sample

#875cf4 text on a white background

contrast 4.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #875cf4;
Background color
Panel with #875cf4 background
background-color: #875cf4;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #875cf4;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(135, 92, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(135, 92, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #875cf4;
background: linear-gradient(135deg, #875cf4, #EC5CF4);

Monochromatic scale

Palettes built from #875cf4

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.

#875cf4 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.

#875cf4, answered

What color is #875cf4?

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

What is the RGB value of #875cf4?

rgb(135, 92, 244) — 135 red, 92 green and 244 blue out of 255, or 52.9% / 36.1% / 95.7% by channel.

Is #875cf4 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1934 and perceived brightness is 51%, so black text on it reaches 4.87:1.

Should I use black or white text on #875cf4?

Black. It scores 4.87:1 against #875cf4, versus 4.31:1 for white — AA at any size.

What is the complementary color of #875cf4?

#C9F45C sits directly opposite on the wheel. Softer options are the split-complements #F4D35C and #7DF45C, which give the same contrast with far less vibration.

What colors go well with #875cf4?

For interface work: #F6F4FA as the surface, #CCC0ED for borders, #614B9B for secondary text, #BDC408 as an accent and #280877 for hover and pressed states. For a palette, the analogous pair #5C7DF4 and #D35CF4 stays calm, while #C9F45C is the loudest partner.

What is #875cf4 in CMYK for printing?

cmyk(45%, 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 #875cf4 warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BF5CF4; nudged cooler, #5A67F6.

Work with #875cf4 in the Color Lab