#336718#336718

#336718 is a mid, vivid yellow-green. Relative luminance 0.105; OKLCH L 46.0% C 0.123 H 137.1°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#336718
RGBrgb(51, 103, 24)
HSLhsl(99, 62%, 25%)
HSVhsv(99, 77%, 40%)
CMYKcmyk(50.5%, 0%, 76.7%, 59.6%)
CIE-LABlab(38.67, -32.45, 37.05)
CIE-LCHlch(38.67, 49.25, 131.21°)
OKLaboklab(46.05% -0.09 0.0836)
OKLCHoklch(46.05% 0.123 137.1)
XYZxyz(6.3802, 10.4698, 2.5487)
Luminance0.1047 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336718 #4C1867
analogous
#5A6718 #336718 #186725
triadic
#336718 #183367 #671833
tetradic
#336718 #185A67 #4C1867 #672518
square
#336718 #185A67 #4C1867 #672518
split-complementary
#336718 #251867 #67185A
monochromatic
#0C1906 #1A350C #336718 #4C9924 #64CA2F

Accessibility & contrast

On white

6.79
#336718 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #336718
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336718#FFFFFF#000000##FFFFFF
##3367181.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E0A
Deuteranopia (green-blind)
#645920
Tritanopia (blue-blind)
#306358
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #336718;
/* rgb */ color: rgb(51, 103, 24);
/* oklch */ color: oklch(46.0% 0.123 137.1);
Tailwind
colors: {
  custom: {
    50: '#70935b',
    500: '#336718',
    950: '#000000',
  },
}
SCSS
$custom: #336718;
$custom-light: #70935b;
$custom-dark: #000000;
JSON
{
  "hex": "#336718",
  "rgb": {
    "r": 51,
    "g": 103,
    "b": 24
  },
  "hsl": {
    "h": 99.494,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.46049,
    "c": 0.12282,
    "h": 137.1
  },
  "luminance": 0.1047
}

Semantic roles & 50–950 ramp

primary
#336718
secondary
#7C3E9D
accent
#43E5AE
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336718

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

Preview Lab → · Contrast checker → · Palette generator →

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