#336915#336915

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

Color values

HEX#336915
RGBrgb(51, 105, 21)
HSLhsl(99, 67%, 25%)
HSVhsv(99, 80%, 41%)
CMYKcmyk(51.4%, 0%, 80%, 58.8%)
CIE-LABlab(39.34, -33.54, 38.88)
CIE-LCHlch(39.34, 51.35, 130.78°)
OKLaboklab(46.6% -0.0931 0.0869)
OKLCHoklch(46.6% 0.127 137)
XYZxyz(6.5520, 10.8606, 2.4604)
Luminance0.1086 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336915 #4B1569
analogous
#5D6915 #336915 #156921
triadic
#336915 #153369 #691533
tetradic
#336915 #155D69 #4B1569 #692115
square
#336915 #155D69 #4B1569 #692115
split-complementary
#336915 #211569 #69155D
monochromatic
#0C1A05 #1A360B #336915 #4C9C1F #65CF29

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##336915#FFFFFF#000000##FFFFFF
##3369151.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)
#6D5F03
Deuteranopia (green-blind)
#665B1E
Tritanopia (blue-blind)
#306559
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #336915;
/* rgb */ color: rgb(51, 105, 21);
/* oklch */ color: oklch(46.6% 0.127 137.0);
Tailwind
colors: {
  custom: {
    50: '#719459',
    500: '#336915',
    950: '#000000',
  },
}
SCSS
$custom: #336915;
$custom-light: #719459;
$custom-dark: #000000;
JSON
{
  "hex": "#336915",
  "rgb": {
    "r": 51,
    "g": 105,
    "b": 21
  },
  "hsl": {
    "h": 98.571,
    "s": 66.667,
    "l": 24.706
  },
  "oklch": {
    "l": 0.46595,
    "c": 0.1274,
    "h": 137
  },
  "luminance": 0.10861
}

Semantic roles & 50–950 ramp

primary
#336915
secondary
#7B3AA0
accent
#3EEAAC
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336915

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

Preview Lab → · Contrast checker → · Palette generator →

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