Skip to content

#4f2cb4

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

RGB
79, 44, 180
HSL
255°, 61%, 44%
CMYK
56, 76, 0, 29
Luminance
0.0676

At a glance

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

Hex
#4f2cb4
Hue
255°
violet
Saturation
61%
vivid
Lightness
44%
dark
Brightness
71%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0676
WCAG relative
Temperature
Cool
75/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
8.93:1
Closest name
Rebecca Purple
ΔE2000 6.5
Where it sits
Hue255° of 360°
Saturation61%
Lightness44%
Temperature
Warm ← → Cool75% 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#4f2cb4
RGBrgb(79, 44, 180)
HSLhsl(255, 61%, 44%)
CMYKcmyk(56%, 76%, 0%, 29%)
LABlab(31.3 49.7 -66.2)
LCHlch(31.3 82.8 306.9)
OKLCHoklch(0.429 0.199 286.4)
Decimal5188788
Display P3color(display-p3 0.310 0.173 0.706)

Copy-ready code

/* CSS */
color: #4f2cb4;
background-color: #4f2cb4;
/* Tailwind (arbitrary) */
class="text-[#4f2cb4] bg-[#4f2cb4]"
/* SCSS */
$brand: #4f2cb4;
/* SwiftUI */
Color(red: 0.310, green: 0.173, blue: 0.706)
/* Android */
Color.parseColor("#4f2cb4")
/* Flutter */
Color(0xFF4F2CB4)
/* Python / OpenCV (BGR) */
(180, 44, 79)

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

Accessibility — WCAG contrast

Aa
#4f2cb4 on white: 8.93:1
AA ✓ pass · AA-large · AAA
Aa
#4f2cb4 on black: 2.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004DB8
deuteranopia · #0046B1
tritanopia · #20526E

Color scale — 50 to 950

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

#F6F4FB
#ECE8F7
#D5CCF0
#B6A5E9
#9278DE
#6E4BD3
#5630C5
#4f2cb4
#392083
#2D1B5F
#1C113C
Base = 700Lightest = 50 · #F6F4FBDarkest = 950 · #1C113C
:root {
  --brand-50: #F6F4FB;
  --brand-100: #ECE8F7;
  --brand-200: #D5CCF0;
  --brand-300: #B6A5E9;
  --brand-400: #9278DE;
  --brand-500: #6E4BD3;
  --brand-600: #5630C5;
  --brand-700: #4f2cb4;
  --brand-800: #392083;
  --brand-900: #2D1B5F;
  --brand-950: #1C113C;
  --brand: #4f2cb4;
  --brand-ink: #ffffff;
}

Colors that work with #4f2cb4

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#CBC0ED
Hairlines and dividers
Muted text#5F4B9B
Captions on the surface
Accent#A7A824
Second voice, not a rival
Dark variant#2D1966
Hover, pressed, headers
Light variant#EEEBFA
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 #4f2cb4

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#91B42C
Analogous left#2C4DB4
Analogous right#932CB4
Split-complement 1#B4932C
Split-complement 2#4DB42C
Triadic 1#B44F2C
Triadic 2#2CB44F
Tetradic#B42C4D

RGB percentages

Red31.0%
Green17.3%
Blue70.6%

CMYK percentages

Cyan56.1%
Magenta75.6%
Yellow0.0%
Key (black)29.4%

Color previews

#4f2cb4 text on a black background

contrast 2.35:1

Card sample

#4f2cb4 text on a white background

contrast 8.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4f2cb4;
Background color
Panel with #4f2cb4 background
background-color: #4f2cb4;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #4f2cb4;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(79, 44, 180, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 44, 180, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f2cb4;
background: linear-gradient(135deg, #4f2cb4, #A92CB4);

Monochromatic scale

Palettes built from #4f2cb4

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.

#4f2cb4 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.

#4f2cb4, answered

What color is #4f2cb4?

#4f2cb4 is a dark vivid violet, closest to Rebecca Purple (ΔE2000 6.5). It sits at 255° on the hue wheel with 61% saturation and 44% lightness, which reads as cool.

What is the RGB value of #4f2cb4?

rgb(79, 44, 180) — 79 red, 44 green and 180 blue out of 255, or 31% / 17.3% / 70.6% by channel.

Is #4f2cb4 a light or a dark color?

It is a dark color. Relative luminance is 0.0676 and perceived brightness is 32%, so white text on it reaches 8.93:1.

Should I use black or white text on #4f2cb4?

White. It scores 8.93:1 against #4f2cb4, versus 2.35:1 for black — AAA at any size.

What is the complementary color of #4f2cb4?

#91B42C sits directly opposite on the wheel. Softer options are the split-complements #B4932C and #4DB42C, which give the same contrast with far less vibration.

What colors go well with #4f2cb4?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5F4B9B for secondary text, #A7A824 as an accent and #2D1966 for hover and pressed states. For a palette, the analogous pair #2C4DB4 and #932CB4 stays calm, while #91B42C is the loudest partner.

What is #4f2cb4 in CMYK for printing?

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

Is #4f2cb4 warm or cool?

Cool — it scores 75 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #812CB4; nudged cooler, #2A39B6.

Work with #4f2cb4 in the Color Lab