#2A4F12#2A4F12

#2A4F12 is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.6% C 0.098 H 135.6°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#2A4F12
RGBrgb(42, 79, 18)
HSLhsl(96, 63%, 19%)
HSVhsv(96, 77%, 31%)
CMYKcmyk(46.8%, 0%, 77.2%, 69%)
CIE-LABlab(29.73, -25.26, 30.36)
CIE-LCHlch(29.73, 39.50, 129.76°)
OKLaboklab(38.58% -0.0703 0.0688)
OKLCHoklch(38.58% 0.098 135.6)
XYZxyz(3.8599, 6.1277, 1.5515)
Luminance0.0613 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F12 #37124F
analogous
#494F12 #2A4F12 #124F18
triadic
#2A4F12 #122A4F #4F122A
tetradic
#2A4F12 #12494F #37124F #4F1812
square
#2A4F12 #12494F #37124F #4F1812
split-complementary
#2A4F12 #18124F #4F1249
monochromatic
#0D1906 #101D07 #2A4F12 #45811D #5FB329

Accessibility & contrast

On white

9.44
#2A4F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A4F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F12
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F12#FFFFFF#000000##FFFFFF
##2A4F121.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524808
Deuteranopia (green-blind)
#4D4518
Tritanopia (blue-blind)
#294C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4f12;
/* rgb */ color: rgb(42, 79, 18);
/* oklch */ color: oklch(38.6% 0.098 135.6);
Tailwind
colors: {
  custom: {
    50: '#678054',
    500: '#2a4f12',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f12;
$custom-light: #678054;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f12",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 96.393,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38578,
    "c": 0.09838,
    "h": 135.6
  },
  "luminance": 0.06128
}

Semantic roles & 50–950 ramp

primary
#2A4F12
secondary
#673588
accent
#42E6A5
background
#F6F7F5
surface
#EBEEE8
border
#C6C9C4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4F12

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

Preview Lab → · Contrast checker → · Palette generator →

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