#336112#336112

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

Color values

HEX#336112
RGBrgb(51, 97, 18)
HSLhsl(95, 69%, 23%)
HSVhsv(95, 81%, 38%)
CMYKcmyk(47.4%, 0%, 81.4%, 62%)
CIE-LABlab(36.55, -30.23, 37.28)
CIE-LCHlch(36.55, 48.00, 129.04°)
OKLaboklab(44.29% -0.0844 0.0831)
OKLCHoklch(44.29% 0.118 135.5)
XYZxyz(5.7490, 9.2965, 2.0636)
Luminance0.0930 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336112 #401261
analogous
#5A6112 #336112 #126119
triadic
#336112 #123361 #611233
tetradic
#336112 #125A61 #401261 #611912
square
#336112 #125A61 #401261 #611912
split-complementary
#336112 #191261 #61125A
monochromatic
#0E1A05 #182D08 #336112 #4E951C #69C825

Accessibility & contrast

On white

7.34
#336112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #336112
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336112#FFFFFF#000000##FFFFFF
##3361121.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655802
Deuteranopia (green-blind)
#5F551A
Tritanopia (blue-blind)
#325D52
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #336112;
/* rgb */ color: rgb(51, 97, 18);
/* oklch */ color: oklch(44.3% 0.118 135.5);
Tailwind
colors: {
  custom: {
    50: '#708e57',
    500: '#336112',
    950: '#000000',
  },
}
SCSS
$custom: #336112;
$custom-light: #708e57;
$custom-dark: #000000;
JSON
{
  "hex": "#336112",
  "rgb": {
    "r": 51,
    "g": 97,
    "b": 18
  },
  "hsl": {
    "h": 94.937,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.44293,
    "c": 0.11847,
    "h": 135.5
  },
  "luminance": 0.09297
}

Semantic roles & 50–950 ramp

primary
#336112
secondary
#703699
accent
#3CECA2
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #336112

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

Preview Lab → · Contrast checker → · Palette generator →

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