#2E6012#2E6012

#2E6012 is a dark, moderate yellow-green. Relative luminance 0.090; OKLCH L 43.7% C 0.120 H 137.0°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#2E6012
RGBrgb(46, 96, 18)
HSLhsl(98, 68%, 22%)
HSVhsv(98, 81%, 38%)
CMYKcmyk(52.1%, 0%, 81.3%, 62.4%)
CIE-LABlab(35.96, -31.55, 36.63)
CIE-LCHlch(35.96, 48.35, 130.74°)
OKLaboklab(43.75% -0.0876 0.0818)
OKLCHoklch(43.75% 0.12 137)
XYZxyz(5.4186, 8.9899, 2.0218)
Luminance0.0899 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E6012 #441260
analogous
#556012 #2E6012 #12601D
triadic
#2E6012 #122E60 #60122E
tetradic
#2E6012 #125560 #441260 #601D12
square
#2E6012 #125560 #441260 #601D12
split-complementary
#2E6012 #1D1260 #601255
monochromatic
#0C1A05 #152C08 #2E6012 #47941C #5FC725

Accessibility & contrast

On white

7.51
#2E6012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2E6012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E6012
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E6012#FFFFFF#000000##FFFFFF
##2E60121.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635702
Deuteranopia (green-blind)
#5D531A
Tritanopia (blue-blind)
#2B5C51
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2e6012;
/* rgb */ color: rgb(46, 96, 18);
/* oklch */ color: oklch(43.7% 0.120 137.0);
Tailwind
colors: {
  custom: {
    50: '#6d8e57',
    500: '#2e6012',
    950: '#000000',
  },
}
SCSS
$custom: #2e6012;
$custom-light: #6d8e57;
$custom-dark: #000000;
JSON
{
  "hex": "#2e6012",
  "rgb": {
    "r": 46,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 98.462,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.43748,
    "c": 0.1199,
    "h": 137
  },
  "luminance": 0.0899
}

Semantic roles & 50–950 ramp

primary
#2E6012
secondary
#753698
accent
#3DEBAD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2E6012

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

Preview Lab → · Contrast checker → · Palette generator →

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