#2A4005#2A4005

#2A4005 is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.0% C 0.085 H 128.9°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#2A4005
RGBrgb(42, 64, 5)
HSLhsl(82, 86%, 14%)
HSVhsv(82, 92%, 25%)
CMYKcmyk(34.4%, 0%, 92.2%, 74.9%)
CIE-LABlab(24.23, -18.68, 30.32)
CIE-LCHlch(24.23, 35.61, 121.63°)
OKLaboklab(34.05% -0.0537 0.0666)
OKLCHoklch(34.05% 0.085 128.9)
XYZxyz(2.8156, 4.1699, 0.8001)
Luminance0.0417 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4005 #1B0540
analogous
#403805 #2A4005 #0C4005
triadic
#2A4005 #052A40 #40052A
tetradic
#2A4005 #054038 #1B0540 #40050C
square
#2A4005 #054038 #1B0540 #40050C
split-complementary
#2A4005 #050C40 #380540
monochromatic
#131C02 #131C02 #2A4005 #4F7909 #75B20E

Accessibility & contrast

On white

11.45
#2A4005 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2A4005 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4005
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4005#FFFFFF#000000##FFFFFF
##2A40051.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4005;
/* rgb */ color: rgb(42, 64, 5);
/* oklch */ color: oklch(34.0% 0.085 128.9);
Tailwind
colors: {
  custom: {
    50: '#66754b',
    500: '#2a4005',
    950: '#000000',
  },
}
SCSS
$custom: #2a4005;
$custom-light: #66754b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4005",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 5
  },
  "hsl": {
    "h": 82.373,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.34049,
    "c": 0.08549,
    "h": 128.9
  },
  "luminance": 0.0417
}

Semantic roles & 50–950 ramp

primary
#2A4005
secondary
#442081
accent
#2CFC7A
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2A4005

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

Preview Lab → · Contrast checker → · Palette generator →

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