#336118#336118

#336118 is a dark, moderate yellow-green. Relative luminance 0.093; OKLCH L 44.3% C 0.115 H 136.3°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#336118
RGBrgb(51, 97, 24)
HSLhsl(98, 60%, 24%)
HSVhsv(98, 75%, 38%)
CMYKcmyk(47.4%, 0%, 75.3%, 62%)
CIE-LABlab(36.59, -29.78, 34.94)
CIE-LCHlch(36.59, 45.91, 130.45°)
OKLaboklab(44.34% -0.0828 0.0792)
OKLCHoklch(44.34% 0.115 136.3)
XYZxyz(5.8046, 9.3188, 2.3568)
Luminance0.0932 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336118 #461861
analogous
#576118 #336118 #186121
triadic
#336118 #183361 #611833
tetradic
#336118 #185761 #461861 #612118
square
#336118 #185761 #461861 #612118
split-complementary
#336118 #211861 #611857
monochromatic
#0D1906 #19300C #336118 #4D9224 #67C330

Accessibility & contrast

On white

7.33
#336118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#336118 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #336118
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336118#FFFFFF#000000##FFFFFF
##3361181.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#65580C
Deuteranopia (green-blind)
#5E551F
Tritanopia (blue-blind)
#315D53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #336118;
/* rgb */ color: rgb(51, 97, 24);
/* oklch */ color: oklch(44.3% 0.115 136.3);
Tailwind
colors: {
  custom: {
    50: '#6f8e5a',
    500: '#336118',
    950: '#000000',
  },
}
SCSS
$custom: #336118;
$custom-light: #6f8e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#336118",
  "rgb": {
    "r": 51,
    "g": 97,
    "b": 24
  },
  "hsl": {
    "h": 97.808,
    "s": 60.331,
    "l": 23.725
  },
  "oklch": {
    "l": 0.4434,
    "c": 0.11453,
    "h": 136.3
  },
  "luminance": 0.09319
}

Semantic roles & 50–950 ramp

primary
#336118
secondary
#763D97
accent
#44E3A9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #336118

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

Preview Lab → · Contrast checker → · Palette generator →

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