#336A0F#336A0F

#336A0F is a mid, vivid yellow-green. Relative luminance 0.110; OKLCH L 46.8% C 0.132 H 136.5°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#336A0F
RGBrgb(51, 106, 15)
HSLhsl(96, 75%, 24%)
HSVhsv(96, 86%, 42%)
CMYKcmyk(51.9%, 0%, 85.8%, 58.4%)
CIE-LABlab(39.66, -34.34, 41.19)
CIE-LCHlch(39.66, 53.63, 129.81°)
OKLaboklab(46.84% -0.0956 0.0908)
OKLCHoklch(46.84% 0.132 136.5)
XYZxyz(6.6053, 11.0459, 2.2359)
Luminance0.1105 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336A0F #460F6A
analogous
#606A0F #336A0F #0F6A18
triadic
#336A0F #0F336A #6A0F33
tetradic
#336A0F #0F606A #460F6A #6A180F
square
#336A0F #0F606A #460F6A #6A180F
split-complementary
#336A0F #180F6A #6A0F60
monochromatic
#0D1B04 #193407 #336A0F #4DA017 #67D51E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##336A0F#FFFFFF#000000##FFFFFF
##336A0F1.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)
#675C1A
Tritanopia (blue-blind)
#30665A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #336a0f;
/* rgb */ color: rgb(51, 106, 15);
/* oklch */ color: oklch(46.8% 0.132 136.5);
Tailwind
colors: {
  custom: {
    50: '#719557',
    500: '#336a0f',
    950: '#000000',
  },
}
SCSS
$custom: #336a0f;
$custom-light: #719557;
$custom-dark: #000000;
JSON
{
  "hex": "#336a0f",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 15
  },
  "hsl": {
    "h": 96.264,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.46842,
    "c": 0.1319,
    "h": 136.5
  },
  "luminance": 0.11046
}

Semantic roles & 50–950 ramp

primary
#336A0F
secondary
#7632A2
accent
#36F2A8
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #336A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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