#336A12#336A12

#336A12 is a mid, vivid yellow-green. Relative luminance 0.111; OKLCH L 46.9% C 0.130 H 136.8°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#336A12
RGBrgb(51, 106, 18)
HSLhsl(98, 71%, 24%)
HSVhsv(98, 83%, 42%)
CMYKcmyk(51.9%, 0%, 83%, 58.4%)
CIE-LABlab(39.67, -34.16, 40.25)
CIE-LCHlch(39.67, 52.80, 130.32°)
OKLaboklab(46.86% -0.095 0.0893)
OKLCHoklch(46.86% 0.13 136.8)
XYZxyz(6.6283, 11.0551, 2.3567)
Luminance0.1106 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336A12 #49126A
analogous
#5F6A12 #336A12 #126A1D
triadic
#336A12 #12336A #6A1233
tetradic
#336A12 #125F6A #49126A #6A1D12
square
#336A12 #125F6A #49126A #6A1D12
split-complementary
#336A12 #1D126A #6A125F
monochromatic
#0D1A04 #1A3609 #336A12 #4C9E1B #65D324

Accessibility & contrast

On white

6.54
#336A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#336A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336A12
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336A12#FFFFFF#000000##FFFFFF
##336A121.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6000
Deuteranopia (green-blind)
#675C1C
Tritanopia (blue-blind)
#30665A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #336a12;
/* rgb */ color: rgb(51, 106, 18);
/* oklch */ color: oklch(46.9% 0.130 136.8);
Tailwind
colors: {
  custom: {
    50: '#719558',
    500: '#336a12',
    950: '#000000',
  },
}
SCSS
$custom: #336a12;
$custom-light: #719558;
$custom-dark: #000000;
JSON
{
  "hex": "#336a12",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 18
  },
  "hsl": {
    "h": 97.5,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.4686,
    "c": 0.1304,
    "h": 136.8
  },
  "luminance": 0.11056
}

Semantic roles & 50–950 ramp

primary
#336A12
secondary
#7936A2
accent
#3AEEAA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336A12

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

Preview Lab → · Contrast checker → · Palette generator →

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