#336818#336818

#336818 is a mid, vivid yellow-green. Relative luminance 0.107; OKLCH L 46.3% C 0.124 H 137.2°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#336818
RGBrgb(51, 104, 24)
HSLhsl(100, 63%, 25%)
HSVhsv(100, 77%, 41%)
CMYKcmyk(51%, 0%, 76.9%, 59.2%)
CIE-LABlab(39.02, -32.89, 37.40)
CIE-LCHlch(39.02, 49.80, 131.33°)
OKLaboklab(46.33% -0.0912 0.0843)
OKLCHoklch(46.33% 0.124 137.2)
XYZxyz(6.4802, 10.6699, 2.5820)
Luminance0.1067 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336818 #4D1868
analogous
#5B6818 #336818 #186825
triadic
#336818 #183368 #681833
tetradic
#336818 #185B68 #4D1868 #682518
square
#336818 #185B68 #4D1868 #682518
split-complementary
#336818 #251868 #68185B
monochromatic
#0C1906 #1B360D #336818 #4B9A23 #64CB2F

Accessibility & contrast

On white

6.70
#336818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#336818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336818
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336818#FFFFFF#000000##FFFFFF
##3368181.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F09
Deuteranopia (green-blind)
#655A20
Tritanopia (blue-blind)
#306458
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #336818;
/* rgb */ color: rgb(51, 104, 24);
/* oklch */ color: oklch(46.3% 0.124 137.2);
Tailwind
colors: {
  custom: {
    50: '#70935b',
    500: '#336818',
    950: '#000000',
  },
}
SCSS
$custom: #336818;
$custom-light: #70935b;
$custom-dark: #000000;
JSON
{
  "hex": "#336818",
  "rgb": {
    "r": 51,
    "g": 104,
    "b": 24
  },
  "hsl": {
    "h": 99.75,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.46334,
    "c": 0.12417,
    "h": 137.2
  },
  "luminance": 0.1067
}

Semantic roles & 50–950 ramp

primary
#336818
secondary
#7E3E9E
accent
#42E6AE
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336818

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

Preview Lab → · Contrast checker → · Palette generator →

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