#336815#336815

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

Color values

HEX#336815
RGBrgb(51, 104, 21)
HSLhsl(98, 66%, 25%)
HSVhsv(98, 80%, 41%)
CMYKcmyk(51%, 0%, 79.8%, 59.2%)
CIE-LABlab(39.00, -33.11, 38.54)
CIE-LCHlch(39.00, 50.81, 130.67°)
OKLaboklab(46.31% -0.092 0.0862)
OKLCHoklch(46.31% 0.126 136.8)
XYZxyz(6.4507, 10.6581, 2.4266)
Luminance0.1066 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336815 #4A1568
analogous
#5D6815 #336815 #156820
triadic
#336815 #153368 #681533
tetradic
#336815 #155D68 #4A1568 #682015
square
#336815 #155D68 #4A1568 #682015
split-complementary
#336815 #201568 #68155D
monochromatic
#0C1905 #1A350B #336815 #4C9B1F #65CE2A

Accessibility & contrast

On white

6.71
#336815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #336815
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336815#FFFFFF#000000##FFFFFF
##3368151.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #336815;
/* rgb */ color: rgb(51, 104, 21);
/* oklch */ color: oklch(46.3% 0.126 136.8);
Tailwind
colors: {
  custom: {
    50: '#719359',
    500: '#336815',
    950: '#000000',
  },
}
SCSS
$custom: #336815;
$custom-light: #719359;
$custom-dark: #000000;
JSON
{
  "hex": "#336815",
  "rgb": {
    "r": 51,
    "g": 104,
    "b": 21
  },
  "hsl": {
    "h": 98.313,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.46311,
    "c": 0.12607,
    "h": 136.8
  },
  "luminance": 0.10659
}

Semantic roles & 50–950 ramp

primary
#336815
secondary
#7A3A9F
accent
#3EE9AC
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336815

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

Preview Lab → · Contrast checker → · Palette generator →

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