#20540F#20540F

#20540F is a dark, moderate green. Relative luminance 0.067; OKLCH L 39.5% C 0.113 H 139.4°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#20540F
RGBrgb(32, 84, 15)
HSLhsl(105, 70%, 19%)
HSVhsv(105, 82%, 33%)
CMYKcmyk(61.9%, 0%, 82.1%, 67.1%)
CIE-LABlab(31.07, -31.15, 32.81)
CIE-LCHlch(31.07, 45.24, 133.51°)
OKLaboklab(39.55% -0.0857 0.0736)
OKLCHoklch(39.55% 0.113 139.4)
XYZxyz(3.8521, 6.6819, 1.5386)
Luminance0.0668 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20540F #430F54
analogous
#43540F #20540F #0F5420
triadic
#20540F #0F2054 #540F20
tetradic
#20540F #0F4354 #430F54 #54200F
square
#20540F #0F4354 #430F54 #54200F
split-complementary
#20540F #200F54 #540F43
monochromatic
#0A1A05 #0C2006 #20540F #348818 #48BC22

Accessibility & contrast

On white

8.99
#20540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#20540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20540F
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20540F#FFFFFF#000000##FFFFFF
##20540F1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C02
Deuteranopia (green-blind)
#504716
Tritanopia (blue-blind)
#1A5147
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #20540f;
/* rgb */ color: rgb(32, 84, 15);
/* oklch */ color: oklch(39.5% 0.113 139.4);
Tailwind
colors: {
  custom: {
    50: '#638553',
    500: '#20540f',
    950: '#000000',
  },
}
SCSS
$custom: #20540f;
$custom-light: #638553;
$custom-dark: #000000;
JSON
{
  "hex": "#20540f",
  "rgb": {
    "r": 32,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 105.217,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39549,
    "c": 0.11295,
    "h": 139.4
  },
  "luminance": 0.06682
}

Semantic roles & 50–950 ramp

primary
#20540F
secondary
#77318E
accent
#3BEDC1
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #20540F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#20540F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva