#336217#336217

#336217 is a dark, moderate yellow-green. Relative luminance 0.095; OKLCH L 44.6% C 0.117 H 136.3°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#336217
RGBrgb(51, 98, 23)
HSLhsl(98, 62%, 24%)
HSVhsv(98, 77%, 38%)
CMYKcmyk(48%, 0%, 76.5%, 61.6%)
CIE-LABlab(36.93, -30.32, 35.70)
CIE-LCHlch(36.93, 46.84, 130.34°)
OKLaboklab(44.62% -0.0843 0.0806)
OKLCHoklch(44.62% 0.117 136.3)
XYZxyz(5.8874, 9.5007, 2.3340)
Luminance0.0950 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336217 #461762
analogous
#586217 #336217 #176220
triadic
#336217 #173362 #621733
tetradic
#336217 #175862 #461762 #622017
square
#336217 #175862 #461762 #622017
split-complementary
#336217 #201762 #621758
monochromatic
#0D1906 #19300B #336217 #4D9423 #67C52E

Accessibility & contrast

On white

7.24
#336217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#336217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #336217
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336217#FFFFFF#000000##FFFFFF
##3362171.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#66590A
Deuteranopia (green-blind)
#5F551E
Tritanopia (blue-blind)
#315E53
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #336217;
/* rgb */ color: rgb(51, 98, 23);
/* oklch */ color: oklch(44.6% 0.117 136.3);
Tailwind
colors: {
  custom: {
    50: '#708f59',
    500: '#336217',
    950: '#000000',
  },
}
SCSS
$custom: #336217;
$custom-light: #708f59;
$custom-dark: #000000;
JSON
{
  "hex": "#336217",
  "rgb": {
    "r": 51,
    "g": 98,
    "b": 23
  },
  "hsl": {
    "h": 97.6,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.44617,
    "c": 0.11663,
    "h": 136.3
  },
  "luminance": 0.09501
}

Semantic roles & 50–950 ramp

primary
#336217
secondary
#763C99
accent
#43E5A8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #336217

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

Preview Lab → · Contrast checker → · Palette generator →

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