#2E4212#2E4212

#2E4212 is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 35.0% C 0.076 H 129.0°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#2E4212
RGBrgb(46, 66, 18)
HSLhsl(85, 57%, 16%)
HSVhsv(85, 73%, 26%)
CMYKcmyk(30.3%, 0%, 72.7%, 74.1%)
CIE-LABlab(25.32, -16.94, 25.81)
CIE-LCHlch(25.32, 30.87, 123.28°)
OKLaboklab(35.05% -0.0479 0.0592)
OKLCHoklch(35.05% 0.076 129)
XYZxyz(3.1841, 4.5209, 1.2770)
Luminance0.0452 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4212 #261242
analogous
#423E12 #2E4212 #164212
triadic
#2E4212 #122E42 #42122E
tetradic
#2E4212 #12423E #261242 #421216
square
#2E4212 #12423E #261242 #421216
split-complementary
#2E4212 #121642 #3E1242
monochromatic
#111807 #111807 #2E4212 #50721F #71A22C

Accessibility & contrast

On white

11.03
#2E4212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2E4212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4212
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4212#FFFFFF#000000##FFFFFF
##2E42121.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453D0C
Deuteranopia (green-blind)
#433C16
Tritanopia (blue-blind)
#303F38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e4212;
/* rgb */ color: rgb(46, 66, 18);
/* oklch */ color: oklch(35.0% 0.076 129.0);
Tailwind
colors: {
  custom: {
    50: '#697652',
    500: '#2e4212',
    950: '#000000',
  },
}
SCSS
$custom: #2e4212;
$custom-light: #697652;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4212",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 18
  },
  "hsl": {
    "h": 85,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35047,
    "c": 0.07613,
    "h": 129
  },
  "luminance": 0.04521
}

Semantic roles & 50–950 ramp

primary
#2E4212
secondary
#52357B
accent
#47E087
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2E4212

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

Preview Lab → · Contrast checker → · Palette generator →

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