#2C4C12#2C4C12

#2C4C12 is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.8% C 0.093 H 134.0°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2C4C12
RGBrgb(44, 76, 18)
HSLhsl(93, 62%, 18%)
HSVhsv(93, 76%, 30%)
CMYKcmyk(42.1%, 0%, 76.3%, 70.2%)
CIE-LABlab(28.77, -23.01, 29.40)
CIE-LCHlch(28.77, 37.34, 128.05°)
OKLaboklab(37.82% -0.0644 0.0667)
OKLCHoklch(37.82% 0.093 134)
XYZxyz(3.7323, 5.7479, 1.4849)
Luminance0.0575 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4C12 #32124C
analogous
#494C12 #2C4C12 #124C15
triadic
#2C4C12 #122C4C #4C122C
tetradic
#2C4C12 #12494C #32124C #4C1512
square
#2C4C12 #12494C #32124C #4C1512
split-complementary
#2C4C12 #15124C #4C1249
monochromatic
#0E1906 #0F1B06 #2C4C12 #497D1E #65AF29

Accessibility & contrast

On white

9.77
#2C4C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2C4C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4C12
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4C12#FFFFFF#000000##FFFFFF
##2C4C121.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4509
Deuteranopia (green-blind)
#4B4317
Tritanopia (blue-blind)
#2C4940
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c4c12;
/* rgb */ color: rgb(44, 76, 18);
/* oklch */ color: oklch(37.8% 0.093 134.0);
Tailwind
colors: {
  custom: {
    50: '#687e54',
    500: '#2c4c12',
    950: '#000000',
  },
}
SCSS
$custom: #2c4c12;
$custom-light: #687e54;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4c12",
  "rgb": {
    "r": 44,
    "g": 76,
    "b": 18
  },
  "hsl": {
    "h": 93.103,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.37818,
    "c": 0.09274,
    "h": 134
  },
  "luminance": 0.05748
}

Semantic roles & 50–950 ramp

primary
#2C4C12
secondary
#613585
accent
#43E59C
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2C4C12

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

Preview Lab → · Contrast checker → · Palette generator →

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