Skip to content

#6c2eb1

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

RGB
108, 46, 177
HSL
268°, 59%, 44%
CMYK
39, 74, 0, 31
Luminance
0.0832

At a glance

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

Hex
#6c2eb1
Hue
268°
violet
Saturation
59%
vivid
Lightness
44%
dark
Brightness
69%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0832
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.88:1
Closest name
Rebecca Purple
ΔE2000 3.9
Where it sits
Hue268° of 360°
Saturation59%
Lightness44%
Temperature
Warm ← → Cool68% 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#6c2eb1
RGBrgb(108, 46, 177)
HSLhsl(268, 59%, 44%)
CMYKcmyk(39%, 74%, 0%, 31%)
LABlab(34.6 52.5 -58.8)
LCHlch(34.6 78.8 311.8)
OKLCHoklch(0.460 0.194 300.3)
Decimal7089841
Display P3color(display-p3 0.424 0.180 0.694)

Copy-ready code

/* CSS */
color: #6c2eb1;
background-color: #6c2eb1;
/* Tailwind (arbitrary) */
class="text-[#6c2eb1] bg-[#6c2eb1]"
/* SCSS */
$brand: #6c2eb1;
/* SwiftUI */
Color(red: 0.424, green: 0.180, blue: 0.694)
/* Android */
Color.parseColor("#6c2eb1")
/* Flutter */
Color(0xFF6C2EB1)
/* Python / OpenCV (BGR) */
(177, 46, 108)

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

Accessibility — WCAG contrast

Aa
#6c2eb1 on white: 7.88:1
AA ✓ pass · AA-large · AAA
Aa
#6c2eb1 on black: 2.66:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0051B5
deuteranopia · #0050AE
tritanopia · #5C4F6D

Color scale — 50 to 950

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

#F7F4FB
#EFE9F7
#DDCDEF
#C5A6E8
#A879DC
#8B4DD1
#7733C2
#6c2eb1
#4F2281
#3B1C5E
#25123B
Base = 700Lightest = 50 · #F7F4FBDarkest = 950 · #25123B
:root {
  --brand-50: #F7F4FB;
  --brand-100: #EFE9F7;
  --brand-200: #DDCDEF;
  --brand-300: #C5A6E8;
  --brand-400: #A879DC;
  --brand-500: #8B4DD1;
  --brand-600: #7733C2;
  --brand-700: #6c2eb1;
  --brand-800: #4F2281;
  --brand-900: #3B1C5E;
  --brand-950: #25123B;
  --brand: #6c2eb1;
  --brand-ink: #ffffff;
}

Colors that work with #6c2eb1

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#D5C0ED
Hairlines and dividers
Muted text#714B9B
Captions on the surface
Accent#89A626
Second voice, not a rival
Dark variant#3E1A65
Hover, pressed, headers
Light variant#F2EBFA
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 #6c2eb1

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#73B12E
Analogous left#2E32B1
Analogous right#AD2EB1
Split-complement 1#B1AD2E
Split-complement 2#32B12E
Triadic 1#B16C2E
Triadic 2#2EB16C
Tetradic#B12E32

RGB percentages

Red42.4%
Green18.0%
Blue69.4%

CMYK percentages

Cyan39.0%
Magenta74.0%
Yellow0.0%
Key (black)30.6%

Color previews

#6c2eb1 text on a black background

contrast 2.66:1

Card sample

#6c2eb1 text on a white background

contrast 7.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #6c2eb1;
Background color
Panel with #6c2eb1 background
background-color: #6c2eb1;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #6c2eb1;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(108, 46, 177, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(108, 46, 177, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6c2eb1;
background: linear-gradient(135deg, #6c2eb1, #B12E9F);

Monochromatic scale

Palettes built from #6c2eb1

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.

#6c2eb1 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.

#6c2eb1, answered

What color is #6c2eb1?

#6c2eb1 is a dark vivid violet, closest to Rebecca Purple (ΔE2000 3.9). It sits at 268° on the hue wheel with 59% saturation and 44% lightness, which reads as cool.

What is the RGB value of #6c2eb1?

rgb(108, 46, 177) — 108 red, 46 green and 177 blue out of 255, or 42.4% / 18% / 69.4% by channel.

Is #6c2eb1 a light or a dark color?

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

Should I use black or white text on #6c2eb1?

White. It scores 7.88:1 against #6c2eb1, versus 2.66:1 for black — AAA at any size.

What is the complementary color of #6c2eb1?

#73B12E sits directly opposite on the wheel. Softer options are the split-complements #B1AD2E and #32B12E, which give the same contrast with far less vibration.

What colors go well with #6c2eb1?

For interface work: #F7F4FA as the surface, #D5C0ED for borders, #714B9B for secondary text, #89A626 as an accent and #3E1A65 for hover and pressed states. For a palette, the analogous pair #2E32B1 and #AD2EB1 stays calm, while #73B12E is the loudest partner.

What is #6c2eb1 in CMYK for printing?

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

Is #6c2eb1 warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9C2EB1; nudged cooler, #3A2CB3.

Work with #6c2eb1 in the Color Lab