Skip to content

#6902a2

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

RGB
105, 2, 162
HSL
279°, 98%, 32%
CMYK
35, 99, 0, 37
Luminance
0.0566

At a glance

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

Hex
#6902a2
Hue
279°
violet
Saturation
98%
electric
Lightness
32%
dark
Brightness
64%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0566
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Electric
Best ink
White
9.85:1
Closest name
Rebecca Purple
ΔE2000 6.4
Where it sits
Hue279° of 360°
Saturation98%
Lightness32%
Temperature
Warm ← → Cool62% 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#6902a2
RGBrgb(105, 2, 162)
HSLhsl(279, 98%, 32%)
CMYKcmyk(35%, 99%, 0%, 37%)
LABlab(28.5 61.5 -59.7)
LCHlch(28.5 85.7 315.8)
OKLCHoklch(0.413 0.211 306.3)
Decimal6881954
Display P3color(display-p3 0.412 0.008 0.635)

Copy-ready code

/* CSS */
color: #6902a2;
background-color: #6902a2;
/* Tailwind (arbitrary) */
class="text-[#6902a2] bg-[#6902a2]"
/* SCSS */
$brand: #6902a2;
/* SwiftUI */
Color(red: 0.412, green: 0.008, blue: 0.635)
/* Android */
Color.parseColor("#6902a2")
/* Flutter */
Color(0xFF6902A2)
/* Python / OpenCV (BGR) */
(162, 2, 105)

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

Accessibility — WCAG contrast

Aa
#6902a2 on white: 9.85:1
AA ✓ pass · AA-large · AAA
Aa
#6902a2 on black: 2.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0041A6
deuteranopia · #00449F
tritanopia · #5E3A5E

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #6902a2 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
#F3E4FC
#E6C1FB
#D790FE
#C259FD
#AE21FC
#9D03F2
#8302CA
#6902a2
#4D0674
#300449
Base = 800Lightest = 50 · #F9F1FDDarkest = 950 · #300449
:root {
  --brand-50: #F9F1FD;
  --brand-100: #F3E4FC;
  --brand-200: #E6C1FB;
  --brand-300: #D790FE;
  --brand-400: #C259FD;
  --brand-500: #AE21FC;
  --brand-600: #9D03F2;
  --brand-700: #8302CA;
  --brand-800: #6902a2;
  --brand-900: #4D0674;
  --brand-950: #300449;
  --brand: #6902a2;
  --brand-ink: #ffffff;
}

Colors that work with #6902a2

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#DDC0ED
Hairlines and dividers
Muted text#7E4B9B
Captions on the surface
Accent#7CCC00
Second voice, not a rival
Dark variant#52027E
Hover, pressed, headers
Light variant#F6E6FF
Selected rows, tints
Dark surface#1E1424
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 #6902a2

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#3BA202
Analogous left#1902A2
Analogous right#A2028B
Split-complement 1#8BA202
Split-complement 2#02A219
Triadic 1#A26902
Triadic 2#02A269
Tetradic#A21902

RGB percentages

Red41.2%
Green0.8%
Blue63.5%

CMYK percentages

Cyan35.2%
Magenta98.8%
Yellow0.0%
Key (black)36.5%

Color previews

#6902a2 text on a black background

contrast 2.13:1

Card sample

#6902a2 text on a white background

contrast 9.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #6902a2;
Background color
Panel with #6902a2 background
background-color: #6902a2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #6902a2;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #6902a2

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.

#6902a2 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.

#6902a2, answered

What color is #6902a2?

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

What is the RGB value of #6902a2?

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

Is #6902a2 a light or a dark color?

It is a dark color. Relative luminance is 0.0566 and perceived brightness is 31%, so white text on it reaches 9.85:1.

Should I use black or white text on #6902a2?

White. It scores 9.85:1 against #6902a2, versus 2.13:1 for black — AAA at any size.

What is the complementary color of #6902a2?

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

What colors go well with #6902a2?

For interface work: #F8F4FA as the surface, #DDC0ED for borders, #7E4B9B for secondary text, #7CCC00 as an accent and #52027E for hover and pressed states. For a palette, the analogous pair #1902A2 and #A2028B stays calm, while #3BA202 is the loudest partner.

What is #6902a2 in CMYK for printing?

cmyk(35%, 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 #6902a2 warm or cool?

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

Work with #6902a2 in the Color Lab