#2C5812#2C5812

#2C5812 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.3% C 0.110 H 136.5°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#2C5812
RGBrgb(44, 88, 18)
HSLhsl(98, 66%, 21%)
HSVhsv(98, 80%, 35%)
CMYKcmyk(50%, 0%, 79.5%, 65.5%)
CIE-LABlab(33.05, -28.70, 33.74)
CIE-LCHlch(33.05, 44.29, 130.38°)
OKLaboklab(41.32% -0.0798 0.0758)
OKLCHoklch(41.32% 0.11 136.5)
XYZxyz(4.6375, 7.5583, 1.7867)
Luminance0.0756 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5812 #3E1258
analogous
#4F5812 #2C5812 #12581B
triadic
#2C5812 #122C58 #58122C
tetradic
#2C5812 #124F58 #3E1258 #581B12
square
#2C5812 #124F58 #3E1258 #581B12
split-complementary
#2C5812 #1B1258 #58124F
monochromatic
#0D1905 #132508 #2C5812 #458B1C #5FBE27

Accessibility & contrast

On white

8.36
#2C5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2C5812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5812
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5812#FFFFFF#000000##FFFFFF
##2C58121.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5005
Deuteranopia (green-blind)
#554C19
Tritanopia (blue-blind)
#2A554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c5812;
/* rgb */ color: rgb(44, 88, 18);
/* oklch */ color: oklch(41.3% 0.110 136.5);
Tailwind
colors: {
  custom: {
    50: '#6a8755',
    500: '#2c5812',
    950: '#000000',
  },
}
SCSS
$custom: #2c5812;
$custom-light: #6a8755;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5812",
  "rgb": {
    "r": 44,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 97.714,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.41323,
    "c": 0.11006,
    "h": 136.5
  },
  "luminance": 0.07559
}

Semantic roles & 50–950 ramp

primary
#2C5812
secondary
#6F3591
accent
#3FE9AA
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2C5812

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

Preview Lab → · Contrast checker → · Palette generator →

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