#2E5912#2E5912

#2E5912 is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 41.7% C 0.110 H 135.9°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2E5912
RGBrgb(46, 89, 18)
HSLhsl(96, 66%, 21%)
HSVhsv(96, 80%, 35%)
CMYKcmyk(48.3%, 0%, 79.8%, 65.1%)
CIE-LABlab(33.50, -28.43, 34.22)
CIE-LCHlch(33.50, 44.49, 129.72°)
OKLaboklab(41.72% -0.0792 0.0768)
OKLCHoklch(41.72% 0.11 135.9)
XYZxyz(4.8082, 7.7690, 1.8184)
Luminance0.0777 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5912 #3D1259
analogous
#515912 #2E5912 #125919
triadic
#2E5912 #122E59 #59122E
tetradic
#2E5912 #125159 #3D1259 #591912
square
#2E5912 #125159 #3D1259 #591912
split-complementary
#2E5912 #191259 #591251
monochromatic
#0D1905 #142608 #2E5912 #488C1C #63BF27

Accessibility & contrast

On white

8.22
#2E5912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2E5912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5912
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5912#FFFFFF#000000##FFFFFF
##2E59121.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5105
Deuteranopia (green-blind)
#574D19
Tritanopia (blue-blind)
#2C554B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e5912;
/* rgb */ color: rgb(46, 89, 18);
/* oklch */ color: oklch(41.7% 0.110 135.9);
Tailwind
colors: {
  custom: {
    50: '#6b8855',
    500: '#2e5912',
    950: '#000000',
  },
}
SCSS
$custom: #2e5912;
$custom-light: #6b8855;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5912",
  "rgb": {
    "r": 46,
    "g": 89,
    "b": 18
  },
  "hsl": {
    "h": 96.338,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.41721,
    "c": 0.11031,
    "h": 135.9
  },
  "luminance": 0.07769
}

Semantic roles & 50–950 ramp

primary
#2E5912
secondary
#6D3592
accent
#3FE9A6
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5912

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

Preview Lab → · Contrast checker → · Palette generator →

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