#345118#345118

#345118 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.8% C 0.090 H 132.2°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#345118
RGBrgb(52, 81, 24)
HSLhsl(91, 54%, 21%)
HSVhsv(91, 70%, 32%)
CMYKcmyk(35.8%, 0%, 70.4%, 68.2%)
CIE-LABlab(31.07, -21.69, 29.14)
CIE-LCHlch(31.07, 36.33, 126.66°)
OKLaboklab(39.84% -0.0608 0.067)
OKLCHoklch(39.84% 0.09 132.2)
XYZxyz(4.5234, 6.6807, 1.9151)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345118 #351851
analogous
#505118 #345118 #185118
triadic
#345118 #183451 #511834
tetradic
#345118 #185051 #351851 #511818
square
#345118 #185051 #351851 #511818
split-complementary
#345118 #181851 #511850
monochromatic
#0F1807 #16220A #345118 #528026 #71AF34

Accessibility & contrast

On white

8.99
#345118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#345118 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #345118
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345118#FFFFFF#000000##FFFFFF
##3451181.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B11
Deuteranopia (green-blind)
#51481D
Tritanopia (blue-blind)
#354E45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #345118;
/* rgb */ color: rgb(52, 81, 24);
/* oklch */ color: oklch(39.8% 0.090 132.2);
Tailwind
colors: {
  custom: {
    50: '#6e8258',
    500: '#345118',
    950: '#000000',
  },
}
SCSS
$custom: #345118;
$custom-light: #6e8258;
$custom-dark: #000000;
JSON
{
  "hex": "#345118",
  "rgb": {
    "r": 52,
    "g": 81,
    "b": 24
  },
  "hsl": {
    "h": 90.526,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.39841,
    "c": 0.09045,
    "h": 132.2
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#345118
secondary
#633D88
accent
#4ADE95
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #345118

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

Preview Lab → · Contrast checker → · Palette generator →

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