Light gray color (#D3D3D3)
#D3D3D3 (Light gray) is a light gray colour. It is rgb(211, 211, 211) in RGB and hsl(0, 0%, 83%) in HSL. Text in black reads better on it: the contrast is 14.03:1 against black and 1.50:1 against white.
How to work it out
- 1
A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).
\mathrm{#D3D3D3}:\quad R=\mathrm{D3}_{16}=211,\ G=\mathrm{D3}_{16}=211,\ B=\mathrm{D3}_{16}=211 - 2
HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.
- 3
The complementary colour sits opposite on the wheel: add 180° to the hue.
0^\circ + 180^\circ = 180^\circ ;\Rightarrow; \mathrm{#D3D3D3} - 4
Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).
LaTeX source of the formulas on this page
\[ \mathrm{#D3D3D3} = \mathrm{rgb}(211, 211, 211) \]
\[ \mathrm{#D3D3D3}:\quad R=\mathrm{D3}_{16}=211,\ G=\mathrm{D3}_{16}=211,\ B=\mathrm{D3}_{16}=211 \]
\[ H=0^\circ,\quad S=0\%,\quad L=83\% \]
\[ 0^\circ + 180^\circ = 180^\circ ;\Rightarrow; \mathrm{#D3D3D3} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 1.50:1\ \text{(on white)} \]Light gray in every colour format
| Format | Value |
|---|---|
| HEX | #D3D3D3 |
| RGB | rgb(211, 211, 211) |
| RGB (percent) | rgb(82.7%, 82.7%, 82.7%) |
| HSL | hsl(0, 0%, 83%) |
| HSV / HSB | hsv(0, 0%, 83%) |
| CMYK | cmyk(0%, 0%, 0%, 17%) |
| Decimal | 13882323 |
| Description | light gray |
| CSS name | lightgray |
Text contrast (WCAG)
| Background of this colour with… | Contrast | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White text | 1.50:1 | fail | fail | fail | fail |
| Black text | 14.03:1 | pass | pass | pass | pass |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #232323 #464646 #6A6A6A #8D8D8D #B0B0B0 |
| This colour | #D3D3D3 |
| Tints (mixed with white) | #DADADA #E2E2E2 #E9E9E9 #F0F0F0 #F8F8F8 |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #D3D3D3 | 0 |
| Deuteranopia | #D3D3D3 | 0 |
| Tritanopia | #D3D3D3 | 0 |
| Grayscale | #D3D3D3 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Gainsboro | #DCDCDC |
| Silver | #C0C0C0 |
| White smoke | #F5F5F5 |
| Linen | #FAF0E6 |
Questions
What is the RGB value of #D3D3D3?
rgb(211, 211, 211): red 211, green 211, blue 211.
What is the HSL value of #D3D3D3?
hsl(0, 0%, 83%): a hue of 0°, 0% saturation and 83% lightness.
What is the complementary colour of #D3D3D3?
#D3D3D3, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #2C2C2C.
Should I use white or black text on #D3D3D3?
Black. White gives 1.50:1 and black 14.03:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #D3D3D3?
cmyk(0%, 0%, 0%, 17%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #D3D3D3 a named colour?
Yes: it is the CSS colour name "lightgray".