Skip to content

#6a2acb

a balanced, vivid violet · cool · closest name: Blue Violet

RGB
106, 42, 203
HSL
264°, 66%, 48%
CMYK
48, 79, 0, 20
Luminance
0.0903

At a glance

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

Hex
#6a2acb
Hue
264°
violet
Saturation
66%
vivid
Lightness
48%
balanced
Brightness
80%
HSV value
Perceived
37%
weighted brightness
Luminance
0.0903
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.48:1
Closest name
Blue Violet
ΔE2000 6
Where it sits
Hue264° of 360°
Saturation66%
Lightness48%
Temperature
Warm ← → Cool70% 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#6a2acb
RGBrgb(106, 42, 203)
HSLhsl(264, 66%, 48%)
CMYKcmyk(48%, 79%, 0%, 20%)
LABlab(36.0 60.4 -71.8)
LCHlch(36.0 93.8 310.1)
OKLCHoklch(0.476 0.225 293.9)
Decimal6957771
Display P3color(display-p3 0.416 0.165 0.796)

Copy-ready code

/* CSS */
color: #6a2acb;
background-color: #6a2acb;
/* Tailwind (arbitrary) */
class="text-[#6a2acb] bg-[#6a2acb]"
/* SCSS */
$brand: #6a2acb;
/* SwiftUI */
Color(red: 0.416, green: 0.165, blue: 0.796)
/* Android */
Color.parseColor("#6a2acb")
/* Flutter */
Color(0xFF6A2ACB)
/* Python / OpenCV (BGR) */
(203, 42, 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 #6a2acb · 7.48:1
Use #ffffffAAA at every size.
Aa
White text · 7.48:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.81:1
AA fail · AA large fail · AAA fail
Reading the other direction: #6a2acb as text scores 7.48:1 on white and 2.81:1 on black.

Accessibility — WCAG contrast

Aa
#6a2acb on white: 7.48:1
AA ✓ pass · AA-large · AAA
Aa
#6a2acb on black: 2.81:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0056CF
deuteranopia · #0052C8
tritanopia · #4C587B

Color scale — 50 to 950

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

#F7F3FB
#EEE8F8
#DACBF1
#BFA2EC
#A074E2
#8045D9
#6a2acb
#5823A9
#471C87
#361862
#220F3D
Base = 600Lightest = 50 · #F7F3FBDarkest = 950 · #220F3D
:root {
  --brand-50: #F7F3FB;
  --brand-100: #EEE8F8;
  --brand-200: #DACBF1;
  --brand-300: #BFA2EC;
  --brand-400: #A074E2;
  --brand-500: #8045D9;
  --brand-600: #6a2acb;
  --brand-700: #5823A9;
  --brand-800: #471C87;
  --brand-900: #361862;
  --brand-950: #220F3D;
  --brand: #6a2acb;
  --brand-ink: #ffffff;
}

Colors that work with #6a2acb

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#D2C0ED
Hairlines and dividers
Muted text#6B4B9B
Captions on the surface
Accent#98AD1F
Second voice, not a rival
Dark variant#37166A
Hover, pressed, headers
Light variant#F1EAFB
Selected rows, tints
Dark surface#1A1424
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 #6a2acb

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
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • 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#8BCB2A
Analogous left#2A3ACB
Analogous right#BA2ACB
Split-complement 1#CBBA2A
Split-complement 2#3ACB2A
Triadic 1#CB6A2A
Triadic 2#2ACB6A
Tetradic#CB2A3A

RGB percentages

Red41.6%
Green16.5%
Blue79.6%

CMYK percentages

Cyan47.8%
Magenta79.3%
Yellow0.0%
Key (black)20.4%

Color previews

#6a2acb text on a black background

contrast 2.81:1

Card sample

#6a2acb text on a white background

contrast 7.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #6a2acb

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.

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

#6a2acb, answered

What color is #6a2acb?

#6a2acb is a balanced vivid violet, closest to Blue Violet (ΔE2000 6). It sits at 264° on the hue wheel with 66% saturation and 48% lightness, which reads as cool.

What is the RGB value of #6a2acb?

rgb(106, 42, 203) — 106 red, 42 green and 203 blue out of 255, or 41.6% / 16.5% / 79.6% by channel.

Is #6a2acb a light or a dark color?

It is a dark color. Relative luminance is 0.0903 and perceived brightness is 37%, so white text on it reaches 7.48:1.

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

White. It scores 7.48:1 against #6a2acb, versus 2.81:1 for black — AAA at any size.

What is the complementary color of #6a2acb?

#8BCB2A sits directly opposite on the wheel. Softer options are the split-complements #CBBA2A and #3ACB2A, which give the same contrast with far less vibration.

What colors go well with #6a2acb?

For interface work: #F7F4FA as the surface, #D2C0ED for borders, #6B4B9B for secondary text, #98AD1F as an accent and #37166A for hover and pressed states. For a palette, the analogous pair #2A3ACB and #BA2ACB stays calm, while #8BCB2A is the loudest partner.

What is #6a2acb in CMYK for printing?

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

Is #6a2acb warm or cool?

Cool — it scores 70 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A52ACB; nudged cooler, #2D28CD.

Work with #6a2acb in the Color Lab