#2A4612#2A4612

#2A4612 is a dark, moderate yellow-green. Relative luminance 0.049; OKLCH L 35.9% C 0.085 H 133.4°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#2A4612
RGBrgb(42, 70, 18)
HSLhsl(92, 59%, 17%)
HSVhsv(92, 74%, 27%)
CMYKcmyk(40%, 0%, 74.3%, 72.5%)
CIE-LABlab(26.49, -20.81, 26.98)
CIE-LCHlch(26.49, 34.07, 127.64°)
OKLaboklab(35.93% -0.0582 0.0617)
OKLCHoklch(35.93% 0.085 133.4)
XYZxyz(3.2541, 4.9161, 1.3496)
Luminance0.0492 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4612 #2E1246
analogous
#444612 #2A4612 #124614
triadic
#2A4612 #122A46 #46122A
tetradic
#2A4612 #124446 #2E1246 #461412
square
#2A4612 #124446 #2E1246 #461412
split-complementary
#2A4612 #141246 #461244
monochromatic
#0F1806 #0F1806 #2A4612 #47771F #64A72B

Accessibility & contrast

On white

10.59
#2A4612 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A4612 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4612
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4612#FFFFFF#000000##FFFFFF
##2A46121.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49400B
Deuteranopia (green-blind)
#453E16
Tritanopia (blue-blind)
#2A433B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a4612;
/* rgb */ color: rgb(42, 70, 18);
/* oklch */ color: oklch(35.9% 0.085 133.4);
Tailwind
colors: {
  custom: {
    50: '#667953',
    500: '#2a4612',
    950: '#000000',
  },
}
SCSS
$custom: #2a4612;
$custom-light: #667953;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4612",
  "rgb": {
    "r": 42,
    "g": 70,
    "b": 18
  },
  "hsl": {
    "h": 92.308,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.3593,
    "c": 0.08484,
    "h": 133.4
  },
  "luminance": 0.04916
}

Semantic roles & 50–950 ramp

primary
#2A4612
secondary
#5D357F
accent
#46E29A
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A4612

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

Preview Lab → · Contrast checker → · Palette generator →

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