#336018#336018

#336018 is a dark, moderate yellow-green. Relative luminance 0.091; OKLCH L 44.1% C 0.113 H 136.1°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#336018
RGBrgb(51, 96, 24)
HSLhsl(98, 60%, 24%)
HSVhsv(98, 75%, 38%)
CMYKcmyk(46.9%, 0%, 75%, 62.4%)
CIE-LABlab(36.24, -29.33, 34.58)
CIE-LCHlch(36.24, 45.34, 130.30°)
OKLaboklab(44.06% -0.0815 0.0784)
OKLCHoklch(44.06% 0.113 136.1)
XYZxyz(5.7128, 9.1352, 2.3262)
Luminance0.0914 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336018 #451860
analogous
#576018 #336018 #186021
triadic
#336018 #183360 #601833
tetradic
#336018 #185760 #451860 #602118
square
#336018 #185760 #451860 #602118
split-complementary
#336018 #211860 #601857
monochromatic
#0D1806 #192F0C #336018 #4D9124 #67C230

Accessibility & contrast

On white

7.43
#336018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#336018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #336018
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336018#FFFFFF#000000##FFFFFF
##3360181.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#64580D
Deuteranopia (green-blind)
#5E541F
Tritanopia (blue-blind)
#315C52
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #336018;
/* rgb */ color: rgb(51, 96, 24);
/* oklch */ color: oklch(44.1% 0.113 136.1);
Tailwind
colors: {
  custom: {
    50: '#6f8d5a',
    500: '#336018',
    950: '#000000',
  },
}
SCSS
$custom: #336018;
$custom-light: #6f8d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#336018",
  "rgb": {
    "r": 51,
    "g": 96,
    "b": 24
  },
  "hsl": {
    "h": 97.5,
    "s": 60,
    "l": 23.529
  },
  "oklch": {
    "l": 0.44055,
    "c": 0.11312,
    "h": 136.1
  },
  "luminance": 0.09135
}

Semantic roles & 50–950 ramp

primary
#336018
secondary
#753D96
accent
#45E3A8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #336018

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

Preview Lab → · Contrast checker → · Palette generator →

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