Skip to content

#20522a

a deep, soft green · cool · closest name: Dark Green

RGB
32, 82, 42
HSL
132°, 44%, 22%
CMYK
61, 0, 49, 68
Luminance
0.0651

At a glance

Every number on this page in one read: what #20522a is made of, how bright it looks, and which way it leans.

Hex
#20522a
Hue
132°
green
Saturation
44%
soft
Lightness
22%
deep
Brightness
32%
HSV value
Perceived
26%
weighted brightness
Luminance
0.0651
WCAG relative
Temperature
Cool
68/100 cool
Color family
Green
Tone
Soft
Best ink
White
9.12:1
Closest name
Dark Green
ΔE2000 10.7
Where it sits
Hue132° of 360°
Saturation44%
Lightness22%
Temperature
Warm ← → Cool68% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#20522a
RGBrgb(32, 82, 42)
HSLhsl(132, 44%, 22%)
CMYKcmyk(61%, 0%, 49%, 68%)
LABlab(30.7 -26.8 18.5)
LCHlch(30.7 32.5 145.3)
OKLCHoklch(0.393 0.086 147.9)
Decimal2118186
Display P3color(display-p3 0.125 0.322 0.165)

Copy-ready code

/* CSS */
color: #20522a;
background-color: #20522a;
/* Tailwind (arbitrary) */
class="text-[#20522a] bg-[#20522a]"
/* SCSS */
$brand: #20522a;
/* SwiftUI */
Color(red: 0.125, green: 0.322, blue: 0.165)
/* Android */
Color.parseColor("#20522a")
/* Flutter */
Color(0xFF20522A)
/* Python / OpenCV (BGR) */
(42, 82, 32)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #20522a · 9.12:1
Use #ffffffAAA at every size.
Aa
White text · 9.12:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.30:1
AA fail · AA large fail · AAA fail
Reading the other direction: #20522a as text scores 9.12:1 on white and 2.30:1 on black.

Accessibility — WCAG contrast

Aa
#20522a on white: 9.12:1
AA ✓ pass · AA-large · AAA
Aa
#20522a on black: 2.30:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #534B27
deuteranopia · #4C462D
tritanopia · #155048

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #20522a is pinned to step 900; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F5FAF6
#EAF5ED
#D1EBD6
#AEE0B8
#86D095
#5EC071
#45B05A
#39934B
#2E753C
#20522a
#17361D
Base = 900Lightest = 50 · #F5FAF6Darkest = 950 · #17361D
:root {
  --brand-50: #F5FAF6;
  --brand-100: #EAF5ED;
  --brand-200: #D1EBD6;
  --brand-300: #AEE0B8;
  --brand-400: #86D095;
  --brand-500: #5EC071;
  --brand-600: #45B05A;
  --brand-700: #39934B;
  --brand-800: #2E753C;
  --brand-900: #20522a;
  --brand-950: #17361D;
  --brand: #20522a;
  --brand-ink: #ffffff;
}

Colors that work with #20522a

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F4FAF6
Tinted page background
Border#C4E8CB
Hairlines and dividers
Muted text#4B9B5B
Captions on the surface
Accent#521E54
Second voice, not a rival
Dark variant#245C2F
Hover, pressed, headers
Light variant#EDF8EF
Selected rows, tints
Dark surface#142417
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #20522a

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#522048
Analogous left#2F5220
Analogous right#205243
Split-complement 1#432052
Split-complement 2#52202F
Triadic 1#2A2052
Triadic 2#522A20
Tetradic#202F52

RGB percentages

Red12.5%
Green32.2%
Blue16.5%

CMYK percentages

Cyan61.0%
Magenta0.0%
Yellow48.8%
Key (black)67.8%

Color previews

#20522a text on a black background

contrast 2.30:1

Card sample

#20522a text on a white background

contrast 9.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #20522a;
Background color
Panel with #20522a background
background-color: #20522a;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #20522a;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(32, 82, 42, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(32, 82, 42, 0.45);
Border & gradient
Gradient panel
border: 3px solid #20522a;
background: linear-gradient(135deg, #20522a, #20524C);

Monochromatic scale

Palettes built from #20522a

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#20522a in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#20522a, answered

What color is #20522a?

#20522a is a deep soft green, closest to Dark Green (ΔE2000 10.7). It sits at 132° on the hue wheel with 44% saturation and 22% lightness, which reads as cool.

What is the RGB value of #20522a?

rgb(32, 82, 42) — 32 red, 82 green and 42 blue out of 255, or 12.5% / 32.2% / 16.5% by channel.

Is #20522a a light or a dark color?

It is a dark color. Relative luminance is 0.0651 and perceived brightness is 26%, so white text on it reaches 9.12:1.

Should I use black or white text on #20522a?

White. It scores 9.12:1 against #20522a, versus 2.30:1 for black — AAA at any size.

What is the complementary color of #20522a?

#522048 sits directly opposite on the wheel. Softer options are the split-complements #432052 and #52202F, which give the same contrast with far less vibration.

What colors go well with #20522a?

For interface work: #F4FAF6 as the surface, #C4E8CB for borders, #4B9B5B for secondary text, #521E54 as an accent and #245C2F for hover and pressed states. For a palette, the analogous pair #2F5220 and #205243 stays calm, while #522048 is the loudest partner.

What is #20522a in CMYK for printing?

cmyk(61%, 0%, 49%, 68%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #20522a warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #285220; nudged cooler, #1F533D.

Work with #20522a in the Color Lab