#666666 color

#666666 is rgb(102, 102, 102) in RGB and hsl(0, 0%, 40%) in HSL. The closest CSS named color is dimgray (#696969, ΔE 1.1). Use white text on it (contrast 5.74:1).

#666666red
HEX#666666
Short HEX#666
RGBrgb(102, 102, 102)
RGB percentrgb(40%, 40%, 40%)
HSLhsl(0, 0%, 40%)
HSV / HSBhsv(0, 0%, 40%)
CMYKcmyk(0%, 0%, 0%, 60%)

Edit in the color converter → · Check contrast → · Shades →

About #666666

#666666 is a medium-dark, neutral gray. It belongs to the gray family and reads as a neutral color. All three channels are equal (102), so it is a pure gray at 40% brightness with no hue at all. Colors like this are typically used for borders, secondary text, dividers and neutral UI.

Color conversions

HEX#666666
Short HEX#666
RGBrgb(102, 102, 102)
RGB percentrgb(40%, 40%, 40%)
HSLhsl(0, 0%, 40%)
HSV / HSBhsv(0, 0%, 40%)
CMYKcmyk(0%, 0%, 0%, 60%)
CIELAB (D65)lab(43.2 0 0)
Decimal6710886
Binary01100110 01100110 01100110

HEX 66 66 66 → 102, 102, 102 (each pair is a base-16 number: 6×16 + 6 = 102)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #666666

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #666666RatioAA normalAA largeAAA normalAAA large
White text5.74:1PassPassFailPass
Black text3.66:1FailPassFailFail
White text on #666666
Black text on #666666
#666666 text on white
#666666 text on black

Relative luminance is 0.1329 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#666666

Deuteranopia
#666666

Tritanopia
#666666

Achromatopsia
#666666

People with red–green color blindness see this color almost unchanged (ΔE 0 for deuteranopia), so it is a safe choice where color carries meaning. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
dimgray#6969691.1
gray#80808010.3
slategray#70809013
lightslategray#77889915.7

Nearby colors

CSS

.element {
  color: #666666;
  background-color: rgb(102, 102, 102);
  border: 1px solid hsl(0, 0%, 40%);
  box-shadow: 0 2px 8px rgb(102 102 102 / 50%);
}
:root { --brand: #666666; }

Frequently asked questions

What color is #666666?
A medium-dark neutral gray in the gray family. Closest CSS name: dimgray.
What is #666666 in RGB?
rgb(102, 102, 102): red 102, green 102, blue 102.
What is the complementary color of #666666?
#666666, found by rotating the hue 180°.