#335C18#335C18

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

Color values

HEX#335C18
RGBrgb(51, 92, 24)
HSLhsl(96, 59%, 23%)
HSVhsv(96, 74%, 36%)
CMYKcmyk(44.6%, 0%, 73.9%, 63.9%)
CIE-LABlab(34.85, -27.48, 33.14)
CIE-LCHlch(34.85, 43.05, 129.67°)
OKLaboklab(42.91% -0.0765 0.0754)
OKLCHoklch(42.91% 0.107 135.4)
XYZxyz(5.3571, 8.4238, 2.2076)
Luminance0.0842 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C18 #41185C
analogous
#555C18 #335C18 #185C1F
triadic
#335C18 #18335C #5C1833
tetradic
#335C18 #18555C #41185C #5C1F18
square
#335C18 #18555C #41185C #5C1F18
split-complementary
#335C18 #1F185C #5C1855
monochromatic
#0D1806 #182B0B #335C18 #4E8D25 #69BD31

Accessibility & contrast

On white

7.82
#335C18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335C18
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C18#FFFFFF#000000##FFFFFF
##335C181.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335c18;
/* rgb */ color: rgb(51, 92, 24);
/* oklch */ color: oklch(42.9% 0.107 135.4);
Tailwind
colors: {
  custom: {
    50: '#6f8a59',
    500: '#335c18',
    950: '#000000',
  },
}
SCSS
$custom: #335c18;
$custom-light: #6f8a59;
$custom-dark: #000000;
JSON
{
  "hex": "#335c18",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 24
  },
  "hsl": {
    "h": 96.176,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.42914,
    "c": 0.10741,
    "h": 135.4
  },
  "luminance": 0.08424
}

Semantic roles & 50–950 ramp

primary
#335C18
secondary
#713D93
accent
#46E2A4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #335C18

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

Preview Lab → · Contrast checker → · Palette generator →

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