#2C5B0F#2C5B0F

#2C5B0F is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.2% C 0.116 H 136.5°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#2C5B0F
RGBrgb(44, 91, 15)
HSLhsl(97, 72%, 21%)
HSVhsv(97, 84%, 36%)
CMYKcmyk(51.6%, 0%, 83.5%, 64.3%)
CIE-LABlab(34.09, -30.25, 35.89)
CIE-LCHlch(34.09, 46.94, 130.12°)
OKLaboklab(42.18% -0.0842 0.0798)
OKLCHoklch(42.18% 0.116 136.5)
XYZxyz(4.8659, 8.0518, 1.7496)
Luminance0.0805 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5B0F #3E0F5B
analogous
#525B0F #2C5B0F #0F5B18
triadic
#2C5B0F #0F2C5B #5B0F2C
tetradic
#2C5B0F #0F525B #3E0F5B #5B180F
square
#2C5B0F #0F525B #3E0F5B #5B180F
split-complementary
#2C5B0F #180F5B #5B0F52
monochromatic
#0D1A04 #132606 #2C5B0F #459018 #5FC420

Accessibility & contrast

On white

8.04
#2C5B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2C5B0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5B0F
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5B0F#FFFFFF#000000##FFFFFF
##2C5B0F1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5300
Deuteranopia (green-blind)
#584F17
Tritanopia (blue-blind)
#2A574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2c5b0f;
/* rgb */ color: rgb(44, 91, 15);
/* oklch */ color: oklch(42.2% 0.116 136.5);
Tailwind
colors: {
  custom: {
    50: '#6b8a54',
    500: '#2c5b0f',
    950: '#000000',
  },
}
SCSS
$custom: #2c5b0f;
$custom-light: #6b8a54;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5b0f",
  "rgb": {
    "r": 44,
    "g": 91,
    "b": 15
  },
  "hsl": {
    "h": 97.105,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42176,
    "c": 0.11601,
    "h": 136.5
  },
  "luminance": 0.08052
}

Semantic roles & 50–950 ramp

primary
#2C5B0F
secondary
#6F3195
accent
#39EEA9
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2C5B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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