#335C12#335C12

#335C12 is a dark, moderate yellow-green. Relative luminance 0.084; OKLCH L 42.9% C 0.112 H 134.5°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#335C12
RGBrgb(51, 92, 18)
HSLhsl(93, 67%, 22%)
HSVhsv(93, 80%, 36%)
CMYKcmyk(44.6%, 0%, 80.4%, 63.9%)
CIE-LABlab(34.81, -27.95, 35.59)
CIE-LCHlch(34.81, 45.25, 128.14°)
OKLaboklab(42.86% -0.0783 0.0796)
OKLCHoklch(42.86% 0.112 134.5)
XYZxyz(5.3015, 8.4015, 1.9145)
Luminance0.0840 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C12 #3B125C
analogous
#585C12 #335C12 #125C16
triadic
#335C12 #12335C #5C1233
tetradic
#335C12 #12585C #3B125C #5C1612
square
#335C12 #12585C #3B125C #5C1612
split-complementary
#335C12 #16125C #5C1258
monochromatic
#0E1A05 #172908 #335C12 #4F8F1C #6CC226

Accessibility & contrast

On white

7.83
#335C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#335C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335C12
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C12#FFFFFF#000000##FFFFFF
##335C121.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605404
Deuteranopia (green-blind)
#5A511A
Tritanopia (blue-blind)
#32584E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335c12;
/* rgb */ color: rgb(51, 92, 18);
/* oklch */ color: oklch(42.9% 0.112 134.5);
Tailwind
colors: {
  custom: {
    50: '#6f8a56',
    500: '#335c12',
    950: '#000000',
  },
}
SCSS
$custom: #335c12;
$custom-light: #6f8a56;
$custom-dark: #000000;
JSON
{
  "hex": "#335c12",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 93.243,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42863,
    "c": 0.11161,
    "h": 134.5
  },
  "luminance": 0.08402
}

Semantic roles & 50–950 ramp

primary
#335C12
secondary
#6A3594
accent
#3EEA9D
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #335C12

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

Preview Lab → · Contrast checker → · Palette generator →

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