#2C5E12#2C5E12

#2C5E12 is a dark, moderate yellow-green. Relative luminance 0.086; OKLCH L 43.1% C 0.118 H 137.3°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#2C5E12
RGBrgb(44, 94, 18)
HSLhsl(99, 68%, 22%)
HSVhsv(99, 81%, 37%)
CMYKcmyk(53.2%, 0%, 80.9%, 63.1%)
CIE-LABlab(35.17, -31.36, 35.83)
CIE-LCHlch(35.17, 47.61, 131.19°)
OKLaboklab(43.07% -0.0869 0.0802)
OKLCHoklch(43.07% 0.118 137.3)
XYZxyz(5.1504, 8.5842, 1.9577)
Luminance0.0858 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5E12 #44125E
analogous
#525E12 #2C5E12 #125E1E
triadic
#2C5E12 #122C5E #5E122C
tetradic
#2C5E12 #12525E #44125E #5E1E12
square
#2C5E12 #12525E #44125E #5E1E12
split-complementary
#2C5E12 #1E125E #5E1252
monochromatic
#0C1A05 #142B08 #2C5E12 #44911C #5CC526

Accessibility & contrast

On white

7.73
#2C5E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2C5E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5E12
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5E12#FFFFFF#000000##FFFFFF
##2C5E121.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615503
Deuteranopia (green-blind)
#5B511A
Tritanopia (blue-blind)
#295A50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2c5e12;
/* rgb */ color: rgb(44, 94, 18);
/* oklch */ color: oklch(43.1% 0.118 137.3);
Tailwind
colors: {
  custom: {
    50: '#6b8c56',
    500: '#2c5e12',
    950: '#000000',
  },
}
SCSS
$custom: #2c5e12;
$custom-light: #6b8c56;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5e12",
  "rgb": {
    "r": 44,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 99.474,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43071,
    "c": 0.11828,
    "h": 137.3
  },
  "luminance": 0.08585
}

Semantic roles & 50–950 ramp

primary
#2C5E12
secondary
#753596
accent
#3DEBAF
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2C5E12

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

Preview Lab → · Contrast checker → · Palette generator →

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