#2C5512#2C5512

#2C5512 is a dark, moderate yellow-green. Relative luminance 0.071; OKLCH L 40.4% C 0.106 H 135.9°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#2C5512
RGBrgb(44, 85, 18)
HSLhsl(97, 65%, 20%)
HSVhsv(97, 79%, 33%)
CMYKcmyk(48.2%, 0%, 78.8%, 66.7%)
CIE-LABlab(31.98, -27.32, 32.67)
CIE-LCHlch(31.98, 42.59, 129.91°)
OKLaboklab(40.45% -0.0761 0.0736)
OKLCHoklch(40.45% 0.106 135.9)
XYZxyz(4.3963, 7.0759, 1.7063)
Luminance0.0708 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5512 #3B1255
analogous
#4E5512 #2C5512 #125519
triadic
#2C5512 #122C55 #55122C
tetradic
#2C5512 #124E55 #3B1255 #551912
square
#2C5512 #124E55 #3B1255 #551912
split-complementary
#2C5512 #191255 #55124E
monochromatic
#0D1905 #122207 #2C5512 #46881D #60BA27

Accessibility & contrast

On white

8.69
#2C5512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2C5512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5512
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5512#FFFFFF#000000##FFFFFF
##2C55121.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D06
Deuteranopia (green-blind)
#534A19
Tritanopia (blue-blind)
#2A5248
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2c5512;
/* rgb */ color: rgb(44, 85, 18);
/* oklch */ color: oklch(40.4% 0.106 135.9);
Tailwind
colors: {
  custom: {
    50: '#6a8555',
    500: '#2c5512',
    950: '#000000',
  },
}
SCSS
$custom: #2c5512;
$custom-light: #6a8555;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5512",
  "rgb": {
    "r": 44,
    "g": 85,
    "b": 18
  },
  "hsl": {
    "h": 96.716,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40448,
    "c": 0.10584,
    "h": 135.9
  },
  "luminance": 0.07076
}

Semantic roles & 50–950 ramp

primary
#2C5512
secondary
#6B358E
accent
#40E8A7
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2C5512

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

Preview Lab → · Contrast checker → · Palette generator →

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