Skip to content
PantoneTools
neutral
Tailwind CSS palette

Gray 900

gray-900 · #111827

HEX

#111827

RGB

rgb(17, 24, 39)

CMYK

cmyk(56%, 38%, 0%, 85%)

HSL

hsl(221, 39%, 11%)

LAB

lab(8.3, 2.0, -11.3)

What is Gray 900?

Gray 900 is the gray-900 reference in the Tailwind CSS palette. Its sRGB value is #111827 (rgb 17, 24, 39). It sits in the neutral family. The default color palette shipped with Tailwind CSS v3 by Tailwind Labs. 22 color families across 11 lightness steps (50 to 950). See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Gray 900 as a background.

Black text on this color

Sample text · 1.18 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 17.74 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Gray 900

An 11-step tonal scale derived from Gray 900 (#111827). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #ECEDEE

50

#ECEDEE

#ECEDEE

Copied #D9DADC

100

#D9DADC

#D9DADC

Copied #B3B5BA

200

#B3B5BA

#B3B5BA

Copied #888C93

300

#888C93

#888C93

Copied #4D525D

400

#4D525D

#4D525D

Copied #111827

500

#111827

#111827

Copied #0E1421

600

#0E1421

#0E1421

Copied #0B1019

700

#0B1019

#0B1019

Copied #080B12

800

#080B12

#080B12

Copied #04060A

900

#04060A

#04060A

Copied #020305

950

#020305

#020305

Lighter tints (mixed with white)

Copied #6E6F72

15%

#6E6F72

Copied #969698

30%

#969698

Copied #B3B4B5

45%

#B3B4B5

Copied #CCCCCD

60%

#CCCCCD

Copied #E1E1E1

75%

#E1E1E1

Darker shades (mixed with black)

Copied #0F1624

15%

#0F1624

Copied #0D1320

30%

#0D1320

Copied #0A101B

45%

#0A101B

Copied #070C16

60%

#070C16

Copied #050810

75%

#050810

Color harmonies for Gray 900

Classic color-theory harmonies derived from rotating the hue of Gray 900. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #111827

#111827

#111827

Copied #272011

#272011

#272011

Triadic

Three colors 120° apart

Copied #111827

#111827

#111827

Copied #271118

#271118

#271118

Copied #182711

#182711

#182711

Analogous

Two neighbors ±30° on the wheel

Copied #112327

#112327

#112327

Copied #111827

#111827

#111827

Copied #151127

#151127

#151127

Split-complementary

Base + two colors flanking its complement

Copied #111827

#111827

#111827

Copied #271511

#271511

#271511

Copied #232711

#232711

#232711

Tetradic

Two complementary pairs

Copied #111827

#111827

#111827

Copied #201127

#201127

#201127

Copied #272011

#272011

#272011

Copied #182711

#182711

#182711

Square

Four colors evenly spaced 90° apart

Copied #111827

#111827

#111827

Copied #271123

#271123

#271123

Copied #272011

#272011

#272011

Copied #112715

#112715

#112715

Gray 900 in every color space

Full conversion of Gray 900 across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#111827

RGB

rgb(17, 24, 39)

CMYK

cmyk(56%, 38%, 0%, 85%)

HSL

hsl(221, 39%, 11%)

HSV

hsv(221, 56%, 15%)

HWB

hwb(221 7% 85%)

CIE Lab

lab(8.3 2.0 -11.3)

OKLCH

oklch(21.0% 0.032 264.7)

XYZ (D65)

xyz(0.92, 0.92, 2.05)

Copy-ready code for Gray 900

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #111827;
background-color: #111827;

CSS variable

:root {
  --color-gray-900: #111827;
}

Tailwind config

// tailwind.config.js
colors: {
  'gray-900': '#111827',
}

Sass

$color-gray-900: #111827;

Swift UIColor

UIColor(red: 0.067, green: 0.094, blue: 0.153, alpha: 1.0)

Android XML

<color name="gray-900">#111827</color>

Closest match in every color system

The nearest Gray 900 equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in Tailwind CSS palette

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #1D1E33

RAL 5003

#1D1E33

Sapphire blue

Copied #18171C

RAL 5004

#18171C

Black blue

Copied #26252D

RAL 5008

#26252D

Grey blue

Copied #1E213D

RAL 5013

#1E213D

Cobalt blue

Copied #231A24

RAL 5011

#231A24

Steel blue

Copied #0E294B

RAL 5010

#0E294B

Gentian blue

FAQ about Gray 900

What is the HEX code for Gray 900?

Gray 900 (gray-900) has the HEX code #111827. In RGB it is rgb(17, 24, 39), and in CMYK it is cmyk(56%, 38%, 0%, 85%).

What is the OKLCH value of Gray 900?

Gray 900 converts to oklch(0.210 0.032 264.7). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Gray 900 accessible for body text?

Used as a background, Gray 900 has a contrast ratio of 1.18:1 with black text and 17.74:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use white text and verify in real UI context.

What is the closest Pantone to Gray 900?

The closest Pantone reference to Gray 900 by ΔE2000 perceptual distance is Pantone Black 6 C (#101820). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Gray 900?

The closest RAL Classic reference to Gray 900 by ΔE2000 distance is RAL 5003 (Sapphire blue, #1D1E33). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Gray 900?

The complementary color (180° opposite on the HSL color wheel) of Gray 900 is #272011. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

Tailwind CSS default palette (v3)

The default color palette shipped with Tailwind CSS v3 by Tailwind Labs Inc. Use as a reference for design tokens, web color systems, and Tailwind-based design conversations. Names like 'blue-500' are the project's own naming convention.

Source type
derived
Confidence
high
License
MIT
Last reviewed
2026-05-24

Workflow tags

tailwind
design-token
web-system
neutral

Tailwind palette values are designed for digital interfaces under sRGB. For print, convert to a process-appropriate value and proof against the substrate; do not rely on sRGB CMYK conversion for color-critical print work.

Tailwind CSS palette · Gray 900 — #111827 | PantoneTools