#336218#336218

#336218 is a dark, moderate yellow-green. Relative luminance 0.095; OKLCH L 44.6% C 0.116 H 136.4°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#336218
RGBrgb(51, 98, 24)
HSLhsl(98, 61%, 24%)
HSVhsv(98, 76%, 38%)
CMYKcmyk(48%, 0%, 75.5%, 61.6%)
CIE-LABlab(36.94, -30.24, 35.29)
CIE-LCHlch(36.94, 46.47, 130.59°)
OKLaboklab(44.63% -0.084 0.0799)
OKLCHoklch(44.63% 0.116 136.4)
XYZxyz(5.8976, 9.5048, 2.3878)
Luminance0.0950 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336218 #471862
analogous
#586218 #336218 #186222
triadic
#336218 #183362 #621833
tetradic
#336218 #185862 #471862 #622218
square
#336218 #185862 #471862 #622218
split-complementary
#336218 #221862 #621858
monochromatic
#0D1906 #19310C #336218 #4D9324 #66C430

Accessibility & contrast

On white

7.24
#336218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#336218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #336218
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336218#FFFFFF#000000##FFFFFF
##3362181.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#66590C
Deuteranopia (green-blind)
#5F551F
Tritanopia (blue-blind)
#315E53
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #336218;
/* rgb */ color: rgb(51, 98, 24);
/* oklch */ color: oklch(44.6% 0.116 136.4);
Tailwind
colors: {
  custom: {
    50: '#6f8f5a',
    500: '#336218',
    950: '#000000',
  },
}
SCSS
$custom: #336218;
$custom-light: #6f8f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#336218",
  "rgb": {
    "r": 51,
    "g": 98,
    "b": 24
  },
  "hsl": {
    "h": 98.108,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.44625,
    "c": 0.11592,
    "h": 136.4
  },
  "luminance": 0.09505
}

Semantic roles & 50–950 ramp

primary
#336218
secondary
#773E98
accent
#44E4A9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #336218

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

Preview Lab → · Contrast checker → · Palette generator →

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