#2E4C12#2E4C12

#2E4C12 is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 37.9% C 0.092 H 132.9°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#2E4C12
RGBrgb(46, 76, 18)
HSLhsl(91, 62%, 18%)
HSVhsv(91, 76%, 30%)
CMYKcmyk(39.5%, 0%, 76.3%, 70.2%)
CIE-LABlab(28.88, -22.19, 29.56)
CIE-LCHlch(28.88, 36.96, 126.90°)
OKLaboklab(37.95% -0.0623 0.067)
OKLCHoklch(37.95% 0.092 132.9)
XYZxyz(3.8203, 5.7932, 1.4891)
Luminance0.0579 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4C12 #30124C
analogous
#4B4C12 #2E4C12 #124C13
triadic
#2E4C12 #122E4C #4C122E
tetradic
#2E4C12 #124B4C #30124C #4C1312
square
#2E4C12 #124B4C #30124C #4C1312
split-complementary
#2E4C12 #13124C #4C124B
monochromatic
#0F1906 #101B06 #2E4C12 #4C7D1E #6AAF29

Accessibility & contrast

On white

9.73
#2E4C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2E4C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4C12
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4C12#FFFFFF#000000##FFFFFF
##2E4C121.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4609
Deuteranopia (green-blind)
#4B4317
Tritanopia (blue-blind)
#2E4940
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e4c12;
/* rgb */ color: rgb(46, 76, 18);
/* oklch */ color: oklch(37.9% 0.092 132.9);
Tailwind
colors: {
  custom: {
    50: '#6a7e54',
    500: '#2e4c12',
    950: '#000000',
  },
}
SCSS
$custom: #2e4c12;
$custom-light: #6a7e54;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4c12",
  "rgb": {
    "r": 46,
    "g": 76,
    "b": 18
  },
  "hsl": {
    "h": 91.034,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.37945,
    "c": 0.09153,
    "h": 132.9
  },
  "luminance": 0.05793
}

Semantic roles & 50–950 ramp

primary
#2E4C12
secondary
#5E3585
accent
#43E597
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2E4C12

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

Preview Lab → · Contrast checker → · Palette generator →

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