#336817#336817

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

Color values

HEX#336817
RGBrgb(51, 104, 23)
HSLhsl(99, 64%, 25%)
HSVhsv(99, 78%, 41%)
CMYKcmyk(51%, 0%, 77.9%, 59.2%)
CIE-LABlab(39.01, -32.97, 37.79)
CIE-LCHlch(39.01, 50.15, 131.10°)
OKLaboklab(46.33% -0.0914 0.085)
OKLCHoklch(46.33% 0.125 137.1)
XYZxyz(6.4700, 10.6659, 2.5282)
Luminance0.1067 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336817 #4C1768
analogous
#5C6817 #336817 #176823
triadic
#336817 #173368 #681733
tetradic
#336817 #175C68 #4C1768 #682317
square
#336817 #175C68 #4C1768 #682317
split-complementary
#336817 #231768 #68175C
monochromatic
#0C1906 #1A360C #336817 #4C9A22 #64CC2D

Accessibility & contrast

On white

6.70
#336817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #336817
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336817#FFFFFF#000000##FFFFFF
##3368171.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #336817;
/* rgb */ color: rgb(51, 104, 23);
/* oklch */ color: oklch(46.3% 0.125 137.1);
Tailwind
colors: {
  custom: {
    50: '#70935a',
    500: '#336817',
    950: '#000000',
  },
}
SCSS
$custom: #336817;
$custom-light: #70935a;
$custom-dark: #000000;
JSON
{
  "hex": "#336817",
  "rgb": {
    "r": 51,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 99.259,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.46326,
    "c": 0.12482,
    "h": 137.1
  },
  "luminance": 0.10666
}

Semantic roles & 50–950 ramp

primary
#336817
secondary
#7C3D9E
accent
#41E7AD
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336817

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

Preview Lab → · Contrast checker → · Palette generator →

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