#2A4912#2A4912

#2A4912 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.8% C 0.089 H 134.2°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#2A4912
RGBrgb(42, 73, 18)
HSLhsl(94, 60%, 18%)
HSVhsv(94, 75%, 29%)
CMYKcmyk(42.5%, 0%, 75.3%, 71.4%)
CIE-LABlab(27.58, -22.33, 28.12)
CIE-LCHlch(27.58, 35.91, 128.45°)
OKLaboklab(36.81% -0.0624 0.0641)
OKLCHoklch(36.81% 0.089 134.2)
XYZxyz(3.4465, 5.3008, 1.4137)
Luminance0.0530 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4912 #311249
analogous
#454912 #2A4912 #124915
triadic
#2A4912 #122A49 #49122A
tetradic
#2A4912 #124549 #311249 #491512
square
#2A4912 #124549 #311249 #491512
split-complementary
#2A4912 #151249 #491245
monochromatic
#0E1906 #0E1906 #2A4912 #467A1E #62AB2A

Accessibility & contrast

On white

10.19
#2A4912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2A4912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4912
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4912#FFFFFF#000000##FFFFFF
##2A49121.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C430A
Deuteranopia (green-blind)
#484017
Tritanopia (blue-blind)
#2A463E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a4912;
/* rgb */ color: rgb(42, 73, 18);
/* oklch */ color: oklch(36.8% 0.089 134.2);
Tailwind
colors: {
  custom: {
    50: '#677c53',
    500: '#2a4912',
    950: '#000000',
  },
}
SCSS
$custom: #2a4912;
$custom-light: #677c53;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4912",
  "rgb": {
    "r": 42,
    "g": 73,
    "b": 18
  },
  "hsl": {
    "h": 93.818,
    "s": 60.44,
    "l": 17.843
  },
  "oklch": {
    "l": 0.36813,
    "c": 0.08944,
    "h": 134.2
  },
  "luminance": 0.05301
}

Semantic roles & 50–950 ramp

primary
#2A4912
secondary
#603582
accent
#44E49E
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A4912

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

Preview Lab → · Contrast checker → · Palette generator →

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