#336811#336811

#336811 is a mid, vivid yellow-green. Relative luminance 0.106; OKLCH L 46.3% C 0.128 H 136.4°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#336811
RGBrgb(51, 104, 17)
HSLhsl(97, 72%, 24%)
HSVhsv(97, 84%, 41%)
CMYKcmyk(51%, 0%, 83.7%, 59.2%)
CIE-LABlab(38.98, -33.37, 39.93)
CIE-LCHlch(38.98, 52.04, 129.89°)
OKLaboklab(46.28% -0.0929 0.0885)
OKLCHoklch(46.28% 0.128 136.4)
XYZxyz(6.4166, 10.6445, 2.2467)
Luminance0.1065 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336811 #461168
analogous
#5E6811 #336811 #11681A
triadic
#336811 #113368 #681133
tetradic
#336811 #115E68 #461168 #681A11
square
#336811 #115E68 #461168 #681A11
split-complementary
#336811 #1A1168 #68115E
monochromatic
#0D1A04 #193308 #336811 #4D9D1A #67D122

Accessibility & contrast

On white

6.71
#336811 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#336811 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336811
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336811#FFFFFF#000000##FFFFFF
##3368111.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F00
Deuteranopia (green-blind)
#655A1B
Tritanopia (blue-blind)
#306458
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #336811;
/* rgb */ color: rgb(51, 104, 17);
/* oklch */ color: oklch(46.3% 0.128 136.4);
Tailwind
colors: {
  custom: {
    50: '#719357',
    500: '#336811',
    950: '#000000',
  },
}
SCSS
$custom: #336811;
$custom-light: #719357;
$custom-dark: #000000;
JSON
{
  "hex": "#336811",
  "rgb": {
    "r": 51,
    "g": 104,
    "b": 17
  },
  "hsl": {
    "h": 96.552,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.46284,
    "c": 0.12832,
    "h": 136.4
  },
  "luminance": 0.10645
}

Semantic roles & 50–950 ramp

primary
#336811
secondary
#7635A0
accent
#39EFA8
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #336811

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

Preview Lab → · Contrast checker → · Palette generator →

#336811 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva