#2C5C12#2C5C12

#2C5C12 is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.5% C 0.116 H 137.1°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#2C5C12
RGBrgb(44, 92, 18)
HSLhsl(99, 67%, 22%)
HSVhsv(99, 80%, 36%)
CMYKcmyk(52.2%, 0%, 80.4%, 63.9%)
CIE-LABlab(34.46, -30.48, 35.14)
CIE-LCHlch(34.46, 46.52, 130.94°)
OKLaboklab(42.49% -0.0846 0.0788)
OKLCHoklch(42.49% 0.116 137.1)
XYZxyz(4.9749, 8.2331, 1.8991)
Luminance0.0823 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5C12 #42125C
analogous
#515C12 #2C5C12 #125C1D
triadic
#2C5C12 #122C5C #5C122C
tetradic
#2C5C12 #12515C #42125C #5C1D12
square
#2C5C12 #12515C #42125C #5C1D12
split-complementary
#2C5C12 #1D125C #5C1251
monochromatic
#0C1A05 #142908 #2C5C12 #448F1C #5DC226

Accessibility & contrast

On white

7.93
#2C5C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2C5C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5C12
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5C12#FFFFFF#000000##FFFFFF
##2C5C121.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5404
Deuteranopia (green-blind)
#59501A
Tritanopia (blue-blind)
#29584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c5c12;
/* rgb */ color: rgb(44, 92, 18);
/* oklch */ color: oklch(42.5% 0.116 137.1);
Tailwind
colors: {
  custom: {
    50: '#6b8a56',
    500: '#2c5c12',
    950: '#000000',
  },
}
SCSS
$custom: #2c5c12;
$custom-light: #6b8a56;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5c12",
  "rgb": {
    "r": 44,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 98.919,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42489,
    "c": 0.11558,
    "h": 137.1
  },
  "luminance": 0.08233
}

Semantic roles & 50–950 ramp

primary
#2C5C12
secondary
#733594
accent
#3EEAAE
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2C5C12

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

Preview Lab → · Contrast checker → · Palette generator →

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