#2A4D18#2A4D18

#2A4D18 is a dark, moderate yellow-green. Relative luminance 0.059; OKLCH L 38.1% C 0.090 H 136.6°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#2A4D18
RGBrgb(42, 77, 24)
HSLhsl(100, 52%, 20%)
HSVhsv(100, 69%, 30%)
CMYKcmyk(45.5%, 0%, 68.8%, 69.8%)
CIE-LABlab(29.07, -23.70, 26.79)
CIE-LCHlch(29.07, 35.77, 131.50°)
OKLaboklab(38.06% -0.0656 0.0621)
OKLCHoklch(38.06% 0.09 136.6)
XYZxyz(3.7735, 5.8657, 1.7973)
Luminance0.0587 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D18 #3B184D
analogous
#444D18 #2A4D18 #184D21
triadic
#2A4D18 #182A4D #4D182A
tetradic
#2A4D18 #18444D #3B184D #4D2118
square
#2A4D18 #18444D #3B184D #4D2118
split-complementary
#2A4D18 #21184D #4D1844
monochromatic
#0D1707 #111E09 #2A4D18 #437C27 #5DAA35

Accessibility & contrast

On white

9.66
#2A4D18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A4D18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4D18
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D18#FFFFFF#000000##FFFFFF
##2A4D181.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504612
Deuteranopia (green-blind)
#4B431C
Tritanopia (blue-blind)
#294A42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4d18;
/* rgb */ color: rgb(42, 77, 24);
/* oklch */ color: oklch(38.1% 0.090 136.6);
Tailwind
colors: {
  custom: {
    50: '#677f57',
    500: '#2a4d18',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d18;
$custom-light: #677f57;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d18",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 24
  },
  "hsl": {
    "h": 99.623,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38055,
    "c": 0.09035,
    "h": 136.6
  },
  "luminance": 0.05866
}

Semantic roles & 50–950 ramp

primary
#2A4D18
secondary
#6C3D84
accent
#4CDCAB
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4D18

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

Preview Lab → · Contrast checker → · Palette generator →

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