#345A12#345A12

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

Color values

HEX#345A12
RGBrgb(52, 90, 18)
HSLhsl(92, 67%, 21%)
HSVhsv(92, 80%, 35%)
CMYKcmyk(42.2%, 0%, 80%, 64.7%)
CIE-LABlab(34.16, -26.63, 34.98)
CIE-LCHlch(34.16, 43.96, 127.28°)
OKLaboklab(42.35% -0.0748 0.0783)
OKLCHoklch(42.35% 0.108 133.7)
XYZxyz(5.1814, 8.0858, 1.8599)
Luminance0.0809 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345A12 #38125A
analogous
#585A12 #345A12 #125A14
triadic
#345A12 #12345A #5A1234
tetradic
#345A12 #12585A #38125A #5A1412
square
#345A12 #12585A #38125A #5A1412
split-complementary
#345A12 #14125A #5A1258
monochromatic
#0F1A05 #172708 #345A12 #518D1C #6FC026

Accessibility & contrast

On white

8.02
#345A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #345A12
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345A12#FFFFFF#000000##FFFFFF
##345A121.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5204
Deuteranopia (green-blind)
#594F19
Tritanopia (blue-blind)
#34564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #345a12;
/* rgb */ color: rgb(52, 90, 18);
/* oklch */ color: oklch(42.4% 0.108 133.7);
Tailwind
colors: {
  custom: {
    50: '#6f8956',
    500: '#345a12',
    950: '#000000',
  },
}
SCSS
$custom: #345a12;
$custom-light: #6f8956;
$custom-dark: #000000;
JSON
{
  "hex": "#345a12",
  "rgb": {
    "r": 52,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 91.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.4235,
    "c": 0.10824,
    "h": 133.7
  },
  "luminance": 0.08086
}

Semantic roles & 50–950 ramp

primary
#345A12
secondary
#663593
accent
#3EEA99
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #345A12

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

Preview Lab → · Contrast checker → · Palette generator →

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