#336418#336418

#336418 is a mid, moderate yellow-green. Relative luminance 0.099; OKLCH L 45.2% C 0.119 H 136.7°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#336418
RGBrgb(51, 100, 24)
HSLhsl(99, 61%, 24%)
HSVhsv(99, 76%, 39%)
CMYKcmyk(49%, 0%, 76%, 60.8%)
CIE-LABlab(37.63, -31.13, 36.00)
CIE-LCHlch(37.63, 47.59, 130.85°)
OKLaboklab(45.2% -0.0864 0.0814)
OKLCHoklch(45.2% 0.119 136.7)
XYZxyz(6.0871, 9.8837, 2.4510)
Luminance0.0988 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336418 #491864
analogous
#596418 #336418 #186423
triadic
#336418 #183364 #641833
tetradic
#336418 #185964 #491864 #642318
square
#336418 #185964 #491864 #642318
split-complementary
#336418 #231864 #641859
monochromatic
#0D1906 #1A330C #336418 #4C9524 #65C730

Accessibility & contrast

On white

7.05
#336418 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#336418 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #336418
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336418#FFFFFF#000000##FFFFFF
##3364181.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B0B
Deuteranopia (green-blind)
#61571F
Tritanopia (blue-blind)
#316055
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #336418;
/* rgb */ color: rgb(51, 100, 24);
/* oklch */ color: oklch(45.2% 0.119 136.7);
Tailwind
colors: {
  custom: {
    50: '#70905a',
    500: '#336418',
    950: '#000000',
  },
}
SCSS
$custom: #336418;
$custom-light: #70905a;
$custom-dark: #000000;
JSON
{
  "hex": "#336418",
  "rgb": {
    "r": 51,
    "g": 100,
    "b": 24
  },
  "hsl": {
    "h": 98.684,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.45195,
    "c": 0.11871,
    "h": 136.7
  },
  "luminance": 0.09884
}

Semantic roles & 50–950 ramp

primary
#336418
secondary
#793E9A
accent
#43E4AB
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #336418

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

Preview Lab → · Contrast checker → · Palette generator →

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