#2E5A12#2E5A12

#2E5A12 is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 42.0% C 0.112 H 136.1°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#2E5A12
RGBrgb(46, 90, 18)
HSLhsl(97, 67%, 21%)
HSVhsv(97, 80%, 35%)
CMYKcmyk(48.9%, 0%, 80%, 64.7%)
CIE-LABlab(33.85, -28.88, 34.57)
CIE-LCHlch(33.85, 45.05, 129.88°)
OKLaboklab(42.01% -0.0804 0.0775)
OKLCHoklch(42.01% 0.112 136.1)
XYZxyz(4.8919, 7.9365, 1.8463)
Luminance0.0794 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5A12 #3E125A
analogous
#525A12 #2E5A12 #125A1A
triadic
#2E5A12 #122E5A #5A122E
tetradic
#2E5A12 #12525A #3E125A #5A1A12
square
#2E5A12 #12525A #3E125A #5A1A12
split-complementary
#2E5A12 #1A125A #5A1252
monochromatic
#0D1A05 #142708 #2E5A12 #488D1C #62C026

Accessibility & contrast

On white

8.12
#2E5A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2E5A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5A12
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5A12#FFFFFF#000000##FFFFFF
##2E5A121.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5204
Deuteranopia (green-blind)
#584E19
Tritanopia (blue-blind)
#2C564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2e5a12;
/* rgb */ color: rgb(46, 90, 18);
/* oklch */ color: oklch(42.0% 0.112 136.1);
Tailwind
colors: {
  custom: {
    50: '#6c8956',
    500: '#2e5a12',
    950: '#000000',
  },
}
SCSS
$custom: #2e5a12;
$custom-light: #6c8956;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5a12",
  "rgb": {
    "r": 46,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 96.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42011,
    "c": 0.11171,
    "h": 136.1
  },
  "luminance": 0.07937
}

Semantic roles & 50–950 ramp

primary
#2E5A12
secondary
#6E3593
accent
#3EEAA7
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5A12

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

Preview Lab → · Contrast checker → · Palette generator →

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