#2C5D0F#2C5D0F

#2C5D0F is a dark, moderate yellow-green. Relative luminance 0.084; OKLCH L 42.8% C 0.119 H 136.8°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#2C5D0F
RGBrgb(44, 93, 15)
HSLhsl(98, 72%, 21%)
HSVhsv(98, 84%, 36%)
CMYKcmyk(52.7%, 0%, 83.9%, 63.5%)
CIE-LABlab(34.80, -31.13, 36.57)
CIE-LCHlch(34.80, 48.02, 130.41°)
OKLaboklab(42.76% -0.0865 0.0812)
OKLCHoklch(42.76% 0.119 136.8)
XYZxyz(5.0391, 8.3983, 1.8073)
Luminance0.0840 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5D0F #400F5D
analogous
#535D0F #2C5D0F #0F5D19
triadic
#2C5D0F #0F2C5D #5D0F2C
tetradic
#2C5D0F #0F535D #400F5D #5D190F
square
#2C5D0F #0F535D #400F5D #5D190F
split-complementary
#2C5D0F #190F5D #5D0F53
monochromatic
#0C1A04 #132806 #2C5D0F #459217 #5EC620

Accessibility & contrast

On white

7.84
#2C5D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2C5D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5D0F
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5D0F#FFFFFF#000000##FFFFFF
##2C5D0F1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605400
Deuteranopia (green-blind)
#5A5018
Tritanopia (blue-blind)
#29594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2c5d0f;
/* rgb */ color: rgb(44, 93, 15);
/* oklch */ color: oklch(42.8% 0.119 136.8);
Tailwind
colors: {
  custom: {
    50: '#6b8b55',
    500: '#2c5d0f',
    950: '#000000',
  },
}
SCSS
$custom: #2c5d0f;
$custom-light: #6b8b55;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5d0f",
  "rgb": {
    "r": 44,
    "g": 93,
    "b": 15
  },
  "hsl": {
    "h": 97.692,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42759,
    "c": 0.11869,
    "h": 136.8
  },
  "luminance": 0.08399
}

Semantic roles & 50–950 ramp

primary
#2C5D0F
secondary
#713196
accent
#39EFAB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2C5D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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