#336814#336814

#336814 is a mid, vivid yellow-green. Relative luminance 0.107; OKLCH L 46.3% C 0.127 H 136.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#336814
RGBrgb(51, 104, 20)
HSLhsl(98, 68%, 24%)
HSVhsv(98, 81%, 41%)
CMYKcmyk(51%, 0%, 80.8%, 59.2%)
CIE-LABlab(38.99, -33.18, 38.90)
CIE-LCHlch(38.99, 51.13, 130.46°)
OKLaboklab(46.3% -0.0922 0.0868)
OKLCHoklch(46.3% 0.127 136.7)
XYZxyz(6.4416, 10.6545, 2.3788)
Luminance0.1066 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336814 #491468
analogous
#5D6814 #336814 #14681F
triadic
#336814 #143368 #681433
tetradic
#336814 #145D68 #491468 #681F14
square
#336814 #145D68 #491468 #681F14
split-complementary
#336814 #1F1468 #68145D
monochromatic
#0D1A05 #1A350A #336814 #4C9B1E #65CF28

Accessibility & contrast

On white

6.71
#336814 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#336814 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336814
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336814#FFFFFF#000000##FFFFFF
##3368141.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F02
Deuteranopia (green-blind)
#655A1D
Tritanopia (blue-blind)
#306458
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #336814;
/* rgb */ color: rgb(51, 104, 20);
/* oklch */ color: oklch(46.3% 0.127 136.7);
Tailwind
colors: {
  custom: {
    50: '#719359',
    500: '#336814',
    950: '#000000',
  },
}
SCSS
$custom: #336814;
$custom-light: #719359;
$custom-dark: #000000;
JSON
{
  "hex": "#336814",
  "rgb": {
    "r": 51,
    "g": 104,
    "b": 20
  },
  "hsl": {
    "h": 97.857,
    "s": 67.742,
    "l": 24.314
  },
  "oklch": {
    "l": 0.46304,
    "c": 0.12667,
    "h": 136.7
  },
  "luminance": 0.10655
}

Semantic roles & 50–950 ramp

primary
#336814
secondary
#79399F
accent
#3DEBAB
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #336814

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

Preview Lab → · Contrast checker → · Palette generator →

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