#2A4918#2A4918

#2A4918 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.9% C 0.084 H 135.7°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#2A4918
RGBrgb(42, 73, 24)
HSLhsl(98, 51%, 19%)
HSVhsv(98, 67%, 29%)
CMYKcmyk(42.5%, 0%, 67.1%, 71.4%)
CIE-LABlab(27.64, -21.71, 25.18)
CIE-LCHlch(27.64, 33.24, 130.76°)
OKLaboklab(36.88% -0.0601 0.0587)
OKLCHoklch(36.88% 0.084 135.7)
XYZxyz(3.5022, 5.3231, 1.7069)
Luminance0.0532 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4918 #371849
analogous
#434918 #2A4918 #18491F
triadic
#2A4918 #182A49 #49182A
tetradic
#2A4918 #184349 #371849 #491F18
square
#2A4918 #184349 #371849 #491F18
split-complementary
#2A4918 #1F1849 #491843
monochromatic
#0D1708 #101B09 #2A4918 #457727 #5FA536

Accessibility & contrast

On white

10.17
#2A4918 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2A4918 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4918
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4918#FFFFFF#000000##FFFFFF
##2A49181.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4313
Deuteranopia (green-blind)
#47401C
Tritanopia (blue-blind)
#29463F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a4918;
/* rgb */ color: rgb(42, 73, 24);
/* oklch */ color: oklch(36.9% 0.084 135.7);
Tailwind
colors: {
  custom: {
    50: '#667c57',
    500: '#2a4918',
    950: '#000000',
  },
}
SCSS
$custom: #2a4918;
$custom-light: #667c57;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4918",
  "rgb": {
    "r": 42,
    "g": 73,
    "b": 24
  },
  "hsl": {
    "h": 97.959,
    "s": 50.515,
    "l": 19.02
  },
  "oklch": {
    "l": 0.36882,
    "c": 0.08405,
    "h": 135.7
  },
  "luminance": 0.05323
}

Semantic roles & 50–950 ramp

primary
#2A4918
secondary
#673D80
accent
#4EDAA7
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2A4918

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

Preview Lab → · Contrast checker → · Palette generator →

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