#336618#336618

#336618 is a mid, vivid yellow-green. Relative luminance 0.103; OKLCH L 45.8% C 0.121 H 137.0°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#336618
RGBrgb(51, 102, 24)
HSLhsl(99, 62%, 25%)
HSVhsv(99, 76%, 40%)
CMYKcmyk(50%, 0%, 76.5%, 60%)
CIE-LABlab(38.33, -32.02, 36.70)
CIE-LCHlch(38.33, 48.70, 131.10°)
OKLaboklab(45.77% -0.0888 0.0829)
OKLCHoklch(45.77% 0.121 137)
XYZxyz(6.2813, 10.2721, 2.5157)
Luminance0.1027 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336618 #4B1866
analogous
#5A6618 #336618 #186624
triadic
#336618 #183366 #661833
tetradic
#336618 #185A66 #4B1866 #662418
square
#336618 #185A66 #4B1866 #662418
split-complementary
#336618 #241866 #66185A
monochromatic
#0C1906 #1A340C #336618 #4C9824 #65C92F

Accessibility & contrast

On white

6.88
#336618 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#336618 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336618
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336618#FFFFFF#000000##FFFFFF
##3366181.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D0A
Deuteranopia (green-blind)
#635920
Tritanopia (blue-blind)
#306257
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #336618;
/* rgb */ color: rgb(51, 102, 24);
/* oklch */ color: oklch(45.8% 0.121 137.0);
Tailwind
colors: {
  custom: {
    50: '#70925a',
    500: '#336618',
    950: '#000000',
  },
}
SCSS
$custom: #336618;
$custom-light: #70925a;
$custom-dark: #000000;
JSON
{
  "hex": "#336618",
  "rgb": {
    "r": 51,
    "g": 102,
    "b": 24
  },
  "hsl": {
    "h": 99.231,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.45765,
    "c": 0.12145,
    "h": 137
  },
  "luminance": 0.10272
}

Semantic roles & 50–950 ramp

primary
#336618
secondary
#7B3E9C
accent
#43E5AD
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336618

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

Preview Lab → · Contrast checker → · Palette generator →

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