#2C5A12#2C5A12

#2C5A12 is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 41.9% C 0.113 H 136.8°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#2C5A12
RGBrgb(44, 90, 18)
HSLhsl(98, 67%, 21%)
HSVhsv(98, 80%, 35%)
CMYKcmyk(51.1%, 0%, 80%, 64.7%)
CIE-LABlab(33.76, -29.60, 34.44)
CIE-LCHlch(33.76, 45.41, 130.67°)
OKLaboklab(41.91% -0.0822 0.0773)
OKLCHoklch(41.91% 0.113 136.8)
XYZxyz(4.8039, 7.8912, 1.8422)
Luminance0.0789 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5A12 #40125A
analogous
#505A12 #2C5A12 #125A1C
triadic
#2C5A12 #122C5A #5A122C
tetradic
#2C5A12 #12505A #40125A #5A1C12
square
#2C5A12 #12505A #40125A #5A1C12
split-complementary
#2C5A12 #1C125A #5A1250
monochromatic
#0C1A05 #132708 #2C5A12 #458D1C #5EC026

Accessibility & contrast

On white

8.15
#2C5A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2C5A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5A12
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5A12#FFFFFF#000000##FFFFFF
##2C5A121.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5204
Deuteranopia (green-blind)
#574E19
Tritanopia (blue-blind)
#2A564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c5a12;
/* rgb */ color: rgb(44, 90, 18);
/* oklch */ color: oklch(41.9% 0.113 136.8);
Tailwind
colors: {
  custom: {
    50: '#6a8956',
    500: '#2c5a12',
    950: '#000000',
  },
}
SCSS
$custom: #2c5a12;
$custom-light: #6a8956;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5a12",
  "rgb": {
    "r": 44,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 98.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.41906,
    "c": 0.11284,
    "h": 136.8
  },
  "luminance": 0.07891
}

Semantic roles & 50–950 ramp

primary
#2C5A12
secondary
#713593
accent
#3EEAAC
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2C5A12

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

Preview Lab → · Contrast checker → · Palette generator →

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