#2C4912#2C4912

#2C4912 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.9% C 0.088 H 133.1°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#2C4912
RGBrgb(44, 73, 18)
HSLhsl(92, 60%, 18%)
HSVhsv(92, 75%, 29%)
CMYKcmyk(39.7%, 0%, 75.3%, 71.4%)
CIE-LABlab(27.69, -21.51, 28.28)
CIE-LCHlch(27.69, 35.53, 127.25°)
OKLaboklab(36.94% -0.0603 0.0644)
OKLCHoklch(36.94% 0.088 133.1)
XYZxyz(3.5304, 5.3441, 1.4176)
Luminance0.0534 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4912 #2F1249
analogous
#474912 #2C4912 #124913
triadic
#2C4912 #122C49 #49122C
tetradic
#2C4912 #124749 #2F1249 #491312
square
#2C4912 #124749 #2F1249 #491312
split-complementary
#2C4912 #131249 #491247
monochromatic
#0F1906 #0F1906 #2C4912 #4A7A1E #67AB2A

Accessibility & contrast

On white

10.15
#2C4912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2C4912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4912
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4912#FFFFFF#000000##FFFFFF
##2C49121.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C430A
Deuteranopia (green-blind)
#484117
Tritanopia (blue-blind)
#2C463E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c4912;
/* rgb */ color: rgb(44, 73, 18);
/* oklch */ color: oklch(36.9% 0.088 133.1);
Tailwind
colors: {
  custom: {
    50: '#687c53',
    500: '#2c4912',
    950: '#000000',
  },
}
SCSS
$custom: #2c4912;
$custom-light: #687c53;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4912",
  "rgb": {
    "r": 44,
    "g": 73,
    "b": 18
  },
  "hsl": {
    "h": 91.636,
    "s": 60.44,
    "l": 17.843
  },
  "oklch": {
    "l": 0.36941,
    "c": 0.08822,
    "h": 133.1
  },
  "luminance": 0.05344
}

Semantic roles & 50–950 ramp

primary
#2C4912
secondary
#5E3582
accent
#44E498
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2C4912

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

Preview Lab → · Contrast checker → · Palette generator →

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