CSS named color

DimGray #696969

dimgray rgb(105, 105, 105)

DimGray is a medium gray with the hex code #696969, which converts to rgb(105, 105, 105). The British spelling dimgrey is an alias and renders exactly the same color. Open #696969 in the converter to tweak it.

DimGray color values

HEX#696969
HEX (shorthand)—
RGBrgb(105, 105, 105)
RGBArgba(105, 105, 105, 1)
8-digit HEX#696969FF
HSLhsl(0, 0%, 41%)
HSV / HSB0°, 0%, 41%
CMYK0%, 0%, 0%, 59%
RGB 0–10.412, 0.412, 0.412
Decimal6908265
CSS keyworddimgray

How #696969 converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: 69 → 105, 69 → 105, 69 → 105. That gives rgb(105, 105, 105). The step-by-step guide explains the math.

Shades of DimGray

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of DimGray

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of DimGray on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.

DimGray has no hue (saturation is 0%), so hue-based harmonies collapse to the same gray. Grays pair with any accent color — pick one from the palette generator.

Contrast and accessibility

TextBackgroundRatioWCAG 2.x
White DimGray 5.48:1AA
Black DimGray 3.82:1AA Large only

Use white text on a dimgray background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use DimGray in CSS

.element {
  color: dimgray;                         /* keyword */
  background-color: #696969;            /* hex */
  border-color: rgb(105 105 105 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #69696980 is DimGray at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for DimGray?

The CSS named color dimgray is #696969 in hexadecimal. In CSS you can write color: dimgray; or color: #696969; — both produce the same pixel.

What is DimGray in RGB?

DimGray is rgb(105, 105, 105): red 105, green 105, blue 105 on the 0–255 scale. As normalized 0–1 floats that is (0.412, 0.412, 0.412).

Is white or black text more readable on DimGray?

White text is more readable. White on #696969 has a contrast ratio of 5.48:1 (AA), black on #696969 has 3.82:1 (AA Large only). WCAG AA needs 4.5:1 for normal text.

Copied!