#2C4712#2C4712

#2C4712 is a dark, moderate yellow-green. Relative luminance 0.051; OKLCH L 36.4% C 0.085 H 132.5°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2C4712
RGBrgb(44, 71, 18)
HSLhsl(91, 60%, 17%)
HSVhsv(91, 75%, 28%)
CMYKcmyk(38%, 0%, 74.6%, 72.2%)
CIE-LABlab(26.98, -20.48, 27.53)
CIE-LCHlch(26.98, 34.31, 126.65°)
OKLaboklab(36.36% -0.0575 0.0628)
OKLCHoklch(36.36% 0.085 132.5)
XYZxyz(3.4011, 5.0855, 1.3745)
Luminance0.0509 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4712 #2D1247
analogous
#474712 #2C4712 #124712
triadic
#2C4712 #122C47 #47122C
tetradic
#2C4712 #124747 #2D1247 #471212
square
#2C4712 #124747 #2D1247 #471212
split-complementary
#2C4712 #121247 #471247
monochromatic
#0F1806 #0F1806 #2C4712 #4A781E #69A92B

Accessibility & contrast

On white

10.41
#2C4712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2C4712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4712
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4712#FFFFFF#000000##FFFFFF
##2C47121.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A410B
Deuteranopia (green-blind)
#463F16
Tritanopia (blue-blind)
#2C443C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c4712;
/* rgb */ color: rgb(44, 71, 18);
/* oklch */ color: oklch(36.4% 0.085 132.5);
Tailwind
colors: {
  custom: {
    50: '#687a53',
    500: '#2c4712',
    950: '#000000',
  },
}
SCSS
$custom: #2c4712;
$custom-light: #687a53;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4712",
  "rgb": {
    "r": 44,
    "g": 71,
    "b": 18
  },
  "hsl": {
    "h": 90.566,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36357,
    "c": 0.08515,
    "h": 132.5
  },
  "luminance": 0.05086
}

Semantic roles & 50–950 ramp

primary
#2C4712
secondary
#5B3580
accent
#45E395
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2C4712

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

Preview Lab → · Contrast checker → · Palette generator →

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