#2E5E12#2E5E12

#2E5E12 is a dark, moderate yellow-green. Relative luminance 0.086; OKLCH L 43.2% C 0.117 H 136.7°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#2E5E12
RGBrgb(46, 94, 18)
HSLhsl(98, 68%, 22%)
HSVhsv(98, 81%, 37%)
CMYKcmyk(51.1%, 0%, 80.9%, 63.1%)
CIE-LABlab(35.26, -30.67, 35.95)
CIE-LCHlch(35.26, 47.26, 130.47°)
OKLaboklab(43.17% -0.0853 0.0804)
OKLCHoklch(43.17% 0.117 136.7)
XYZxyz(5.2384, 8.6296, 1.9618)
Luminance0.0863 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5E12 #42125E
analogous
#545E12 #2E5E12 #125E1C
triadic
#2E5E12 #122E5E #5E122E
tetradic
#2E5E12 #12545E #42125E #5E1C12
square
#2E5E12 #12545E #42125E #5E1C12
split-complementary
#2E5E12 #1C125E #5E1254
monochromatic
#0D1A05 #152B08 #2E5E12 #47911C #60C526

Accessibility & contrast

On white

7.70
#2E5E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2E5E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5E12
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5E12#FFFFFF#000000##FFFFFF
##2E5E121.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e5e12;
/* rgb */ color: rgb(46, 94, 18);
/* oklch */ color: oklch(43.2% 0.117 136.7);
Tailwind
colors: {
  custom: {
    50: '#6c8c56',
    500: '#2e5e12',
    950: '#000000',
  },
}
SCSS
$custom: #2e5e12;
$custom-light: #6c8c56;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5e12",
  "rgb": {
    "r": 46,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 97.895,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.4317,
    "c": 0.1172,
    "h": 136.7
  },
  "luminance": 0.0863
}

Semantic roles & 50–950 ramp

primary
#2E5E12
secondary
#733596
accent
#3DEBAB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2E5E12

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

Preview Lab → · Contrast checker → · Palette generator →

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