Skip to content

#5f2fcf

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

RGB
95, 47, 207
HSL
258°, 63%, 50%
CMYK
54, 77, 0, 19
Luminance
0.0897

At a glance

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

Hex
#5f2fcf
Hue
258°
violet
Saturation
63%
vivid
Lightness
50%
balanced
Brightness
81%
HSV value
Perceived
37%
weighted brightness
Luminance
0.0897
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.52:1
Closest name
Blue Violet
ΔE2000 7
Where it sits
Hue258° of 360°
Saturation63%
Lightness50%
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#5f2fcf
RGBrgb(95, 47, 207)
HSLhsl(258, 63%, 50%)
CMYKcmyk(54%, 77%, 0%, 19%)
LABlab(35.9 57.9 -74.3)
LCHlch(35.9 94.2 307.9)
OKLCHoklch(0.474 0.225 288.2)
Decimal6238159
Display P3color(display-p3 0.373 0.184 0.812)

Copy-ready code

/* CSS */
color: #5f2fcf;
background-color: #5f2fcf;
/* Tailwind (arbitrary) */
class="text-[#5f2fcf] bg-[#5f2fcf]"
/* SCSS */
$brand: #5f2fcf;
/* SwiftUI */
Color(red: 0.373, green: 0.184, blue: 0.812)
/* Android */
Color.parseColor("#5f2fcf")
/* Flutter */
Color(0xFF5F2FCF)
/* Python / OpenCV (BGR) */
(207, 47, 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 #5f2fcf · 7.52:1
Use #ffffffAAA at every size.
Aa
White text · 7.52:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.79:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5f2fcf as text scores 7.52:1 on white and 2.79:1 on black.

Accessibility — WCAG contrast

Aa
#5f2fcf on white: 7.52:1
AA ✓ pass · AA-large · AAA
Aa
#5f2fcf on black: 2.79:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0058D3
deuteranopia · #0050CC
tritanopia · #305D7E

Color scale — 50 to 950

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

#F6F4FB
#EDE8F7
#D6CBF0
#B9A4EA
#9676E0
#7348D5
#5f2fcf
#4C26A6
#3D1E85
#2F1A61
#1D103C
Base = 600Lightest = 50 · #F6F4FBDarkest = 950 · #1D103C
:root {
  --brand-50: #F6F4FB;
  --brand-100: #EDE8F7;
  --brand-200: #D6CBF0;
  --brand-300: #B9A4EA;
  --brand-400: #9676E0;
  --brand-500: #7348D5;
  --brand-600: #5f2fcf;
  --brand-700: #4C26A6;
  --brand-800: #3D1E85;
  --brand-900: #2F1A61;
  --brand-950: #1D103C;
  --brand: #5f2fcf;
  --brand-ink: #ffffff;
}

Colors that work with #5f2fcf

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#A4AA22
Second voice, not a rival
Dark variant#301868
Hover, pressed, headers
Light variant#EFEAFA
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 #5f2fcf

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#9FCF2F
Analogous left#2F4FCF
Analogous right#AF2FCF
Split-complement 1#CFAF2F
Split-complement 2#4FCF2F
Triadic 1#CF5F2F
Triadic 2#2FCF5F
Tetradic#CF2F4F

RGB percentages

Red37.3%
Green18.4%
Blue81.2%

CMYK percentages

Cyan54.1%
Magenta77.3%
Yellow0.0%
Key (black)18.8%

Color previews

#5f2fcf text on a black background

contrast 2.79:1

Card sample

#5f2fcf text on a white background

contrast 7.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f2fcf

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.

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

#5f2fcf, answered

What color is #5f2fcf?

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

What is the RGB value of #5f2fcf?

rgb(95, 47, 207) — 95 red, 47 green and 207 blue out of 255, or 37.3% / 18.4% / 81.2% by channel.

Is #5f2fcf a light or a dark color?

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

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

White. It scores 7.52:1 against #5f2fcf, versus 2.79:1 for black — AAA at any size.

What is the complementary color of #5f2fcf?

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

What colors go well with #5f2fcf?

For interface work: #F6F4FA as the surface, #CDC0ED for borders, #634B9B for secondary text, #A4AA22 as an accent and #301868 for hover and pressed states. For a palette, the analogous pair #2F4FCF and #AF2FCF stays calm, while #9FCF2F is the loudest partner.

What is #5f2fcf in CMYK for printing?

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

Is #5f2fcf 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 #9A2FCF; nudged cooler, #2C37D2.

Work with #5f2fcf in the Color Lab