#2A4512#2A4512

#2A4512 is a dark, moderate yellow-green. Relative luminance 0.048; OKLCH L 35.6% C 0.083 H 133.0°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#2A4512
RGBrgb(42, 69, 18)
HSLhsl(92, 59%, 17%)
HSVhsv(92, 74%, 27%)
CMYKcmyk(39.1%, 0%, 73.9%, 72.9%)
CIE-LABlab(26.13, -20.29, 26.60)
CIE-LCHlch(26.13, 33.45, 127.34°)
OKLaboklab(35.64% -0.0568 0.0609)
OKLCHoklch(35.64% 0.083 133)
XYZxyz(3.1921, 4.7920, 1.3289)
Luminance0.0479 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4512 #2D1245
analogous
#444512 #2A4512 #124514
triadic
#2A4512 #122A45 #45122A
tetradic
#2A4512 #124445 #2D1245 #451412
square
#2A4512 #124445 #2D1245 #451412
split-complementary
#2A4512 #141245 #451244
monochromatic
#0F1806 #0F1806 #2A4512 #48761F #65A62B

Accessibility & contrast

On white

10.72
#2A4512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A4512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4512
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4512#FFFFFF#000000##FFFFFF
##2A45121.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F0B
Deuteranopia (green-blind)
#443D16
Tritanopia (blue-blind)
#2A423B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a4512;
/* rgb */ color: rgb(42, 69, 18);
/* oklch */ color: oklch(35.6% 0.083 133.0);
Tailwind
colors: {
  custom: {
    50: '#667953',
    500: '#2a4512',
    950: '#000000',
  },
}
SCSS
$custom: #2a4512;
$custom-light: #667953;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4512",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 18
  },
  "hsl": {
    "h": 91.765,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.35636,
    "c": 0.08329,
    "h": 133
  },
  "luminance": 0.04792
}

Semantic roles & 50–950 ramp

primary
#2A4512
secondary
#5C357E
accent
#46E298
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A4512

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

Preview Lab → · Contrast checker → · Palette generator →

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