#2C5C0F#2C5C0F

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

Color values

HEX#2C5C0F
RGBrgb(44, 92, 15)
HSLhsl(97, 72%, 21%)
HSVhsv(97, 84%, 36%)
CMYKcmyk(52.2%, 0%, 83.7%, 63.9%)
CIE-LABlab(34.44, -30.69, 36.23)
CIE-LCHlch(34.44, 47.48, 130.27°)
OKLaboklab(42.47% -0.0854 0.0805)
OKLCHoklch(42.47% 0.117 136.7)
XYZxyz(4.9519, 8.2239, 1.7783)
Luminance0.0822 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5C0F #3F0F5C
analogous
#525C0F #2C5C0F #0F5C18
triadic
#2C5C0F #0F2C5C #5C0F2C
tetradic
#2C5C0F #0F525C #3F0F5C #5C180F
square
#2C5C0F #0F525C #3F0F5C #5C180F
split-complementary
#2C5C0F #180F5C #5C0F52
monochromatic
#0D1A04 #132706 #2C5C0F #459118 #5EC520

Accessibility & contrast

On white

7.94
#2C5C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2C5C0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5C0F
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5C0F#FFFFFF#000000##FFFFFF
##2C5C0F1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5300
Deuteranopia (green-blind)
#595018
Tritanopia (blue-blind)
#29584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c5c0f;
/* rgb */ color: rgb(44, 92, 15);
/* oklch */ color: oklch(42.5% 0.117 136.7);
Tailwind
colors: {
  custom: {
    50: '#6b8a54',
    500: '#2c5c0f',
    950: '#000000',
  },
}
SCSS
$custom: #2c5c0f;
$custom-light: #6b8a54;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5c0f",
  "rgb": {
    "r": 44,
    "g": 92,
    "b": 15
  },
  "hsl": {
    "h": 97.403,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42467,
    "c": 0.11736,
    "h": 136.7
  },
  "luminance": 0.08224
}

Semantic roles & 50–950 ramp

primary
#2C5C0F
secondary
#703195
accent
#39EFAA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2C5C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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