#336B15#336B15

#336B15 is a mid, vivid yellow-green. Relative luminance 0.113; OKLCH L 47.2% C 0.130 H 137.2°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#336B15
RGBrgb(51, 107, 21)
HSLhsl(99, 67%, 25%)
HSVhsv(99, 80%, 42%)
CMYKcmyk(52.3%, 0%, 80.4%, 58%)
CIE-LABlab(40.04, -34.40, 39.55)
CIE-LCHlch(40.04, 52.41, 131.01°)
OKLaboklab(47.16% -0.0954 0.0883)
OKLCHoklch(47.16% 0.13 137.2)
XYZxyz(6.7581, 11.2729, 2.5291)
Luminance0.1127 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336B15 #4D156B
analogous
#5E6B15 #336B15 #156B22
triadic
#336B15 #15336B #6B1533
tetradic
#336B15 #155E6B #4D156B #6B2215
square
#336B15 #155E6B #4D156B #6B2215
split-complementary
#336B15 #22156B #6B155E
monochromatic
#0C1A05 #1B380B #336B15 #4B9E1F #64D129

Accessibility & contrast

On white

6.45
#336B15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#336B15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336B15
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336B15#FFFFFF#000000##FFFFFF
##336B151.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6102
Deuteranopia (green-blind)
#675D1E
Tritanopia (blue-blind)
#2F675B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #336b15;
/* rgb */ color: rgb(51, 107, 21);
/* oklch */ color: oklch(47.2% 0.130 137.2);
Tailwind
colors: {
  custom: {
    50: '#71965a',
    500: '#336b15',
    950: '#000000',
  },
}
SCSS
$custom: #336b15;
$custom-light: #71965a;
$custom-dark: #000000;
JSON
{
  "hex": "#336b15",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 21
  },
  "hsl": {
    "h": 99.07,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.47164,
    "c": 0.13003,
    "h": 137.2
  },
  "luminance": 0.11273
}

Semantic roles & 50–950 ramp

primary
#336B15
secondary
#7E3AA2
accent
#3EEAAE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336B15

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

Preview Lab → · Contrast checker → · Palette generator →

#336B15 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva