#2C5112#2C5112

#2C5112 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.3% C 0.100 H 135.2°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#2C5112
RGBrgb(44, 81, 18)
HSLhsl(95, 64%, 19%)
HSVhsv(95, 78%, 32%)
CMYKcmyk(45.7%, 0%, 77.8%, 68.2%)
CIE-LABlab(30.55, -25.45, 31.23)
CIE-LCHlch(30.55, 40.29, 129.17°)
OKLaboklab(39.28% -0.071 0.0706)
OKLCHoklch(39.28% 0.1 135.2)
XYZxyz(4.0902, 6.4638, 1.6043)
Luminance0.0646 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5112 #371251
analogous
#4C5112 #2C5112 #125118
triadic
#2C5112 #122C51 #51122C
tetradic
#2C5112 #124C51 #371251 #511812
square
#2C5112 #124C51 #371251 #511812
split-complementary
#2C5112 #181251 #51124C
monochromatic
#0E1906 #111F07 #2C5112 #47831D #62B528

Accessibility & contrast

On white

9.16
#2C5112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2C5112 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5112
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5112#FFFFFF#000000##FFFFFF
##2C51121.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A08
Deuteranopia (green-blind)
#4F4718
Tritanopia (blue-blind)
#2B4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2c5112;
/* rgb */ color: rgb(44, 81, 18);
/* oklch */ color: oklch(39.3% 0.100 135.2);
Tailwind
colors: {
  custom: {
    50: '#698254',
    500: '#2c5112',
    950: '#000000',
  },
}
SCSS
$custom: #2c5112;
$custom-light: #698254;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5112",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 18
  },
  "hsl": {
    "h": 95.238,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.3928,
    "c": 0.10011,
    "h": 135.2
  },
  "luminance": 0.06464
}

Semantic roles & 50–950 ramp

primary
#2C5112
secondary
#67358A
accent
#41E7A2
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2C5112

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

Preview Lab → · Contrast checker → · Palette generator →

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