Skip to content

#6c02a2

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

RGB
108, 2, 162
HSL
280°, 98%, 32%
CMYK
33, 99, 0, 37
Luminance
0.0584

At a glance

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

Hex
#6c02a2
Hue
280°
violet
Saturation
98%
electric
Lightness
32%
dark
Brightness
64%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0584
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Electric
Best ink
White
9.69:1
Closest name
Rebecca Purple
ΔE2000 6.3
Where it sits
Hue280° of 360°
Saturation98%
Lightness32%
Temperature
Warm ← → Cool61% 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#6c02a2
RGBrgb(108, 2, 162)
HSLhsl(280, 98%, 32%)
CMYKcmyk(33%, 99%, 0%, 37%)
LABlab(29.0 61.8 -58.9)
LCHlch(29.0 85.4 316.4)
OKLCHoklch(0.417 0.212 307.7)
Decimal7078562
Display P3color(display-p3 0.424 0.008 0.635)

Copy-ready code

/* CSS */
color: #6c02a2;
background-color: #6c02a2;
/* Tailwind (arbitrary) */
class="text-[#6c02a2] bg-[#6c02a2]"
/* SCSS */
$brand: #6c02a2;
/* SwiftUI */
Color(red: 0.424, green: 0.008, blue: 0.635)
/* Android */
Color.parseColor("#6c02a2")
/* Flutter */
Color(0xFF6C02A2)
/* Python / OpenCV (BGR) */
(162, 2, 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 #6c02a2 · 9.69:1
Use #ffffffAAA at every size.
Aa
White text · 9.69:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.17:1
AA fail · AA large fail · AAA fail
Reading the other direction: #6c02a2 as text scores 9.69:1 on white and 2.17:1 on black.

Accessibility — WCAG contrast

Aa
#6c02a2 on white: 9.69:1
AA ✓ pass · AA-large · AAA
Aa
#6c02a2 on black: 2.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0041A6
deuteranopia · #00459F
tritanopia · #633A5E

Color scale — 50 to 950

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

#F9F1FD
#F4E4FC
#E7C1FB
#D990FE
#C659FD
#B321FC
#A103F2
#8702CA
#6c02a2
#4F0674
#310449
Base = 800Lightest = 50 · #F9F1FDDarkest = 950 · #310449
:root {
  --brand-50: #F9F1FD;
  --brand-100: #F4E4FC;
  --brand-200: #E7C1FB;
  --brand-300: #D990FE;
  --brand-400: #C659FD;
  --brand-500: #B321FC;
  --brand-600: #A103F2;
  --brand-700: #8702CA;
  --brand-800: #6c02a2;
  --brand-900: #4F0674;
  --brand-950: #310449;
  --brand: #6c02a2;
  --brand-ink: #ffffff;
}

Colors that work with #6c02a2

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#F8F4FA
Tinted page background
Border#DEC0ED
Hairlines and dividers
Muted text#804B9B
Captions on the surface
Accent#77CC00
Second voice, not a rival
Dark variant#54027E
Hover, pressed, headers
Light variant#F6E6FF
Selected rows, tints
Dark surface#1F1424
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 #6c02a2

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#38A202
Analogous left#1C02A2
Analogous right#A20288
Split-complement 1#88A202
Split-complement 2#02A21C
Triadic 1#A26C02
Triadic 2#02A26C
Tetradic#A21C02

RGB percentages

Red42.4%
Green0.8%
Blue63.5%

CMYK percentages

Cyan33.3%
Magenta98.8%
Yellow0.0%
Key (black)36.5%

Color previews

#6c02a2 text on a black background

contrast 2.17:1

Card sample

#6c02a2 text on a white background

contrast 9.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #6c02a2

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.

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

#6c02a2, answered

What color is #6c02a2?

#6c02a2 is a dark electric violet, closest to Rebecca Purple (ΔE2000 6.3). It sits at 280° on the hue wheel with 98% saturation and 32% lightness, which reads as cool.

What is the RGB value of #6c02a2?

rgb(108, 2, 162) — 108 red, 2 green and 162 blue out of 255, or 42.4% / 0.8% / 63.5% by channel.

Is #6c02a2 a light or a dark color?

It is a dark color. Relative luminance is 0.0584 and perceived brightness is 32%, so white text on it reaches 9.69:1.

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

White. It scores 9.69:1 against #6c02a2, versus 2.17:1 for black — AAA at any size.

What is the complementary color of #6c02a2?

#38A202 sits directly opposite on the wheel. Softer options are the split-complements #88A202 and #02A21C, which give the same contrast with far less vibration.

What colors go well with #6c02a2?

For interface work: #F8F4FA as the surface, #DEC0ED for borders, #804B9B for secondary text, #77CC00 as an accent and #54027E for hover and pressed states. For a palette, the analogous pair #1C02A2 and #A20288 stays calm, while #38A202 is the loudest partner.

What is #6c02a2 in CMYK for printing?

cmyk(33%, 99%, 0%, 37%). 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 #6c02a2 warm or cool?

Cool — it scores 61 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A2029D; nudged cooler, #3100A4.

Work with #6c02a2 in the Color Lab