#2C5A0F#2C5A0F

#2C5A0F is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 41.9% C 0.115 H 136.4°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#2C5A0F
RGBrgb(44, 90, 15)
HSLhsl(97, 71%, 21%)
HSVhsv(97, 83%, 35%)
CMYKcmyk(51.1%, 0%, 83.3%, 64.7%)
CIE-LABlab(33.74, -29.81, 35.56)
CIE-LCHlch(33.74, 46.40, 129.97°)
OKLaboklab(41.88% -0.083 0.0791)
OKLCHoklch(41.88% 0.115 136.4)
XYZxyz(4.7810, 7.8820, 1.7213)
Luminance0.0788 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5A0F #3D0F5A
analogous
#515A0F #2C5A0F #0F5A17
triadic
#2C5A0F #0F2C5A #5A0F2C
tetradic
#2C5A0F #0F515A #3D0F5A #5A170F
square
#2C5A0F #0F515A #3D0F5A #5A170F
split-complementary
#2C5A0F #170F5A #5A0F51
monochromatic
#0D1A04 #122606 #2C5A0F #468E18 #5FC320

Accessibility & contrast

On white

8.15
#2C5A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2C5A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5A0F
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5A0F#FFFFFF#000000##FFFFFF
##2C5A0F1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5200
Deuteranopia (green-blind)
#574E17
Tritanopia (blue-blind)
#2A564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c5a0f;
/* rgb */ color: rgb(44, 90, 15);
/* oklch */ color: oklch(41.9% 0.115 136.4);
Tailwind
colors: {
  custom: {
    50: '#6b8954',
    500: '#2c5a0f',
    950: '#000000',
  },
}
SCSS
$custom: #2c5a0f;
$custom-light: #6b8954;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5a0f",
  "rgb": {
    "r": 44,
    "g": 90,
    "b": 15
  },
  "hsl": {
    "h": 96.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41884,
    "c": 0.11467,
    "h": 136.4
  },
  "luminance": 0.07882
}

Semantic roles & 50–950 ramp

primary
#2C5A0F
secondary
#6E3194
accent
#3AEEA8
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2C5A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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