Skip to content

#5f2cd7

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

RGB
95, 44, 215
HSL
258°, 68%, 51%
CMYK
56, 80, 0, 16
Luminance
0.0914

At a glance

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

Hex
#5f2cd7
Hue
258°
violet
Saturation
68%
vivid
Lightness
51%
balanced
Brightness
84%
HSV value
Perceived
37%
weighted brightness
Luminance
0.0914
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.43:1
Closest name
Blue Violet
ΔE2000 6.7
Where it sits
Hue258° of 360°
Saturation68%
Lightness51%
Temperature
Warm ← → Cool73% 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#5f2cd7
RGBrgb(95, 44, 215)
HSLhsl(258, 68%, 51%)
CMYKcmyk(56%, 80%, 0%, 16%)
LABlab(36.3 61.3 -78.4)
LCHlch(36.3 99.5 308.0)
OKLCHoklch(0.478 0.236 287.2)
Decimal6237399
Display P3color(display-p3 0.373 0.173 0.843)

Copy-ready code

/* CSS */
color: #5f2cd7;
background-color: #5f2cd7;
/* Tailwind (arbitrary) */
class="text-[#5f2cd7] bg-[#5f2cd7]"
/* SCSS */
$brand: #5f2cd7;
/* SwiftUI */
Color(red: 0.373, green: 0.173, blue: 0.843)
/* Android */
Color.parseColor("#5f2cd7")
/* Flutter */
Color(0xFF5F2CD7)
/* Python / OpenCV (BGR) */
(215, 44, 95)

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 #5f2cd7 · 7.43:1
Use #ffffffAAA at every size.
Aa
White text · 7.43:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.83:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5f2cd7 as text scores 7.43:1 on white and 2.83:1 on black.

Accessibility — WCAG contrast

Aa
#5f2cd7 on white: 7.43:1
AA ✓ pass · AA-large · AAA
Aa
#5f2cd7 on black: 2.83:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0059DC
deuteranopia · #0050D4
tritanopia · #275F82

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #5f2cd7 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F6F3FB
#ECE8F8
#D6CAF2
#B7A1ED
#9472E4
#7042DB
#5f2cd7
#4A21AB
#3B1A89
#2E1764
#1D0E3E
Base = 600Lightest = 50 · #F6F3FBDarkest = 950 · #1D0E3E
:root {
  --brand-50: #F6F3FB;
  --brand-100: #ECE8F8;
  --brand-200: #D6CAF2;
  --brand-300: #B7A1ED;
  --brand-400: #9472E4;
  --brand-500: #7042DB;
  --brand-600: #5f2cd7;
  --brand-700: #4A21AB;
  --brand-800: #3B1A89;
  --brand-900: #2E1764;
  --brand-950: #1D0E3E;
  --brand: #5f2cd7;
  --brand-ink: #ffffff;
}

Colors that work with #5f2cd7

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#CDC0ED
Hairlines and dividers
Muted text#634B9B
Captions on the surface
Accent#A8B01C
Second voice, not a rival
Dark variant#2E146B
Hover, pressed, headers
Light variant#EFEAFB
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 #5f2cd7

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
  • Text on black or near-black surfaces
  • 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#A4D72C
Analogous left#2C4FD7
Analogous right#B52CD7
Split-complement 1#D7B52C
Split-complement 2#4FD72C
Triadic 1#D75F2C
Triadic 2#2CD75F
Tetradic#D72C4F

RGB percentages

Red37.3%
Green17.3%
Blue84.3%

CMYK percentages

Cyan55.8%
Magenta79.5%
Yellow0.0%
Key (black)15.7%

Color previews

#5f2cd7 text on a black background

contrast 2.83:1

Card sample

#5f2cd7 text on a white background

contrast 7.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5f2cd7;
Background color
Panel with #5f2cd7 background
background-color: #5f2cd7;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5f2cd7;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(95, 44, 215, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(95, 44, 215, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5f2cd7;
background: linear-gradient(135deg, #5f2cd7, #D12CD7);

Monochromatic scale

Palettes built from #5f2cd7

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.

#5f2cd7 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.

#5f2cd7, answered

What color is #5f2cd7?

#5f2cd7 is a balanced vivid violet, closest to Blue Violet (ΔE2000 6.7). It sits at 258° on the hue wheel with 68% saturation and 51% lightness, which reads as cool.

What is the RGB value of #5f2cd7?

rgb(95, 44, 215) — 95 red, 44 green and 215 blue out of 255, or 37.3% / 17.3% / 84.3% by channel.

Is #5f2cd7 a light or a dark color?

It is a dark color. Relative luminance is 0.0914 and perceived brightness is 37%, so white text on it reaches 7.43:1.

Should I use black or white text on #5f2cd7?

White. It scores 7.43:1 against #5f2cd7, versus 2.83:1 for black — AAA at any size.

What is the complementary color of #5f2cd7?

#A4D72C sits directly opposite on the wheel. Softer options are the split-complements #D7B52C and #4FD72C, which give the same contrast with far less vibration.

What colors go well with #5f2cd7?

For interface work: #F6F4FA as the surface, #CDC0ED for borders, #634B9B for secondary text, #A8B01C as an accent and #2E146B for hover and pressed states. For a palette, the analogous pair #2C4FD7 and #B52CD7 stays calm, while #A4D72C is the loudest partner.

What is #5f2cd7 in CMYK for printing?

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

Is #5f2cd7 warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9E2CD7; nudged cooler, #2A36D9.

Work with #5f2cd7 in the Color Lab