#336D0F#336D0F

#336D0F is a mid, vivid yellow-green. Relative luminance 0.117; OKLCH L 47.7% C 0.136 H 136.9°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#336D0F
RGBrgb(51, 109, 15)
HSLhsl(97, 76%, 24%)
HSVhsv(97, 86%, 43%)
CMYKcmyk(53.2%, 0%, 86.2%, 57.3%)
CIE-LABlab(40.70, -35.59, 42.14)
CIE-LCHlch(40.70, 55.16, 130.19°)
OKLaboklab(47.7% -0.099 0.0928)
OKLCHoklch(47.7% 0.136 136.9)
XYZxyz(6.9199, 11.6751, 2.3407)
Luminance0.1168 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336D0F #490F6D
analogous
#626D0F #336D0F #0F6D1A
triadic
#336D0F #0F336D #6D0F33
tetradic
#336D0F #0F626D #490F6D #6D1A0F
square
#336D0F #0F626D #490F6D #6D1A0F
split-complementary
#336D0F #1A0F6D #6D0F62
monochromatic
#0D1B04 #1A3708 #336D0F #4CA316 #65D91E

Accessibility & contrast

On white

6.30
#336D0F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#336D0F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336D0F
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336D0F#FFFFFF#000000##FFFFFF
##336D0F1.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716300
Deuteranopia (green-blind)
#695E1B
Tritanopia (blue-blind)
#2F695C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #336d0f;
/* rgb */ color: rgb(51, 109, 15);
/* oklch */ color: oklch(47.7% 0.136 136.9);
Tailwind
colors: {
  custom: {
    50: '#729757',
    500: '#336d0f',
    950: '#000000',
  },
}
SCSS
$custom: #336d0f;
$custom-light: #729757;
$custom-dark: #000000;
JSON
{
  "hex": "#336d0f",
  "rgb": {
    "r": 51,
    "g": 109,
    "b": 15
  },
  "hsl": {
    "h": 97.021,
    "s": 75.806,
    "l": 24.314
  },
  "oklch": {
    "l": 0.47696,
    "c": 0.13571,
    "h": 136.9
  },
  "luminance": 0.11676
}

Semantic roles & 50–950 ramp

primary
#336D0F
secondary
#7933A5
accent
#35F2AA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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