#2A4A12#2A4A12

#2A4A12 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.1% C 0.091 H 134.5°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#2A4A12
RGBrgb(42, 74, 18)
HSLhsl(94, 61%, 18%)
HSVhsv(94, 76%, 29%)
CMYKcmyk(43.2%, 0%, 75.7%, 71%)
CIE-LABlab(27.94, -22.83, 28.50)
CIE-LCHlch(27.94, 36.52, 128.70°)
OKLaboklab(37.11% -0.0637 0.0649)
OKLCHoklch(37.11% 0.091 134.5)
XYZxyz(3.5127, 5.4333, 1.4358)
Luminance0.0543 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4A12 #32124A
analogous
#464A12 #2A4A12 #124A16
triadic
#2A4A12 #122A4A #4A122A
tetradic
#2A4A12 #12464A #32124A #4A1612
square
#2A4A12 #12464A #32124A #4A1612
split-complementary
#2A4A12 #16124A #4A1246
monochromatic
#0E1906 #0E1906 #2A4A12 #467B1E #62AC2A

Accessibility & contrast

On white

10.06
#2A4A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2A4A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4A12
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4A12#FFFFFF#000000##FFFFFF
##2A4A121.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D440A
Deuteranopia (green-blind)
#494117
Tritanopia (blue-blind)
#2A473F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a4a12;
/* rgb */ color: rgb(42, 74, 18);
/* oklch */ color: oklch(37.1% 0.091 134.5);
Tailwind
colors: {
  custom: {
    50: '#677d53',
    500: '#2a4a12',
    950: '#000000',
  },
}
SCSS
$custom: #2a4a12;
$custom-light: #677d53;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4a12",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 18
  },
  "hsl": {
    "h": 94.286,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37107,
    "c": 0.09096,
    "h": 134.5
  },
  "luminance": 0.05433
}

Semantic roles & 50–950 ramp

primary
#2A4A12
secondary
#613583
accent
#44E49F
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2A4A12

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

Preview Lab → · Contrast checker → · Palette generator →

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