Skip to content

#6a2db8

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

RGB
106, 45, 184
HSL
266°, 61%, 45%
CMYK
42, 76, 0, 28
Luminance
0.0840

At a glance

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

Hex
#6a2db8
Hue
266°
violet
Saturation
61%
vivid
Lightness
45%
dark
Brightness
72%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0840
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.83:1
Closest name
Rebecca Purple
ΔE2000 4.9
Where it sits
Hue266° of 360°
Saturation61%
Lightness45%
Temperature
Warm ← → Cool69% 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#6a2db8
RGBrgb(106, 45, 184)
HSLhsl(266, 61%, 45%)
CMYKcmyk(42%, 76%, 0%, 28%)
LABlab(34.8 54.4 -62.6)
LCHlch(34.8 82.9 311.0)
OKLCHoklch(0.463 0.203 297.8)
Decimal6958520
Display P3color(display-p3 0.416 0.176 0.722)

Copy-ready code

/* CSS */
color: #6a2db8;
background-color: #6a2db8;
/* Tailwind (arbitrary) */
class="text-[#6a2db8] bg-[#6a2db8]"
/* SCSS */
$brand: #6a2db8;
/* SwiftUI */
Color(red: 0.416, green: 0.176, blue: 0.722)
/* Android */
Color.parseColor("#6a2db8")
/* Flutter */
Color(0xFF6A2DB8)
/* Python / OpenCV (BGR) */
(184, 45, 106)

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

Accessibility — WCAG contrast

Aa
#6a2db8 on white: 7.83:1
AA ✓ pass · AA-large · AAA
Aa
#6a2db8 on black: 2.68:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0052BC
deuteranopia · #0050B5
tritanopia · #565271

Color scale — 50 to 950

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

#F7F4FB
#EFE8F7
#DCCCF0
#C3A5E9
#A578DE
#864BD3
#6a2db8
#5E28A4
#4B2083
#391B5F
#24113C
Base = 600Lightest = 50 · #F7F4FBDarkest = 950 · #24113C
:root {
  --brand-50: #F7F4FB;
  --brand-100: #EFE8F7;
  --brand-200: #DCCCF0;
  --brand-300: #C3A5E9;
  --brand-400: #A578DE;
  --brand-500: #864BD3;
  --brand-600: #6a2db8;
  --brand-700: #5E28A4;
  --brand-800: #4B2083;
  --brand-900: #391B5F;
  --brand-950: #24113C;
  --brand: #6a2db8;
  --brand-ink: #ffffff;
}

Colors that work with #6a2db8

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#D3C0ED
Hairlines and dividers
Muted text#6E4B9B
Captions on the surface
Accent#8FA824
Second voice, not a rival
Dark variant#3B1966
Hover, pressed, headers
Light variant#F1EBFA
Selected rows, tints
Dark surface#1B1424
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 #6a2db8

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#7BB82D
Analogous left#2D36B8
Analogous right#AF2DB8
Split-complement 1#B8AF2D
Split-complement 2#36B82D
Triadic 1#B86A2D
Triadic 2#2DB86A
Tetradic#B82D36

RGB percentages

Red41.6%
Green17.6%
Blue72.2%

CMYK percentages

Cyan42.4%
Magenta75.5%
Yellow0.0%
Key (black)27.8%

Color previews

#6a2db8 text on a black background

contrast 2.68:1

Card sample

#6a2db8 text on a white background

contrast 7.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(106, 45, 184, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(106, 45, 184, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6a2db8;
background: linear-gradient(135deg, #6a2db8, #B82DA9);

Monochromatic scale

Palettes built from #6a2db8

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.

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

#6a2db8, answered

What color is #6a2db8?

#6a2db8 is a dark vivid violet, closest to Rebecca Purple (ΔE2000 4.9). It sits at 266° on the hue wheel with 61% saturation and 45% lightness, which reads as cool.

What is the RGB value of #6a2db8?

rgb(106, 45, 184) — 106 red, 45 green and 184 blue out of 255, or 41.6% / 17.6% / 72.2% by channel.

Is #6a2db8 a light or a dark color?

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

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

White. It scores 7.83:1 against #6a2db8, versus 2.68:1 for black — AAA at any size.

What is the complementary color of #6a2db8?

#7BB82D sits directly opposite on the wheel. Softer options are the split-complements #B8AF2D and #36B82D, which give the same contrast with far less vibration.

What colors go well with #6a2db8?

For interface work: #F7F4FA as the surface, #D3C0ED for borders, #6E4B9B for secondary text, #8FA824 as an accent and #3B1966 for hover and pressed states. For a palette, the analogous pair #2D36B8 and #AF2DB8 stays calm, while #7BB82D is the loudest partner.

What is #6a2db8 in CMYK for printing?

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

Is #6a2db8 warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9D2DB8; nudged cooler, #352BBA.

Work with #6a2db8 in the Color Lab