#336E12#336E12

#336E12 is a mid, vivid yellow-green. Relative luminance 0.119; OKLCH L 48.0% C 0.136 H 137.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#336E12
RGBrgb(51, 110, 18)
HSLhsl(98, 72%, 25%)
HSVhsv(98, 84%, 43%)
CMYKcmyk(53.6%, 0%, 83.6%, 56.9%)
CIE-LABlab(41.05, -35.84, 41.55)
CIE-LCHlch(41.05, 54.87, 130.79°)
OKLaboklab(48% -0.0995 0.092)
OKLCHoklch(48% 0.136 137.2)
XYZxyz(7.0501, 11.8988, 2.4973)
Luminance0.1190 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336E12 #4D126E
analogous
#616E12 #336E12 #126E1F
triadic
#336E12 #12336E #6E1233
tetradic
#336E12 #12616E #4D126E #6E1F12
square
#336E12 #12616E #4D126E #6E1F12
split-complementary
#336E12 #1F126E #6E1261
monochromatic
#0C1A04 #1B3909 #336E12 #4BA31B #64D723

Accessibility & contrast

On white

6.21
#336E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#336E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336E12
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336E12#FFFFFF#000000##FFFFFF
##336E121.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726400
Deuteranopia (green-blind)
#6A5F1D
Tritanopia (blue-blind)
#2F6A5D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #336e12;
/* rgb */ color: rgb(51, 110, 18);
/* oklch */ color: oklch(48.0% 0.136 137.2);
Tailwind
colors: {
  custom: {
    50: '#729859',
    500: '#336e12',
    950: '#000000',
  },
}
SCSS
$custom: #336e12;
$custom-light: #729859;
$custom-dark: #000000;
JSON
{
  "hex": "#336e12",
  "rgb": {
    "r": 51,
    "g": 110,
    "b": 18
  },
  "hsl": {
    "h": 98.478,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.47997,
    "c": 0.13554,
    "h": 137.2
  },
  "luminance": 0.11899
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #336E12

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

Preview Lab → · Contrast checker → · Palette generator →

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