#2E5D12#2E5D12

#2E5D12 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 42.9% C 0.116 H 136.5°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#2E5D12
RGBrgb(46, 93, 18)
HSLhsl(98, 68%, 22%)
HSVhsv(98, 81%, 36%)
CMYKcmyk(50.5%, 0%, 80.6%, 63.5%)
CIE-LABlab(34.91, -30.23, 35.61)
CIE-LCHlch(34.91, 46.71, 130.33°)
OKLaboklab(42.88% -0.0841 0.0797)
OKLCHoklch(42.88% 0.116 136.5)
XYZxyz(5.1501, 8.4529, 1.9323)
Luminance0.0845 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5D12 #41125D
analogous
#545D12 #2E5D12 #125D1C
triadic
#2E5D12 #122E5D #5D122E
tetradic
#2E5D12 #12545D #41125D #5D1C12
square
#2E5D12 #12545D #41125D #5D1C12
split-complementary
#2E5D12 #1C125D #5D1254
monochromatic
#0D1A05 #152A08 #2E5D12 #47901C #61C426

Accessibility & contrast

On white

7.80
#2E5D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2E5D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5D12
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5D12#FFFFFF#000000##FFFFFF
##2E5D121.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605503
Deuteranopia (green-blind)
#5A511A
Tritanopia (blue-blind)
#2C594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2e5d12;
/* rgb */ color: rgb(46, 93, 18);
/* oklch */ color: oklch(42.9% 0.116 136.5);
Tailwind
colors: {
  custom: {
    50: '#6c8b56',
    500: '#2e5d12',
    950: '#000000',
  },
}
SCSS
$custom: #2e5d12;
$custom-light: #6c8b56;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5d12",
  "rgb": {
    "r": 46,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 97.6,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.4288,
    "c": 0.11583,
    "h": 136.5
  },
  "luminance": 0.08453
}

Semantic roles & 50–950 ramp

primary
#2E5D12
secondary
#723595
accent
#3DEAAA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2E5D12

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

Preview Lab → · Contrast checker → · Palette generator →

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