#336213#336213

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

Color values

HEX#336213
RGBrgb(51, 98, 19)
HSLhsl(96, 68%, 23%)
HSVhsv(96, 81%, 38%)
CMYKcmyk(48%, 0%, 80.6%, 61.6%)
CIE-LABlab(36.90, -30.61, 37.25)
CIE-LCHlch(36.90, 48.22, 129.42°)
OKLaboklab(44.59% -0.0854 0.0832)
OKLCHoklch(44.59% 0.119 135.7)
XYZxyz(5.8503, 9.4858, 2.1386)
Luminance0.0949 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336213 #421362
analogous
#5A6213 #336213 #13621A
triadic
#336213 #133362 #621333
tetradic
#336213 #135A62 #421362 #621A13
square
#336213 #135A62 #421362 #621A13
split-complementary
#336213 #1A1362 #62135A
monochromatic
#0D1A05 #182F09 #336213 #4E951D #68C927

Accessibility & contrast

On white

7.25
#336213 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #336213
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336213#FFFFFF#000000##FFFFFF
##3362131.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665903
Deuteranopia (green-blind)
#60551B
Tritanopia (blue-blind)
#315E53
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #336213;
/* rgb */ color: rgb(51, 98, 19);
/* oklch */ color: oklch(44.6% 0.119 135.7);
Tailwind
colors: {
  custom: {
    50: '#708f57',
    500: '#336213',
    950: '#000000',
  },
}
SCSS
$custom: #336213;
$custom-light: #708f57;
$custom-dark: #000000;
JSON
{
  "hex": "#336213",
  "rgb": {
    "r": 51,
    "g": 98,
    "b": 19
  },
  "hsl": {
    "h": 95.696,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.44585,
    "c": 0.11923,
    "h": 135.7
  },
  "luminance": 0.09486
}

Semantic roles & 50–950 ramp

primary
#336213
secondary
#72379A
accent
#3DEAA4
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #336213

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

Preview Lab → · Contrast checker → · Palette generator →

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