AfoliOpen Afoli →

Spruce color #0A5F38

Spruce is a color name from the xkcd color survey for the hex code #0A5F38 — RGB 10, 95, 56, HSL 152°, 81%, 21%.

Open in Afoli Colour tools →

#0A5F38Spruce

Color codes

HEX
#0A5F38
RGB
rgb(10, 95, 56)
HSL
hsl(152, 81%, 21%)
CMYK
89%, 0%, 41%, 63%
OKLCH
oklch(42.9% 0.099 156.4)

Tints and shades

#DCFFE8#A3EEBF#89D3A5#6FB98C#559F74#3C865C#206D45#005530#003C21#002512#001005

Color harmonies

Complementary
#0A5F38#703864
Analogous
#415912#0A5F38#005C56
Triadic
#0A5F38#424985#7C3926
Split complementary
#0A5F38#5D3F7A#7B3547
Tetradic
#0A5F38#155382#703864#724300

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Spruce text on white7.76 : 186AAA — any text
Spruce text on black2.71 : 1-16Fails for text
White text on Spruce7.76 : 1-91AAA — any text
Black text on Spruce2.71 : 118Fails for text

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Palettes with this color

Frequently asked questions

What is the hex code of Spruce?

Spruce has the hex code #0A5F38, which is RGB 10, 95, 56 and HSL 152°, 81%, 21%.

Which text color reads best on Spruce?

White text: contrast 7.76 : 1 (black text: 2.71 : 1).

Which colors go well with Spruce?

Its complementary color is #703864; analogous colors are #415912 and #005C56; a triadic set adds #424985 and #7C3926.

Similar colors

Sources and licences

Updated November 21, 2026