#336212#336212

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

Color values

HEX#336212
RGBrgb(51, 98, 18)
HSLhsl(95, 69%, 23%)
HSVhsv(95, 82%, 38%)
CMYKcmyk(48%, 0%, 81.6%, 61.6%)
CIE-LABlab(36.90, -30.68, 37.61)
CIE-LCHlch(36.90, 48.54, 129.21°)
OKLaboklab(44.58% -0.0856 0.0838)
OKLCHoklch(44.58% 0.12 135.6)
XYZxyz(5.8420, 9.4825, 2.0946)
Luminance0.0948 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336212 #411262
analogous
#5B6212 #336212 #126219
triadic
#336212 #123362 #621233
tetradic
#336212 #125B62 #411262 #621912
square
#336212 #125B62 #411262 #621912
split-complementary
#336212 #191262 #62125B
monochromatic
#0D1A05 #182E09 #336212 #4E961B #69C925

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##336212#FFFFFF#000000##FFFFFF
##3362121.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)
#665901
Deuteranopia (green-blind)
#60551B
Tritanopia (blue-blind)
#315E53
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #336212;
/* rgb */ color: rgb(51, 98, 18);
/* oklch */ color: oklch(44.6% 0.120 135.6);
Tailwind
colors: {
  custom: {
    50: '#708f57',
    500: '#336212',
    950: '#000000',
  },
}
SCSS
$custom: #336212;
$custom-light: #708f57;
$custom-dark: #000000;
JSON
{
  "hex": "#336212",
  "rgb": {
    "r": 51,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 95.25,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.44578,
    "c": 0.11982,
    "h": 135.6
  },
  "luminance": 0.09483
}

Semantic roles & 50–950 ramp

primary
#336212
secondary
#71369A
accent
#3CECA3
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #336212

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

Preview Lab → · Contrast checker → · Palette generator →

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