#336918#336918

#336918 is a mid, vivid green. Relative luminance 0.109; OKLCH L 46.6% C 0.126 H 137.4°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#336918
RGBrgb(51, 105, 24)
HSLhsl(100, 63%, 25%)
HSVhsv(100, 77%, 41%)
CMYKcmyk(51.4%, 0%, 77.1%, 58.8%)
CIE-LABlab(39.36, -33.32, 37.75)
CIE-LCHlch(39.36, 50.35, 131.44°)
OKLaboklab(46.62% -0.0923 0.085)
OKLCHoklch(46.62% 0.126 137.4)
XYZxyz(6.5815, 10.8724, 2.6158)
Luminance0.1087 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336918 #4E1869
analogous
#5B6918 #336918 #186925
triadic
#336918 #183369 #691833
tetradic
#336918 #185B69 #4E1869 #692518
square
#336918 #185B69 #4E1869 #692518
split-complementary
#336918 #251869 #69185B
monochromatic
#0C1906 #1B370D #336918 #4B9B23 #63CD2F

Accessibility & contrast

On white

6.62
#336918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#336918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336918
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336918#FFFFFF#000000##FFFFFF
##3369181.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6009
Deuteranopia (green-blind)
#665B20
Tritanopia (blue-blind)
#306559
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #336918;
/* rgb */ color: rgb(51, 105, 24);
/* oklch */ color: oklch(46.6% 0.126 137.4);
Tailwind
colors: {
  custom: {
    50: '#71945b',
    500: '#336918',
    950: '#000000',
  },
}
SCSS
$custom: #336918;
$custom-light: #71945b;
$custom-dark: #000000;
JSON
{
  "hex": "#336918",
  "rgb": {
    "r": 51,
    "g": 105,
    "b": 24
  },
  "hsl": {
    "h": 100,
    "s": 62.791,
    "l": 25.294
  },
  "oklch": {
    "l": 0.46618,
    "c": 0.12553,
    "h": 137.4
  },
  "luminance": 0.10873
}

Semantic roles & 50–950 ramp

primary
#336918
secondary
#7F3E9F
accent
#42E6AF
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336918

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

Preview Lab → · Contrast checker → · Palette generator →

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