#2A4518#2A4518

#2A4518 is a dark, moderate yellow-green. Relative luminance 0.048; OKLCH L 35.7% C 0.078 H 134.6°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#2A4518
RGBrgb(42, 69, 24)
HSLhsl(96, 48%, 18%)
HSVhsv(96, 65%, 27%)
CMYKcmyk(39.1%, 0%, 65.2%, 72.9%)
CIE-LABlab(26.20, -19.64, 23.55)
CIE-LCHlch(26.20, 30.66, 129.84°)
OKLaboklab(35.71% -0.0545 0.0552)
OKLCHoklch(35.71% 0.078 134.6)
XYZxyz(3.2478, 4.8143, 1.6221)
Luminance0.0481 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4518 #331845
analogous
#404518 #2A4518 #18451C
triadic
#2A4518 #182A45 #45182A
tetradic
#2A4518 #184045 #331845 #451C18
square
#2A4518 #184045 #331845 #451C18
split-complementary
#2A4518 #1C1845 #451840
monochromatic
#0E1708 #0E1808 #2A4518 #467228 #61A038

Accessibility & contrast

On white

10.70
#2A4518 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A4518 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4518
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4518#FFFFFF#000000##FFFFFF
##2A45181.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F13
Deuteranopia (green-blind)
#443D1B
Tritanopia (blue-blind)
#2A423B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a4518;
/* rgb */ color: rgb(42, 69, 24);
/* oklch */ color: oklch(35.7% 0.078 134.6);
Tailwind
colors: {
  custom: {
    50: '#667956',
    500: '#2a4518',
    950: '#000000',
  },
}
SCSS
$custom: #2a4518;
$custom-light: #667956;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4518",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 24
  },
  "hsl": {
    "h": 96,
    "s": 48.387,
    "l": 18.235
  },
  "oklch": {
    "l": 0.3571,
    "c": 0.07757,
    "h": 134.6
  },
  "luminance": 0.04814
}

Semantic roles & 50–950 ramp

primary
#2A4518
secondary
#633D7C
accent
#50D8A2
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2A4518

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

Preview Lab → · Contrast checker → · Palette generator →

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