#335C14#335C14

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

Color values

HEX#335C14
RGBrgb(51, 92, 20)
HSLhsl(94, 64%, 22%)
HSVhsv(94, 78%, 36%)
CMYKcmyk(44.6%, 0%, 78.3%, 63.9%)
CIE-LABlab(34.82, -27.80, 34.81)
CIE-LCHlch(34.82, 44.55, 128.62°)
OKLaboklab(42.88% -0.0777 0.0783)
OKLCHoklch(42.88% 0.11 134.8)
XYZxyz(5.3185, 8.4083, 2.0044)
Luminance0.0841 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C14 #3D145C
analogous
#575C14 #335C14 #145C19
triadic
#335C14 #14335C #5C1433
tetradic
#335C14 #14575C #3D145C #5C1914
square
#335C14 #14575C #3D145C #5C1914
split-complementary
#335C14 #19145C #5C1457
monochromatic
#0E1905 #172A09 #335C14 #4F8E1F #6BC12A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335C14#FFFFFF#000000##FFFFFF
##335C141.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)
#605407
Deuteranopia (green-blind)
#5A511B
Tritanopia (blue-blind)
#32584E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335c14;
/* rgb */ color: rgb(51, 92, 20);
/* oklch */ color: oklch(42.9% 0.110 134.8);
Tailwind
colors: {
  custom: {
    50: '#6f8a57',
    500: '#335c14',
    950: '#000000',
  },
}
SCSS
$custom: #335c14;
$custom-light: #6f8a57;
$custom-dark: #000000;
JSON
{
  "hex": "#335c14",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 20
  },
  "hsl": {
    "h": 94.167,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.42878,
    "c": 0.1103,
    "h": 134.8
  },
  "luminance": 0.08409
}

Semantic roles & 50–950 ramp

primary
#335C14
secondary
#6C3894
accent
#41E79F
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #335C14

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

Preview Lab → · Contrast checker → · Palette generator →

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