Skip to content

#5d2f8c

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

RGB
93, 47, 140
HSL
270°, 50%, 37%
CMYK
34, 66, 0, 45
Luminance
0.0625

At a glance

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

Hex
#5d2f8c
Hue
270°
violet
Saturation
50%
vivid
Lightness
37%
dark
Brightness
55%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0625
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
9.33:1
Closest name
Rebecca Purple
ΔE2000 2.6
Where it sits
Hue270° of 360°
Saturation50%
Lightness37%
Temperature
Warm ← → Cool67% 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#5d2f8c
RGBrgb(93, 47, 140)
HSLhsl(270, 50%, 37%)
CMYKcmyk(34%, 66%, 0%, 45%)
LABlab(30.0 39.6 -43.9)
LCHlch(30.0 59.1 312.1)
OKLCHoklch(0.414 0.149 303.2)
Decimal6107020
Display P3color(display-p3 0.365 0.184 0.549)

Copy-ready code

/* CSS */
color: #5d2f8c;
background-color: #5d2f8c;
/* Tailwind (arbitrary) */
class="text-[#5d2f8c] bg-[#5d2f8c]"
/* SCSS */
$brand: #5d2f8c;
/* SwiftUI */
Color(red: 0.365, green: 0.184, blue: 0.549)
/* Android */
Color.parseColor("#5d2f8c")
/* Flutter */
Color(0xFF5D2F8C)
/* Python / OpenCV (BGR) */
(140, 47, 93)

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

Accessibility — WCAG contrast

Aa
#5d2f8c on white: 9.33:1
AA ✓ pass · AA-large · AAA
Aa
#5d2f8c on black: 2.25:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #00468F
deuteranopia · #0F478A
tritanopia · #544359

Color scale — 50 to 950

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

#F7F4FA
#F0EAF6
#DECFEC
#C7ABE3
#AA81D5
#8E57C7
#7A3EB7
#5d2f8c
#51297A
#3D2159
#261538
Base = 700Lightest = 50 · #F7F4FADarkest = 950 · #261538
:root {
  --brand-50: #F7F4FA;
  --brand-100: #F0EAF6;
  --brand-200: #DECFEC;
  --brand-300: #C7ABE3;
  --brand-400: #AA81D5;
  --brand-500: #8E57C7;
  --brand-600: #7A3EB7;
  --brand-700: #5d2f8c;
  --brand-800: #51297A;
  --brand-900: #3D2159;
  --brand-950: #261538;
  --brand: #5d2f8c;
  --brand-ink: #ffffff;
}

Colors that work with #5d2f8c

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#F7F4FA
Tinted page background
Border#D6C2EA
Hairlines and dividers
Muted text#724B9B
Captions on the surface
Accent#77902B
Second voice, not a rival
Dark variant#3F205F
Hover, pressed, headers
Light variant#F2ECF9
Selected rows, tints
Dark surface#1C1424
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 #5d2f8c

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black 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#5E8C2F
Analogous left#2F308C
Analogous right#8C2F8C
Split-complement 1#8C8C2F
Split-complement 2#308C2F
Triadic 1#8C5D2F
Triadic 2#2F8C5D
Tetradic#8C2F30

RGB percentages

Red36.5%
Green18.4%
Blue54.9%

CMYK percentages

Cyan33.6%
Magenta66.4%
Yellow0.0%
Key (black)45.1%

Color previews

#5d2f8c text on a black background

contrast 2.25:1

Card sample

#5d2f8c text on a white background

contrast 9.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5d2f8c

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.

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

#5d2f8c, answered

What color is #5d2f8c?

#5d2f8c is a dark vivid violet, closest to Rebecca Purple (ΔE2000 2.6). It sits at 270° on the hue wheel with 50% saturation and 37% lightness, which reads as cool.

What is the RGB value of #5d2f8c?

rgb(93, 47, 140) — 93 red, 47 green and 140 blue out of 255, or 36.5% / 18.4% / 54.9% by channel.

Is #5d2f8c a light or a dark color?

It is a dark color. Relative luminance is 0.0625 and perceived brightness is 31%, so white text on it reaches 9.33:1.

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

White. It scores 9.33:1 against #5d2f8c, versus 2.25:1 for black — AAA at any size.

What is the complementary color of #5d2f8c?

#5E8C2F sits directly opposite on the wheel. Softer options are the split-complements #8C8C2F and #308C2F, which give the same contrast with far less vibration.

What colors go well with #5d2f8c?

For interface work: #F7F4FA as the surface, #D6C2EA for borders, #724B9B for secondary text, #77902B as an accent and #3F205F for hover and pressed states. For a palette, the analogous pair #2F308C and #8C2F8C stays calm, while #5E8C2F is the loudest partner.

What is #5d2f8c in CMYK for printing?

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

Is #5d2f8c warm or cool?

Cool — it scores 67 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7F2F8C; nudged cooler, #3A2D8E.

Work with #5d2f8c in the Color Lab