#336512#336512

#336512 is a mid, vivid yellow-green. Relative luminance 0.101; OKLCH L 45.4% C 0.124 H 136.1°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#336512
RGBrgb(51, 101, 18)
HSLhsl(96, 70%, 23%)
HSVhsv(96, 82%, 40%)
CMYKcmyk(49.5%, 0%, 82.2%, 60.4%)
CIE-LABlab(37.94, -32.01, 38.61)
CIE-LCHlch(37.94, 50.15, 129.66°)
OKLaboklab(45.43% -0.0892 0.0859)
OKLCHoklch(45.43% 0.124 136.1)
XYZxyz(6.1279, 10.0544, 2.1900)
Luminance0.1006 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336512 #441265
analogous
#5C6512 #336512 #12651B
triadic
#336512 #123365 #651233
tetradic
#336512 #125C65 #441265 #651B12
square
#336512 #125C65 #441265 #651B12
split-complementary
#336512 #1B1265 #65125C
monochromatic
#0D1A05 #193109 #336512 #4D991B #67CD25

Accessibility & contrast

On white

6.97
#336512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#336512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336512
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336512#FFFFFF#000000##FFFFFF
##3365121.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C00
Deuteranopia (green-blind)
#62581B
Tritanopia (blue-blind)
#316156
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #336512;
/* rgb */ color: rgb(51, 101, 18);
/* oklch */ color: oklch(45.4% 0.124 136.1);
Tailwind
colors: {
  custom: {
    50: '#709157',
    500: '#336512',
    950: '#000000',
  },
}
SCSS
$custom: #336512;
$custom-light: #709157;
$custom-dark: #000000;
JSON
{
  "hex": "#336512",
  "rgb": {
    "r": 51,
    "g": 101,
    "b": 18
  },
  "hsl": {
    "h": 96.145,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.45435,
    "c": 0.12383,
    "h": 136.1
  },
  "luminance": 0.10055
}

Semantic roles & 50–950 ramp

primary
#336512
secondary
#74369D
accent
#3BEDA6
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080D03
muted
#7B7D78

Preview Lab

Preview with #336512

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

Preview Lab → · Contrast checker → · Palette generator →

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