#2C5D12#2C5D12

#2C5D12 is a dark, moderate yellow-green. Relative luminance 0.084; OKLCH L 42.8% C 0.117 H 137.2°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#2C5D12
RGBrgb(44, 93, 18)
HSLhsl(99, 68%, 22%)
HSVhsv(99, 81%, 36%)
CMYKcmyk(52.7%, 0%, 80.6%, 63.5%)
CIE-LABlab(34.82, -30.92, 35.49)
CIE-LCHlch(34.82, 47.07, 131.07°)
OKLaboklab(42.78% -0.0858 0.0795)
OKLCHoklch(42.78% 0.117 137.2)
XYZxyz(5.0621, 8.4075, 1.9282)
Luminance0.0841 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5D12 #43125D
analogous
#525D12 #2C5D12 #125D1E
triadic
#2C5D12 #122C5D #5D122C
tetradic
#2C5D12 #12525D #43125D #5D1E12
square
#2C5D12 #12525D #43125D #5D1E12
split-complementary
#2C5D12 #1E125D #5D1252
monochromatic
#0C1A05 #142A08 #2C5D12 #44901C #5DC426

Accessibility & contrast

On white

7.83
#2C5D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2C5D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5D12
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5D12#FFFFFF#000000##FFFFFF
##2C5D121.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605403
Deuteranopia (green-blind)
#5A501A
Tritanopia (blue-blind)
#29594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2c5d12;
/* rgb */ color: rgb(44, 93, 18);
/* oklch */ color: oklch(42.8% 0.117 137.2);
Tailwind
colors: {
  custom: {
    50: '#6b8b56',
    500: '#2c5d12',
    950: '#000000',
  },
}
SCSS
$custom: #2c5d12;
$custom-light: #6b8b56;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5d12",
  "rgb": {
    "r": 44,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 99.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.4278,
    "c": 0.11693,
    "h": 137.2
  },
  "luminance": 0.08408
}

Semantic roles & 50–950 ramp

primary
#2C5D12
secondary
#743595
accent
#3DEAAE
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2C5D12

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

Preview Lab → · Contrast checker → · Palette generator →

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