#336712#336712

#336712 is a mid, vivid yellow-green. Relative luminance 0.104; OKLCH L 46.0% C 0.126 H 136.4°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#336712
RGBrgb(51, 103, 18)
HSLhsl(97, 70%, 24%)
HSVhsv(97, 83%, 40%)
CMYKcmyk(50.5%, 0%, 82.5%, 59.6%)
CIE-LABlab(38.63, -32.88, 39.27)
CIE-LCHlch(38.63, 51.22, 129.94°)
OKLaboklab(46.01% -0.0916 0.0873)
OKLCHoklch(46.01% 0.126 136.4)
XYZxyz(6.3245, 10.4476, 2.2555)
Luminance0.1045 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336712 #461267
analogous
#5D6712 #336712 #12671B
triadic
#336712 #123367 #671233
tetradic
#336712 #125D67 #461267 #671B12
square
#336712 #125D67 #461267 #671B12
split-complementary
#336712 #1B1267 #67125D
monochromatic
#0D1A05 #193309 #336712 #4D9B1B #67CF24

Accessibility & contrast

On white

6.80
#336712 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#336712 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336712
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336712#FFFFFF#000000##FFFFFF
##3367121.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E00
Deuteranopia (green-blind)
#64591C
Tritanopia (blue-blind)
#306357
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #336712;
/* rgb */ color: rgb(51, 103, 18);
/* oklch */ color: oklch(46.0% 0.126 136.4);
Tailwind
colors: {
  custom: {
    50: '#719358',
    500: '#336712',
    950: '#000000',
  },
}
SCSS
$custom: #336712;
$custom-light: #719358;
$custom-dark: #000000;
JSON
{
  "hex": "#336712",
  "rgb": {
    "r": 51,
    "g": 103,
    "b": 18
  },
  "hsl": {
    "h": 96.706,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.46005,
    "c": 0.12647,
    "h": 136.4
  },
  "luminance": 0.10448
}

Semantic roles & 50–950 ramp

primary
#336712
secondary
#76369F
accent
#3BEDA8
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336712

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

Preview Lab → · Contrast checker → · Palette generator →

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