Skip to content

#5f2cc5

a balanced, vivid violet · cool · closest name: Rebecca Purple

RGB
95, 44, 197
HSL
260°, 64%, 47%
CMYK
52, 78, 0, 23
Luminance
0.0827

At a glance

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

Hex
#5f2cc5
Hue
260°
violet
Saturation
64%
vivid
Lightness
47%
balanced
Brightness
77%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0827
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.92:1
Closest name
Rebecca Purple
ΔE2000 7
Where it sits
Hue260° of 360°
Saturation64%
Lightness47%
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#5f2cc5
RGBrgb(95, 44, 197)
HSLhsl(260, 64%, 47%)
CMYKcmyk(52%, 78%, 0%, 23%)
LABlab(34.5 56.5 -70.8)
LCHlch(34.5 90.6 308.6)
OKLCHoklch(0.461 0.217 290.3)
Decimal6237381
Display P3color(display-p3 0.373 0.173 0.773)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5f2cc5 on white: 7.92:1
AA ✓ pass · AA-large · AAA
Aa
#5f2cc5 on black: 2.65:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0054C9
deuteranopia · #004EC2
tritanopia · #3A5878

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #5f2cc5 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
#D8CBF0
#BBA3EB
#9975E0
#7748D6
#5f2cc5
#5025A7
#401E85
#311961
#1F103D
Base = 600Lightest = 50 · #F6F4FBDarkest = 950 · #1F103D
:root {
  --brand-50: #F6F4FB;
  --brand-100: #EDE8F7;
  --brand-200: #D8CBF0;
  --brand-300: #BBA3EB;
  --brand-400: #9975E0;
  --brand-500: #7748D6;
  --brand-600: #5f2cc5;
  --brand-700: #5025A7;
  --brand-800: #401E85;
  --brand-900: #311961;
  --brand-950: #1F103D;
  --brand: #5f2cc5;
  --brand-ink: #ffffff;
}

Colors that work with #5f2cc5

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#CFC0ED
Hairlines and dividers
Muted text#654B9B
Captions on the surface
Accent#9FAB21
Second voice, not a rival
Dark variant#321768
Hover, pressed, headers
Light variant#F0EAFA
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 #5f2cc5

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#92C52C
Analogous left#2C46C5
Analogous right#AC2CC5
Split-complement 1#C5AC2C
Split-complement 2#46C52C
Triadic 1#C55F2C
Triadic 2#2CC55F
Tetradic#C52C46

RGB percentages

Red37.3%
Green17.3%
Blue77.3%

CMYK percentages

Cyan51.8%
Magenta77.7%
Yellow0.0%
Key (black)22.7%

Color previews

#5f2cc5 text on a black background

contrast 2.65:1

Card sample

#5f2cc5 text on a white background

contrast 7.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f2cc5

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.

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

#5f2cc5, answered

What color is #5f2cc5?

#5f2cc5 is a balanced vivid violet, closest to Rebecca Purple (ΔE2000 7). It sits at 260° on the hue wheel with 64% saturation and 47% lightness, which reads as cool.

What is the RGB value of #5f2cc5?

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

Is #5f2cc5 a light or a dark color?

It is a dark color. Relative luminance is 0.0827 and perceived brightness is 36%, so white text on it reaches 7.92:1.

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

White. It scores 7.92:1 against #5f2cc5, versus 2.65:1 for black — AAA at any size.

What is the complementary color of #5f2cc5?

#92C52C sits directly opposite on the wheel. Softer options are the split-complements #C5AC2C and #46C52C, which give the same contrast with far less vibration.

What colors go well with #5f2cc5?

For interface work: #F6F4FA as the surface, #CFC0ED for borders, #654B9B for secondary text, #9FAB21 as an accent and #321768 for hover and pressed states. For a palette, the analogous pair #2C46C5 and #AC2CC5 stays calm, while #92C52C is the loudest partner.

What is #5f2cc5 in CMYK for printing?

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

Is #5f2cc5 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 #972CC5; nudged cooler, #2A2FC8.

Work with #5f2cc5 in the Color Lab