#336214#336214

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

Color values

HEX#336214
RGBrgb(51, 98, 20)
HSLhsl(96, 66%, 23%)
HSVhsv(96, 80%, 38%)
CMYKcmyk(48%, 0%, 79.6%, 61.6%)
CIE-LABlab(36.91, -30.55, 36.88)
CIE-LCHlch(36.91, 47.89, 129.63°)
OKLaboklab(44.59% -0.0851 0.0826)
OKLCHoklch(44.59% 0.119 135.9)
XYZxyz(5.8590, 9.4893, 2.1846)
Luminance0.0949 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336214 #431462
analogous
#5A6214 #336214 #14621C
triadic
#336214 #143362 #621433
tetradic
#336214 #145A62 #431462 #621C14
square
#336214 #145A62 #431462 #621C14
split-complementary
#336214 #1C1462 #62145A
monochromatic
#0D1905 #192F0A #336214 #4D951E #68C829

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##336214#FFFFFF#000000##FFFFFF
##3362141.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)
#665904
Deuteranopia (green-blind)
#5F551C
Tritanopia (blue-blind)
#315E53
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #336214;
/* rgb */ color: rgb(51, 98, 20);
/* oklch */ color: oklch(44.6% 0.119 135.9);
Tailwind
colors: {
  custom: {
    50: '#708f58',
    500: '#336214',
    950: '#000000',
  },
}
SCSS
$custom: #336214;
$custom-light: #708f58;
$custom-dark: #000000;
JSON
{
  "hex": "#336214",
  "rgb": {
    "r": 51,
    "g": 98,
    "b": 20
  },
  "hsl": {
    "h": 96.154,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.44593,
    "c": 0.11861,
    "h": 135.9
  },
  "luminance": 0.0949
}

Semantic roles & 50–950 ramp

primary
#336214
secondary
#733899
accent
#3FE9A5
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #336214

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

Preview Lab → · Contrast checker → · Palette generator →

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