#345A18#345A18

#345A18 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.4% C 0.104 H 134.6°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#345A18
RGBrgb(52, 90, 24)
HSLhsl(95, 58%, 22%)
HSVhsv(95, 73%, 35%)
CMYKcmyk(42.2%, 0%, 73.3%, 64.7%)
CIE-LABlab(34.21, -26.15, 32.48)
CIE-LCHlch(34.21, 41.70, 128.83°)
OKLaboklab(42.4% -0.073 0.074)
OKLCHoklch(42.4% 0.104 134.6)
XYZxyz(5.2371, 8.1081, 2.1530)
Luminance0.0811 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345A18 #3E185A
analogous
#555A18 #345A18 #185A1D
triadic
#345A18 #18345A #5A1834
tetradic
#345A18 #18555A #3E185A #5A1D18
square
#345A18 #18555A #3E185A #5A1D18
split-complementary
#345A18 #1D185A #5A1855
monochromatic
#0E1806 #182A0B #345A18 #508A25 #6CBB32

Accessibility & contrast

On white

8.01
#345A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#345A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #345A18
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345A18#FFFFFF#000000##FFFFFF
##345A181.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E520E
Deuteranopia (green-blind)
#584F1E
Tritanopia (blue-blind)
#33564D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #345a18;
/* rgb */ color: rgb(52, 90, 24);
/* oklch */ color: oklch(42.4% 0.104 134.6);
Tailwind
colors: {
  custom: {
    50: '#6f8959',
    500: '#345a18',
    950: '#000000',
  },
}
SCSS
$custom: #345a18;
$custom-light: #6f8959;
$custom-dark: #000000;
JSON
{
  "hex": "#345a18",
  "rgb": {
    "r": 52,
    "g": 90,
    "b": 24
  },
  "hsl": {
    "h": 94.545,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42402,
    "c": 0.10393,
    "h": 134.6
  },
  "luminance": 0.08108
}

Semantic roles & 50–950 ramp

primary
#345A18
secondary
#6D3D91
accent
#47E1A0
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080B04
muted
#7B7C79

Preview Lab

Preview with #345A18

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

Preview Lab → · Contrast checker → · Palette generator →

#345A18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva