#2C5712#2C5712

#2C5712 is a dark, moderate yellow-green. Relative luminance 0.074; OKLCH L 41.0% C 0.109 H 136.3°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#2C5712
RGBrgb(44, 87, 18)
HSLhsl(97, 66%, 21%)
HSVhsv(97, 79%, 34%)
CMYKcmyk(49.4%, 0%, 79.3%, 65.9%)
CIE-LABlab(32.69, -28.24, 33.38)
CIE-LCHlch(32.69, 43.73, 130.23°)
OKLaboklab(41.03% -0.0785 0.0751)
OKLCHoklch(41.03% 0.109 136.3)
XYZxyz(4.5560, 7.3952, 1.7595)
Luminance0.0740 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5712 #3D1257
analogous
#4E5712 #2C5712 #12571A
triadic
#2C5712 #122C57 #57122C
tetradic
#2C5712 #124E57 #3D1257 #571A12
square
#2C5712 #124E57 #3D1257 #571A12
split-complementary
#2C5712 #1A1257 #57124E
monochromatic
#0D1905 #122408 #2C5712 #468A1C #5FBC27

Accessibility & contrast

On white

8.47
#2C5712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2C5712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5712
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5712#FFFFFF#000000##FFFFFF
##2C57121.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F06
Deuteranopia (green-blind)
#554C19
Tritanopia (blue-blind)
#2A544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2c5712;
/* rgb */ color: rgb(44, 87, 18);
/* oklch */ color: oklch(41.0% 0.109 136.3);
Tailwind
colors: {
  custom: {
    50: '#6a8755',
    500: '#2c5712',
    950: '#000000',
  },
}
SCSS
$custom: #2c5712;
$custom-light: #6a8755;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5712",
  "rgb": {
    "r": 44,
    "g": 87,
    "b": 18
  },
  "hsl": {
    "h": 97.391,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41032,
    "c": 0.10866,
    "h": 136.3
  },
  "luminance": 0.07396
}

Semantic roles & 50–950 ramp

primary
#2C5712
secondary
#6E3590
accent
#3FE9A9
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2C5712

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

Preview Lab → · Contrast checker → · Palette generator →

#2C5712 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva