Skip to content

#6a2dfd

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

RGB
106, 45, 253
HSL
258°, 98%, 58%
CMYK
58, 82, 0, 1
Luminance
0.1203

At a glance

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

Hex
#6a2dfd
Hue
258°
violet
Saturation
98%
electric
Lightness
58%
balanced
Brightness
99%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1203
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Electric
Best ink
White
6.16:1
Closest name
Blue Violet
ΔE2000 5.3
Where it sits
Hue258° of 360°
Saturation98%
Lightness58%
Temperature
Warm ← → Cool74% 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#6a2dfd
RGBrgb(106, 45, 253)
HSLhsl(258, 98%, 58%)
CMYKcmyk(58%, 82%, 0%, 1%)
LABlab(41.3 71.8 -91.7)
LCHlch(41.3 116.5 308.1)
OKLCHoklch(0.527 0.274 285.5)
Decimal6958589
Display P3color(display-p3 0.416 0.176 0.992)

Copy-ready code

/* CSS */
color: #6a2dfd;
background-color: #6a2dfd;
/* Tailwind (arbitrary) */
class="text-[#6a2dfd] bg-[#6a2dfd]"
/* SCSS */
$brand: #6a2dfd;
/* SwiftUI */
Color(red: 0.416, green: 0.176, blue: 0.992)
/* Android */
Color.parseColor("#6a2dfd")
/* Flutter */
Color(0xFF6A2DFD)
/* Python / OpenCV (BGR) */
(253, 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 #6a2dfd · 6.16:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.16:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.41:1
AA fail · AA large pass · AAA fail
Reading the other direction: #6a2dfd as text scores 6.16:1 on white and 3.41:1 on black.

Accessibility — WCAG contrast

Aa
#6a2dfd on white: 6.16:1
AA ✓ pass · AA-large · AAA
Aa
#6a2dfd on black: 3.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0067FF
deuteranopia · #005BF9
tritanopia · #0B6F99

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #6a2dfd is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F5F1FD
#EBE3FC
#D2C1FB
#B090FE
#8958FD
#6a2dfd
#4902F2
#3D02CA
#3102A2
#260674
#180449
Base = 500Lightest = 50 · #F5F1FDDarkest = 950 · #180449
:root {
  --brand-50: #F5F1FD;
  --brand-100: #EBE3FC;
  --brand-200: #D2C1FB;
  --brand-300: #B090FE;
  --brand-400: #8958FD;
  --brand-500: #6a2dfd;
  --brand-600: #4902F2;
  --brand-700: #3D02CA;
  --brand-800: #3102A2;
  --brand-900: #260674;
  --brand-950: #180449;
  --brand: #6a2dfd;
  --brand-ink: #ffffff;
}

Colors that work with #6a2dfd

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#CDC0ED
Hairlines and dividers
Muted text#624B9B
Captions on the surface
Accent#C3CC00
Second voice, not a rival
Dark variant#26017E
Hover, pressed, headers
Light variant#EDE6FF
Selected rows, tints
Dark surface#191424
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 #6a2dfd

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
  • 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#C0FD2D
Analogous left#2D58FD
Analogous right#D22DFD
Split-complement 1#FDD22D
Split-complement 2#58FD2D
Triadic 1#FD6A2D
Triadic 2#2DFD6A
Tetradic#FD2D58

RGB percentages

Red41.6%
Green17.6%
Blue99.2%

CMYK percentages

Cyan58.1%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#6a2dfd text on a black background

contrast 3.41:1

Card sample

#6a2dfd text on a white background

contrast 6.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #6a2dfd

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.

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

#6a2dfd, answered

What color is #6a2dfd?

#6a2dfd is a balanced electric violet, closest to Blue Violet (ΔE2000 5.3). It sits at 258° on the hue wheel with 98% saturation and 58% lightness, which reads as cool.

What is the RGB value of #6a2dfd?

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

Is #6a2dfd a light or a dark color?

It is a dark color. Relative luminance is 0.1203 and perceived brightness is 43%, so white text on it reaches 6.16:1.

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

White. It scores 6.16:1 against #6a2dfd, versus 3.41:1 for black — AA at any size.

What is the complementary color of #6a2dfd?

#C0FD2D sits directly opposite on the wheel. Softer options are the split-complements #FDD22D and #58FD2D, which give the same contrast with far less vibration.

What colors go well with #6a2dfd?

For interface work: #F6F4FA as the surface, #CDC0ED for borders, #624B9B for secondary text, #C3CC00 as an accent and #26017E for hover and pressed states. For a palette, the analogous pair #2D58FD and #D22DFD stays calm, while #C0FD2D is the loudest partner.

What is #6a2dfd in CMYK for printing?

cmyk(58%, 82%, 0%, 1%). 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 #6a2dfd warm or cool?

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

Work with #6a2dfd in the Color Lab