Skip to content

#4f2db0

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

RGB
79, 45, 176
HSL
256°, 59%, 43%
CMYK
55, 74, 0, 31
Luminance
0.0667

At a glance

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

Hex
#4f2db0
Hue
256°
violet
Saturation
59%
vivid
Lightness
43%
dark
Brightness
69%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0667
WCAG relative
Temperature
Cool
75/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
8.99:1
Closest name
Rebecca Purple
ΔE2000 6.1
Where it sits
Hue256° of 360°
Saturation59%
Lightness43%
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#4f2db0
RGBrgb(79, 45, 176)
HSLhsl(256, 59%, 43%)
CMYKcmyk(55%, 74%, 0%, 31%)
LABlab(31.1 48.0 -64.1)
LCHlch(31.1 80.1 306.8)
OKLCHoklch(0.427 0.193 287.0)
Decimal5189040
Display P3color(display-p3 0.310 0.176 0.690)

Copy-ready code

/* CSS */
color: #4f2db0;
background-color: #4f2db0;
/* Tailwind (arbitrary) */
class="text-[#4f2db0] bg-[#4f2db0]"
/* SCSS */
$brand: #4f2db0;
/* SwiftUI */
Color(red: 0.310, green: 0.176, blue: 0.690)
/* Android */
Color.parseColor("#4f2db0")
/* Flutter */
Color(0xFF4F2DB0)
/* Python / OpenCV (BGR) */
(176, 45, 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 #4f2db0 · 8.99:1
Use #ffffffAAA at every size.
Aa
White text · 8.99:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.33:1
AA fail · AA large fail · AAA fail
Reading the other direction: #4f2db0 as text scores 8.99:1 on white and 2.33:1 on black.

Accessibility — WCAG contrast

Aa
#4f2db0 on white: 8.99:1
AA ✓ pass · AA-large · AAA
Aa
#4f2db0 on black: 2.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004CB4
deuteranopia · #0045AE
tritanopia · #25516C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #4f2db0 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
#ECE9F7
#D6CDEF
#B7A6E8
#9379DD
#6F4CD1
#5832C3
#4f2db0
#3A2182
#2D1C5F
#1C113B
Base = 700Lightest = 50 · #F6F4FBDarkest = 950 · #1C113B
:root {
  --brand-50: #F6F4FB;
  --brand-100: #ECE9F7;
  --brand-200: #D6CDEF;
  --brand-300: #B7A6E8;
  --brand-400: #9379DD;
  --brand-500: #6F4CD1;
  --brand-600: #5832C3;
  --brand-700: #4f2db0;
  --brand-800: #3A2182;
  --brand-900: #2D1C5F;
  --brand-950: #1C113B;
  --brand: #4f2db0;
  --brand-ink: #ffffff;
}

Colors that work with #4f2db0

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#A5A626
Second voice, not a rival
Dark variant#2E1A66
Hover, pressed, headers
Light variant#EFEBFA
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 #4f2db0

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#8EB02D
Analogous left#2D4CB0
Analogous right#902DB0
Split-complement 1#B0902D
Split-complement 2#4CB02D
Triadic 1#B04F2D
Triadic 2#2DB04F
Tetradic#B02D4C

RGB percentages

Red31.0%
Green17.6%
Blue69.0%

CMYK percentages

Cyan55.1%
Magenta74.4%
Yellow0.0%
Key (black)31.0%

Color previews

#4f2db0 text on a black background

contrast 2.33:1

Card sample

#4f2db0 text on a white background

contrast 8.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f2db0

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.

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

#4f2db0, answered

What color is #4f2db0?

#4f2db0 is a dark vivid violet, closest to Rebecca Purple (ΔE2000 6.1). It sits at 256° on the hue wheel with 59% saturation and 43% lightness, which reads as cool.

What is the RGB value of #4f2db0?

rgb(79, 45, 176) — 79 red, 45 green and 176 blue out of 255, or 31% / 17.6% / 69% by channel.

Is #4f2db0 a light or a dark color?

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

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

White. It scores 8.99:1 against #4f2db0, versus 2.33:1 for black — AAA at any size.

What is the complementary color of #4f2db0?

#8EB02D sits directly opposite on the wheel. Softer options are the split-complements #B0902D and #4CB02D, which give the same contrast with far less vibration.

What colors go well with #4f2db0?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5F4B9B for secondary text, #A5A626 as an accent and #2E1A66 for hover and pressed states. For a palette, the analogous pair #2D4CB0 and #902DB0 stays calm, while #8EB02D is the loudest partner.

What is #4f2db0 in CMYK for printing?

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

Is #4f2db0 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 #7F2DB0; nudged cooler, #2B39B2.

Work with #4f2db0 in the Color Lab