#2C4812#2C4812

#2C4812 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.6% C 0.087 H 132.8°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#2C4812
RGBrgb(44, 72, 18)
HSLhsl(91, 60%, 18%)
HSVhsv(91, 75%, 28%)
CMYKcmyk(38.9%, 0%, 75%, 71.8%)
CIE-LABlab(27.34, -21.00, 27.91)
CIE-LCHlch(27.34, 34.92, 126.96°)
OKLaboklab(36.65% -0.0589 0.0636)
OKLCHoklch(36.65% 0.087 132.8)
XYZxyz(3.4652, 5.2137, 1.3959)
Luminance0.0521 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4812 #2E1248
analogous
#474812 #2C4812 #124813
triadic
#2C4812 #122C48 #48122C
tetradic
#2C4812 #124748 #2E1248 #481312
square
#2C4812 #124748 #2E1248 #481312
split-complementary
#2C4812 #131248 #481247
monochromatic
#0F1806 #0F1806 #2C4812 #4A791E #68AA2A

Accessibility & contrast

On white

10.28
#2C4812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2C4812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4812
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4812#FFFFFF#000000##FFFFFF
##2C48121.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B420A
Deuteranopia (green-blind)
#474017
Tritanopia (blue-blind)
#2C453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c4812;
/* rgb */ color: rgb(44, 72, 18);
/* oklch */ color: oklch(36.6% 0.087 132.8);
Tailwind
colors: {
  custom: {
    50: '#687b53',
    500: '#2c4812',
    950: '#000000',
  },
}
SCSS
$custom: #2c4812;
$custom-light: #687b53;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4812",
  "rgb": {
    "r": 44,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 91.111,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.36649,
    "c": 0.08669,
    "h": 132.8
  },
  "luminance": 0.05214
}

Semantic roles & 50–950 ramp

primary
#2C4812
secondary
#5C3581
accent
#45E397
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2C4812

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

Preview Lab → · Contrast checker → · Palette generator →

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