#336F12#336F12

#336F12 is a mid, vivid yellow-green. Relative luminance 0.121; OKLCH L 48.3% C 0.137 H 137.3°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#336F12
RGBrgb(51, 111, 18)
HSLhsl(99, 72%, 25%)
HSVhsv(99, 84%, 44%)
CMYKcmyk(54.1%, 0%, 83.8%, 56.5%)
CIE-LABlab(41.40, -36.26, 41.87)
CIE-LCHlch(41.40, 55.38, 130.89°)
OKLaboklab(48.28% -0.1006 0.0927)
OKLCHoklch(48.28% 0.137 137.3)
XYZxyz(7.1586, 12.1158, 2.5335)
Luminance0.1212 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336F12 #4E126F
analogous
#616F12 #336F12 #126F20
triadic
#336F12 #12336F #6F1233
tetradic
#336F12 #12616F #4E126F #6F2012
square
#336F12 #12616F #4E126F #6F2012
split-complementary
#336F12 #20126F #6F1261
monochromatic
#0C1A04 #1B3A09 #336F12 #4BA41B #63D823

Accessibility & contrast

On white

6.13
#336F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#336F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336F12
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336F12#FFFFFF#000000##FFFFFF
##336F121.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736500
Deuteranopia (green-blind)
#6B601D
Tritanopia (blue-blind)
#2F6B5E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #336f12;
/* rgb */ color: rgb(51, 111, 18);
/* oklch */ color: oklch(48.3% 0.137 137.3);
Tailwind
colors: {
  custom: {
    50: '#729959',
    500: '#336f12',
    950: '#000000',
  },
}
SCSS
$custom: #336f12;
$custom-light: #729959;
$custom-dark: #000000;
JSON
{
  "hex": "#336f12",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 18
  },
  "hsl": {
    "h": 98.71,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.48281,
    "c": 0.13683,
    "h": 137.3
  },
  "luminance": 0.12116
}

Semantic roles & 50–950 ramp

primary
#336F12
secondary
#7F37A6
accent
#39EFAE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #336F12

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

Preview Lab → · Contrast checker → · Palette generator →

#336F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva