#2A4007#2A4007

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

Color values

HEX#2A4007
RGBrgb(42, 64, 7)
HSLhsl(83, 80%, 14%)
HSVhsv(83, 89%, 25%)
CMYKcmyk(34.4%, 0%, 89.1%, 74.9%)
CIE-LABlab(24.24, -18.54, 29.52)
CIE-LCHlch(24.24, 34.86, 122.12°)
OKLaboklab(34.07% -0.0531 0.0652)
OKLCHoklch(34.07% 0.084 129.2)
XYZxyz(2.8266, 4.1743, 0.8578)
Luminance0.0417 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4007 #1D0740
analogous
#403A07 #2A4007 #0E4007
triadic
#2A4007 #072A40 #40072A
tetradic
#2A4007 #07403A #1D0740 #40070E
square
#2A4007 #07403A #1D0740 #40070E
split-complementary
#2A4007 #070E40 #3A0740
monochromatic
#121C03 #121C03 #2A4007 #4E770D #72AE13

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A4007#FFFFFF#000000##FFFFFF
##2A40071.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)
#41390D
Tritanopia (blue-blind)
#2C3D35
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a4007;
/* rgb */ color: rgb(42, 64, 7);
/* oklch */ color: oklch(34.1% 0.084 129.2);
Tailwind
colors: {
  custom: {
    50: '#66754c',
    500: '#2a4007',
    950: '#000000',
  },
}
SCSS
$custom: #2a4007;
$custom-light: #66754c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4007",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 7
  },
  "hsl": {
    "h": 83.158,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.34065,
    "c": 0.08405,
    "h": 129.2
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

primary
#2A4007
secondary
#47247F
accent
#31F77D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2A4007

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

Preview Lab → · Contrast checker → · Palette generator →

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