#335E12#335E12

#335E12 is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.4% C 0.114 H 134.9°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#335E12
RGBrgb(51, 94, 18)
HSLhsl(94, 68%, 22%)
HSVhsv(94, 81%, 37%)
CMYKcmyk(45.7%, 0%, 80.9%, 63.1%)
CIE-LABlab(35.50, -28.87, 36.27)
CIE-LCHlch(35.50, 46.36, 128.52°)
OKLaboklab(43.44% -0.0808 0.081)
OKLCHoklch(43.44% 0.114 134.9)
XYZxyz(5.4770, 8.7526, 1.9730)
Luminance0.0875 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E12 #3D125E
analogous
#595E12 #335E12 #125E17
triadic
#335E12 #12335E #5E1233
tetradic
#335E12 #12595E #3D125E #5E1712
square
#335E12 #12595E #3D125E #5E1712
split-complementary
#335E12 #17125E #5E1259
monochromatic
#0E1A05 #172B08 #335E12 #4F911C #6BC526

Accessibility & contrast

On white

7.63
#335E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#335E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335E12
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E12#FFFFFF#000000##FFFFFF
##335E121.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625603
Deuteranopia (green-blind)
#5C521A
Tritanopia (blue-blind)
#325A50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335e12;
/* rgb */ color: rgb(51, 94, 18);
/* oklch */ color: oklch(43.4% 0.114 134.9);
Tailwind
colors: {
  custom: {
    50: '#6f8c56',
    500: '#335e12',
    950: '#000000',
  },
}
SCSS
$custom: #335e12;
$custom-light: #6f8c56;
$custom-dark: #000000;
JSON
{
  "hex": "#335e12",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 93.947,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43435,
    "c": 0.11437,
    "h": 134.9
  },
  "luminance": 0.08753
}

Semantic roles & 50–950 ramp

primary
#335E12
secondary
#6C3596
accent
#3DEB9F
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #335E12

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

Preview Lab → · Contrast checker → · Palette generator →

#335E12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva