Skip to content

#6a11cd

a dark, electric violet · cool · closest name: Dark Violet

RGB
106, 17, 205
HSL
268°, 85%, 44%
CMYK
48, 92, 0, 20
Luminance
0.0787

At a glance

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

Hex
#6a11cd
Hue
268°
violet
Saturation
85%
electric
Lightness
44%
dark
Brightness
80%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0787
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
White
8.16:1
Closest name
Dark Violet
ΔE2000 6.6
Where it sits
Hue268° of 360°
Saturation85%
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#6a11cd
RGBrgb(106, 17, 205)
HSLhsl(268, 85%, 44%)
CMYKcmyk(48%, 92%, 0%, 20%)
LABlab(33.7 68.3 -76.8)
LCHlch(33.7 102.8 311.7)
OKLCHoklch(0.461 0.243 295.2)
Decimal6951373
Display P3color(display-p3 0.416 0.067 0.804)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6a11cd on white: 8.16:1
AA ✓ pass · AA-large · AAA
Aa
#6a11cd on black: 2.57:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0051D2
deuteranopia · #004CCA
tritanopia · #4C5279

Color scale — 50 to 950

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

#F7F2FC
#EFE5FA
#DDC5F7
#C497F6
#A764F2
#8A30EE
#7513E2
#6a11cd
#4E0C97
#3B0E6D
#250844
Base = 700Lightest = 50 · #F7F2FCDarkest = 950 · #250844
:root {
  --brand-50: #F7F2FC;
  --brand-100: #EFE5FA;
  --brand-200: #DDC5F7;
  --brand-300: #C497F6;
  --brand-400: #A764F2;
  --brand-500: #8A30EE;
  --brand-600: #7513E2;
  --brand-700: #6a11cd;
  --brand-800: #4E0C97;
  --brand-900: #3B0E6D;
  --brand-950: #250844;
  --brand: #6a11cd;
  --brand-ink: #ffffff;
}

Colors that work with #6a11cd

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#98C00C
Second voice, not a rival
Dark variant#3D0A76
Hover, pressed, headers
Light variant#F2E7FD
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 #6a11cd

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#74CD11
Analogous left#1116CD
Analogous right#C811CD
Split-complement 1#CDC811
Split-complement 2#16CD11
Triadic 1#CD6A11
Triadic 2#11CD6A
Tetradic#CD1116

RGB percentages

Red41.6%
Green6.7%
Blue80.4%

CMYK percentages

Cyan48.3%
Magenta91.7%
Yellow0.0%
Key (black)19.6%

Color previews

#6a11cd text on a black background

contrast 2.57:1

Card sample

#6a11cd text on a white background

contrast 8.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #6a11cd

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.

#6a11cd 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#6a11cd, answered

What color is #6a11cd?

#6a11cd is a dark electric violet, closest to Dark Violet (ΔE2000 6.6). It sits at 268° on the hue wheel with 85% saturation and 44% lightness, which reads as cool.

What is the RGB value of #6a11cd?

rgb(106, 17, 205) — 106 red, 17 green and 205 blue out of 255, or 41.6% / 6.7% / 80.4% by channel.

Is #6a11cd a light or a dark color?

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

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

White. It scores 8.16:1 against #6a11cd, versus 2.57:1 for black — AAA at any size.

What is the complementary color of #6a11cd?

#74CD11 sits directly opposite on the wheel. Softer options are the split-complements #CDC811 and #16CD11, which give the same contrast with far less vibration.

What colors go well with #6a11cd?

For interface work: #F7F4FA as the surface, #D5C0ED for borders, #714B9B for secondary text, #98C00C as an accent and #3D0A76 for hover and pressed states. For a palette, the analogous pair #1116CD and #C811CD stays calm, while #74CD11 is the loudest partner.

What is #6a11cd in CMYK for printing?

cmyk(48%, 92%, 0%, 20%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #6a11cd 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 #AF11CD; nudged cooler, #230FCF.

Work with #6a11cd in the Color Lab