#2E3812#2E3812

#2E3812 is a dark, moderate yellow-green. Relative luminance 0.035; OKLCH L 32.2% C 0.060 H 122.2°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#2E3812
RGBrgb(46, 56, 18)
HSLhsl(76, 51%, 15%)
HSVhsv(76, 68%, 22%)
CMYKcmyk(17.9%, 0%, 67.9%, 78%)
CIE-LABlab(21.77, -11.20, 21.90)
CIE-LCHlch(21.77, 24.60, 117.08°)
OKLaboklab(32.18% -0.032 0.0509)
OKLCHoklch(32.18% 0.06 122.2)
XYZxyz(2.6501, 3.4529, 1.0990)
Luminance0.0345 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3812 #1C1238
analogous
#382F12 #2E3812 #1B3812
triadic
#2E3812 #122E38 #38122E
tetradic
#2E3812 #12382F #1C1238 #38121B
square
#2E3812 #12382F #1C1238 #38121B
split-complementary
#2E3812 #121B38 #2F1238
monochromatic
#131707 #131707 #2E3812 #546621 #7A9530

Accessibility & contrast

On white

12.42
#2E3812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2E3812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3812
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3812#FFFFFF#000000##FFFFFF
##2E38121.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C340E
Deuteranopia (green-blind)
#3A3414
Tritanopia (blue-blind)
#313530
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e3812;
/* rgb */ color: rgb(46, 56, 18);
/* oklch */ color: oklch(32.2% 0.060 122.2);
Tailwind
colors: {
  custom: {
    50: '#686e51',
    500: '#2e3812',
    950: '#000000',
  },
}
SCSS
$custom: #2e3812;
$custom-light: #686e51;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3812",
  "rgb": {
    "r": 46,
    "g": 56,
    "b": 18
  },
  "hsl": {
    "h": 75.789,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.32177,
    "c": 0.06012,
    "h": 122.2
  },
  "luminance": 0.03453
}

Semantic roles & 50–950 ramp

primary
#2E3812
secondary
#453571
accent
#4DDB72
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060702
muted
#7A7A78

Preview Lab

Preview with #2E3812

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

Preview Lab → · Contrast checker → · Palette generator →

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