#2E5B0F#2E5B0F

#2E5B0F is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.3% C 0.115 H 135.8°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#2E5B0F
RGBrgb(46, 91, 15)
HSLhsl(96, 72%, 21%)
HSVhsv(96, 84%, 36%)
CMYKcmyk(49.5%, 0%, 83.5%, 64.3%)
CIE-LABlab(34.18, -29.54, 36.02)
CIE-LCHlch(34.18, 46.58, 129.36°)
OKLaboklab(42.28% -0.0824 0.0801)
OKLCHoklch(42.28% 0.115 135.8)
XYZxyz(4.9539, 8.0972, 1.7537)
Luminance0.0810 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5B0F #3C0F5B
analogous
#545B0F #2E5B0F #0F5B16
triadic
#2E5B0F #0F2E5B #5B0F2E
tetradic
#2E5B0F #0F545B #3C0F5B #5B160F
square
#2E5B0F #0F545B #3C0F5B #5B160F
split-complementary
#2E5B0F #160F5B #5B0F54
monochromatic
#0D1A04 #132606 #2E5B0F #499018 #63C420

Accessibility & contrast

On white

8.02
#2E5B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2E5B0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5B0F
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5B0F#FFFFFF#000000##FFFFFF
##2E5B0F1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5300
Deuteranopia (green-blind)
#594F17
Tritanopia (blue-blind)
#2C574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2e5b0f;
/* rgb */ color: rgb(46, 91, 15);
/* oklch */ color: oklch(42.3% 0.115 135.8);
Tailwind
colors: {
  custom: {
    50: '#6c8a54',
    500: '#2e5b0f',
    950: '#000000',
  },
}
SCSS
$custom: #2e5b0f;
$custom-light: #6c8a54;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5b0f",
  "rgb": {
    "r": 46,
    "g": 91,
    "b": 15
  },
  "hsl": {
    "h": 95.526,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42279,
    "c": 0.1149,
    "h": 135.8
  },
  "luminance": 0.08098
}

Semantic roles & 50–950 ramp

primary
#2E5B0F
secondary
#6C3195
accent
#39EEA5
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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