#336417#336417

#336417 is a mid, moderate yellow-green. Relative luminance 0.099; OKLCH L 45.2% C 0.119 H 136.6°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#336417
RGBrgb(51, 100, 23)
HSLhsl(98, 63%, 24%)
HSVhsv(98, 77%, 39%)
CMYKcmyk(49%, 0%, 77%, 60.8%)
CIE-LABlab(37.63, -31.21, 36.40)
CIE-LCHlch(37.63, 47.95, 130.61°)
OKLaboklab(45.19% -0.0867 0.0821)
OKLCHoklch(45.19% 0.119 136.6)
XYZxyz(6.0769, 9.8796, 2.3972)
Luminance0.0988 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336417 #481764
analogous
#5A6417 #336417 #176422
triadic
#336417 #173364 #641733
tetradic
#336417 #175A64 #481764 #642217
square
#336417 #175A64 #481764 #642217
split-complementary
#336417 #221764 #64175A
monochromatic
#0D1906 #1A320C #336417 #4C9622 #66C82E

Accessibility & contrast

On white

7.06
#336417 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#336417 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #336417
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336417#FFFFFF#000000##FFFFFF
##3364171.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B09
Deuteranopia (green-blind)
#61571F
Tritanopia (blue-blind)
#316055
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #336417;
/* rgb */ color: rgb(51, 100, 23);
/* oklch */ color: oklch(45.2% 0.119 136.6);
Tailwind
colors: {
  custom: {
    50: '#70905a',
    500: '#336417',
    950: '#000000',
  },
}
SCSS
$custom: #336417;
$custom-light: #70905a;
$custom-dark: #000000;
JSON
{
  "hex": "#336417",
  "rgb": {
    "r": 51,
    "g": 100,
    "b": 23
  },
  "hsl": {
    "h": 98.182,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.45187,
    "c": 0.11938,
    "h": 136.6
  },
  "luminance": 0.0988
}

Semantic roles & 50–950 ramp

primary
#336417
secondary
#783C9A
accent
#42E6AA
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #336417

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

Preview Lab → · Contrast checker → · Palette generator →

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