Skip to content

#6c0198

a dark, electric violet · cool · closest name: Indigo

RGB
108, 1, 152
HSL
283°, 99%, 30%
CMYK
29, 99, 0, 40
Luminance
0.0548

At a glance

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

Hex
#6c0198
Hue
283°
violet
Saturation
99%
electric
Lightness
30%
dark
Brightness
60%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0548
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Electric
Best ink
White
10.02:1
Closest name
Indigo
ΔE2000 6.2
Where it sits
Hue283° of 360°
Saturation99%
Lightness30%
Temperature
Warm ← → Cool60% 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#6c0198
RGBrgb(108, 1, 152)
HSLhsl(283, 99%, 30%)
CMYKcmyk(29%, 99%, 0%, 40%)
LABlab(28.1 60.0 -54.4)
LCHlch(28.1 81.0 317.8)
OKLCHoklch(0.408 0.204 310.9)
Decimal7078296
Display P3color(display-p3 0.424 0.004 0.596)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6c0198 on white: 10.02:1
AA ✓ pass · AA-large · AAA
Aa
#6c0198 on black: 2.10:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003E9B
deuteranopia · #004495
tritanopia · #663457

Color scale — 50 to 950

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

#FAF1FE
#F5E3FC
#EAC0FB
#DE90FE
#CD58FE
#BD20FE
#AD02F3
#9001CB
#6c0198
#540675
#350449
Base = 800Lightest = 50 · #FAF1FEDarkest = 950 · #350449
:root {
  --brand-50: #FAF1FE;
  --brand-100: #F5E3FC;
  --brand-200: #EAC0FB;
  --brand-300: #DE90FE;
  --brand-400: #CD58FE;
  --brand-500: #BD20FE;
  --brand-600: #AD02F3;
  --brand-700: #9001CB;
  --brand-800: #6c0198;
  --brand-900: #540675;
  --brand-950: #350449;
  --brand: #6c0198;
  --brand-ink: #ffffff;
}

Colors that work with #6c0198

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#F9F4FA
Tinted page background
Border#E0C0ED
Hairlines and dividers
Muted text#834B9B
Captions on the surface
Accent#539900
Second voice, not a rival
Dark variant#5A017F
Hover, pressed, headers
Light variant#F7E6FF
Selected rows, tints
Dark surface#201424
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 #6c0198

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#2D9801
Analogous left#200198
Analogous right#980179
Split-complement 1#799801
Split-complement 2#019820
Triadic 1#986C01
Triadic 2#01986C
Tetradic#982001

RGB percentages

Red42.4%
Green0.4%
Blue59.6%

CMYK percentages

Cyan28.9%
Magenta99.3%
Yellow0.0%
Key (black)40.4%

Color previews

#6c0198 text on a black background

contrast 2.10:1

Card sample

#6c0198 text on a white background

contrast 10.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(108, 1, 152, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(108, 1, 152, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6c0198;
background: linear-gradient(135deg, #6c0198, #98015F);

Monochromatic scale

Palettes built from #6c0198

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.

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

#6c0198, answered

What color is #6c0198?

#6c0198 is a dark electric violet, closest to Indigo (ΔE2000 6.2). It sits at 283° on the hue wheel with 99% saturation and 30% lightness, which reads as cool.

What is the RGB value of #6c0198?

rgb(108, 1, 152) — 108 red, 1 green and 152 blue out of 255, or 42.4% / 0.4% / 59.6% by channel.

Is #6c0198 a light or a dark color?

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

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

White. It scores 10.02:1 against #6c0198, versus 2.10:1 for black — AAA at any size.

What is the complementary color of #6c0198?

#2D9801 sits directly opposite on the wheel. Softer options are the split-complements #799801 and #019820, which give the same contrast with far less vibration.

What colors go well with #6c0198?

For interface work: #F9F4FA as the surface, #E0C0ED for borders, #834B9B for secondary text, #539900 as an accent and #5A017F for hover and pressed states. For a palette, the analogous pair #200198 and #980179 stays calm, while #2D9801 is the loudest partner.

What is #6c0198 in CMYK for printing?

cmyk(29%, 99%, 0%, 40%). 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 #6c0198 warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #98018D; nudged cooler, #340099.

Work with #6c0198 in the Color Lab