#336C12#336C12

#336C12 is a mid, vivid yellow-green. Relative luminance 0.115; OKLCH L 47.4% C 0.133 H 137.0°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#336C12
RGBrgb(51, 108, 18)
HSLhsl(98, 71%, 25%)
HSVhsv(98, 83%, 42%)
CMYKcmyk(52.8%, 0%, 83.3%, 57.6%)
CIE-LABlab(40.36, -35.01, 40.90)
CIE-LCHlch(40.36, 53.84, 130.56°)
OKLaboklab(47.43% -0.0973 0.0907)
OKLCHoklch(47.43% 0.133 137)
XYZxyz(6.8368, 11.4721, 2.4262)
Luminance0.1147 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336C12 #4B126C
analogous
#606C12 #336C12 #126C1E
triadic
#336C12 #12336C #6C1233
tetradic
#336C12 #12606C #4B126C #6C1E12
square
#336C12 #12606C #4B126C #6C1E12
split-complementary
#336C12 #1E126C #6C1260
monochromatic
#0C1A04 #1A3809 #336C12 #4CA01B #65D523

Accessibility & contrast

On white

6.37
#336C12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#336C12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336C12
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336C12#FFFFFF#000000##FFFFFF
##336C121.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706200
Deuteranopia (green-blind)
#695D1C
Tritanopia (blue-blind)
#2F685B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #336c12;
/* rgb */ color: rgb(51, 108, 18);
/* oklch */ color: oklch(47.4% 0.133 137.0);
Tailwind
colors: {
  custom: {
    50: '#719758',
    500: '#336c12',
    950: '#000000',
  },
}
SCSS
$custom: #336c12;
$custom-light: #719758;
$custom-dark: #000000;
JSON
{
  "hex": "#336c12",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 18
  },
  "hsl": {
    "h": 98,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.47429,
    "c": 0.13298,
    "h": 137
  },
  "luminance": 0.11473
}

Semantic roles & 50–950 ramp

primary
#336C12
secondary
#7B36A3
accent
#3AEEAC
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336C12

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

Preview Lab → · Contrast checker → · Palette generator →

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