#345218#345218

#345218 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.1% C 0.092 H 132.6°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#345218
RGBrgb(52, 82, 24)
HSLhsl(91, 55%, 21%)
HSVhsv(91, 71%, 32%)
CMYKcmyk(36.6%, 0%, 70.7%, 67.8%)
CIE-LABlab(31.42, -22.20, 29.52)
CIE-LCHlch(31.42, 36.93, 126.94°)
OKLaboklab(40.13% -0.0622 0.0678)
OKLCHoklch(40.13% 0.092 132.6)
XYZxyz(4.5983, 6.8304, 1.9401)
Luminance0.0683 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345218 #361852
analogous
#515218 #345218 #185219
triadic
#345218 #183452 #521834
tetradic
#345218 #185152 #361852 #521918
square
#345218 #185152 #361852 #521918
split-complementary
#345218 #191852 #521851
monochromatic
#0F1807 #16230A #345218 #528126 #70B134

Accessibility & contrast

On white

8.87
#345218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#345218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #345218
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345218#FFFFFF#000000##FFFFFF
##3452181.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B11
Deuteranopia (green-blind)
#51491D
Tritanopia (blue-blind)
#354F46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #345218;
/* rgb */ color: rgb(52, 82, 24);
/* oklch */ color: oklch(40.1% 0.092 132.6);
Tailwind
colors: {
  custom: {
    50: '#6e8358',
    500: '#345218',
    950: '#000000',
  },
}
SCSS
$custom: #345218;
$custom-light: #6e8358;
$custom-dark: #000000;
JSON
{
  "hex": "#345218",
  "rgb": {
    "r": 52,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 91.034,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40126,
    "c": 0.09199,
    "h": 132.6
  },
  "luminance": 0.06831
}

Semantic roles & 50–950 ramp

primary
#345218
secondary
#643D89
accent
#4ADE96
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #345218

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

Preview Lab → · Contrast checker → · Palette generator →

#345218 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva