#336912#336912

#336912 is a mid, vivid yellow-green. Relative luminance 0.109; OKLCH L 46.6% C 0.129 H 136.6°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#336912
RGBrgb(51, 105, 18)
HSLhsl(97, 71%, 24%)
HSVhsv(97, 83%, 41%)
CMYKcmyk(51.4%, 0%, 82.9%, 58.8%)
CIE-LABlab(39.33, -33.74, 39.92)
CIE-LCHlch(39.33, 52.27, 130.20°)
OKLaboklab(46.58% -0.0939 0.0886)
OKLCHoklch(46.58% 0.129 136.6)
XYZxyz(6.5258, 10.8502, 2.3226)
Luminance0.1085 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336912 #481269
analogous
#5F6912 #336912 #12691C
triadic
#336912 #123369 #691233
tetradic
#336912 #125F69 #481269 #691C12
square
#336912 #125F69 #481269 #691C12
split-complementary
#336912 #1C1269 #69125F
monochromatic
#0D1A04 #1A3509 #336912 #4C9D1B #66D124

Accessibility & contrast

On white

6.62
#336912 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#336912 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336912
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336912#FFFFFF#000000##FFFFFF
##3369121.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D5F00
Deuteranopia (green-blind)
#665B1C
Tritanopia (blue-blind)
#306559
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #336912;
/* rgb */ color: rgb(51, 105, 18);
/* oklch */ color: oklch(46.6% 0.129 136.6);
Tailwind
colors: {
  custom: {
    50: '#719458',
    500: '#336912',
    950: '#000000',
  },
}
SCSS
$custom: #336912;
$custom-light: #719458;
$custom-dark: #000000;
JSON
{
  "hex": "#336912",
  "rgb": {
    "r": 51,
    "g": 105,
    "b": 18
  },
  "hsl": {
    "h": 97.241,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.46575,
    "c": 0.1291,
    "h": 136.6
  },
  "luminance": 0.10851
}

Semantic roles & 50–950 ramp

primary
#336912
secondary
#7836A1
accent
#3AEDAA
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336912

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

Preview Lab → · Contrast checker → · Palette generator →

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