Skip to content

#6c18df

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

RGB
108, 24, 223
HSL
265°, 81%, 48%
CMYK
52, 89, 0, 13
Luminance
0.0917

At a glance

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

Hex
#6c18df
Hue
265°
violet
Saturation
81%
electric
Lightness
48%
balanced
Brightness
87%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0917
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.41:1
Closest name
Blue Violet
ΔE2000 5.7
Where it sits
Hue265° of 360°
Saturation81%
Lightness48%
Temperature
Warm ← → Cool69% 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#6c18df
RGBrgb(108, 24, 223)
HSLhsl(265, 81%, 48%)
CMYKcmyk(52%, 89%, 0%, 13%)
LABlab(36.3 71.1 -82.9)
LCHlch(36.3 109.2 310.6)
OKLCHoklch(0.484 0.257 292.1)
Decimal7084255
Display P3color(display-p3 0.424 0.094 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#6c18df on white: 7.41:1
AA ✓ pass · AA-large · AAA
Aa
#6c18df on black: 2.83:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0058E4
deuteranopia · #0051DC
tritanopia · #435B84

Color scale — 50 to 950

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

#F7F3FC
#EEE6F9
#DAC6F5
#C09AF4
#A067EF
#8134E9
#6c18df
#5914B8
#471093
#36106B
#220A43
Base = 600Lightest = 50 · #F7F3FCDarkest = 950 · #220A43
:root {
  --brand-50: #F7F3FC;
  --brand-100: #EEE6F9;
  --brand-200: #DAC6F5;
  --brand-300: #C09AF4;
  --brand-400: #A067EF;
  --brand-500: #8134E9;
  --brand-600: #6c18df;
  --brand-700: #5914B8;
  --brand-800: #471093;
  --brand-900: #36106B;
  --brand-950: #220A43;
  --brand: #6c18df;
  --brand-ink: #ffffff;
}

Colors that work with #6c18df

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#D3C0ED
Hairlines and dividers
Muted text#6C4B9B
Captions on the surface
Accent#9FBC10
Second voice, not a rival
Dark variant#380C73
Hover, pressed, headers
Light variant#F1E8FD
Selected rows, tints
Dark surface#1B1424
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 #6c18df

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
  • Text on black or near-black surfaces
  • 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#8BDF18
Analogous left#1828DF
Analogous right#CF18DF
Split-complement 1#DFCF18
Split-complement 2#28DF18
Triadic 1#DF6C18
Triadic 2#18DF6C
Tetradic#DF1828

RGB percentages

Red42.4%
Green9.4%
Blue87.5%

CMYK percentages

Cyan51.6%
Magenta89.2%
Yellow0.0%
Key (black)12.5%

Color previews

#6c18df text on a black background

contrast 2.83:1

Card sample

#6c18df text on a white background

contrast 7.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #6c18df

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.

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

#6c18df, answered

What color is #6c18df?

#6c18df is a balanced electric violet, closest to Blue Violet (ΔE2000 5.7). It sits at 265° on the hue wheel with 81% saturation and 48% lightness, which reads as cool.

What is the RGB value of #6c18df?

rgb(108, 24, 223) — 108 red, 24 green and 223 blue out of 255, or 42.4% / 9.4% / 87.5% by channel.

Is #6c18df a light or a dark color?

It is a dark color. Relative luminance is 0.0917 and perceived brightness is 38%, so white text on it reaches 7.41:1.

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

White. It scores 7.41:1 against #6c18df, versus 2.83:1 for black — AAA at any size.

What is the complementary color of #6c18df?

#8BDF18 sits directly opposite on the wheel. Softer options are the split-complements #DFCF18 and #28DF18, which give the same contrast with far less vibration.

What colors go well with #6c18df?

For interface work: #F7F4FA as the surface, #D3C0ED for borders, #6C4B9B for secondary text, #9FBC10 as an accent and #380C73 for hover and pressed states. For a palette, the analogous pair #1828DF and #CF18DF stays calm, while #8BDF18 is the loudest partner.

What is #6c18df in CMYK for printing?

cmyk(52%, 89%, 0%, 13%). 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 #6c18df warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B518DF; nudged cooler, #2115E1.

Work with #6c18df in the Color Lab