#2A4008#2A4008

#2A4008 is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.1% C 0.083 H 129.3°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#2A4008
RGBrgb(42, 64, 8)
HSLhsl(84, 78%, 14%)
HSVhsv(84, 88%, 25%)
CMYKcmyk(34.4%, 0%, 87.5%, 74.9%)
CIE-LABlab(24.25, -18.47, 29.12)
CIE-LCHlch(24.25, 34.48, 122.38°)
OKLaboklab(34.07% -0.0528 0.0645)
OKLCHoklch(34.07% 0.083 129.3)
XYZxyz(2.8321, 4.1765, 0.8866)
Luminance0.0418 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4008 #1E0840
analogous
#403A08 #2A4008 #0E4008
triadic
#2A4008 #082A40 #40082A
tetradic
#2A4008 #08403A #1E0840 #40080E
square
#2A4008 #08403A #1E0840 #40080E
split-complementary
#2A4008 #080E40 #3A0840
monochromatic
#121B03 #121B03 #2A4008 #4E760F #71AD16

Accessibility & contrast

On white

11.44
#2A4008 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A4008 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4008
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4008#FFFFFF#000000##FFFFFF
##2A40081.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B00
Deuteranopia (green-blind)
#41390E
Tritanopia (blue-blind)
#2C3D36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a4008;
/* rgb */ color: rgb(42, 64, 8);
/* oklch */ color: oklch(34.1% 0.083 129.3);
Tailwind
colors: {
  custom: {
    50: '#66754d',
    500: '#2a4008',
    950: '#000000',
  },
}
SCSS
$custom: #2a4008;
$custom-light: #66754d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4008",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 8
  },
  "hsl": {
    "h": 83.571,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.34073,
    "c": 0.08335,
    "h": 129.3
  },
  "luminance": 0.04177
}

Semantic roles & 50–950 ramp

primary
#2A4008
secondary
#48257E
accent
#34F47F
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2A4008

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

Preview Lab → · Contrast checker → · Palette generator →

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