#336312#336312

#336312 is a dark, vivid yellow-green. Relative luminance 0.097; OKLCH L 44.9% C 0.121 H 135.8°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#336312
RGBrgb(51, 99, 18)
HSLhsl(96, 69%, 23%)
HSVhsv(96, 82%, 39%)
CMYKcmyk(48.5%, 0%, 81.8%, 61.2%)
CIE-LABlab(37.24, -31.13, 37.95)
CIE-LCHlch(37.24, 49.08, 129.36°)
OKLaboklab(44.86% -0.0868 0.0845)
OKLCHoklch(44.86% 0.121 135.8)
XYZxyz(5.9361, 9.6708, 2.1260)
Luminance0.0967 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336312 #421263
analogous
#5B6312 #336312 #12631A
triadic
#336312 #123363 #631233
tetradic
#336312 #125B63 #421263 #631A12
square
#336312 #125B63 #421263 #631A12
split-complementary
#336312 #1A1263 #63125B
monochromatic
#0D1A05 #182F09 #336312 #4E971B #68CB25

Accessibility & contrast

On white

7.16
#336312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#336312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #336312
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336312#FFFFFF#000000##FFFFFF
##3363121.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675A01
Deuteranopia (green-blind)
#60561B
Tritanopia (blue-blind)
#315F54
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #336312;
/* rgb */ color: rgb(51, 99, 18);
/* oklch */ color: oklch(44.9% 0.121 135.8);
Tailwind
colors: {
  custom: {
    50: '#709057',
    500: '#336312',
    950: '#000000',
  },
}
SCSS
$custom: #336312;
$custom-light: #709057;
$custom-dark: #000000;
JSON
{
  "hex": "#336312",
  "rgb": {
    "r": 51,
    "g": 99,
    "b": 18
  },
  "hsl": {
    "h": 95.556,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.44864,
    "c": 0.12117,
    "h": 135.8
  },
  "luminance": 0.09671
}

Semantic roles & 50–950 ramp

primary
#336312
secondary
#72369B
accent
#3CECA4
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #336312

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

Preview Lab → · Contrast checker → · Palette generator →

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