#335B18#335B18

#335B18 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.6% C 0.106 H 135.2°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#335B18
RGBrgb(51, 91, 24)
HSLhsl(96, 58%, 23%)
HSVhsv(96, 74%, 36%)
CMYKcmyk(44%, 0%, 73.6%, 64.3%)
CIE-LABlab(34.50, -27.00, 32.77)
CIE-LCHlch(34.50, 42.47, 129.49°)
OKLaboklab(42.63% -0.0752 0.0746)
OKLCHoklch(42.63% 0.106 135.2)
XYZxyz(5.2711, 8.2516, 2.1790)
Luminance0.0825 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B18 #40185B
analogous
#545B18 #335B18 #185B1F
triadic
#335B18 #18335B #5B1833
tetradic
#335B18 #18545B #40185B #5B1F18
square
#335B18 #18545B #40185B #5B1F18
split-complementary
#335B18 #1F185B #5B1854
monochromatic
#0E1806 #182B0B #335B18 #4E8B25 #69BC32

Accessibility & contrast

On white

7.92
#335B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#335B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B18
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B18#FFFFFF#000000##FFFFFF
##335B181.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F530E
Deuteranopia (green-blind)
#59501E
Tritanopia (blue-blind)
#32574E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335b18;
/* rgb */ color: rgb(51, 91, 24);
/* oklch */ color: oklch(42.6% 0.106 135.2);
Tailwind
colors: {
  custom: {
    50: '#6e8a59',
    500: '#335b18',
    950: '#000000',
  },
}
SCSS
$custom: #335b18;
$custom-light: #6e8a59;
$custom-dark: #000000;
JSON
{
  "hex": "#335b18",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 24
  },
  "hsl": {
    "h": 95.821,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42628,
    "c": 0.10597,
    "h": 135.2
  },
  "luminance": 0.08252
}

Semantic roles & 50–950 ramp

primary
#335B18
secondary
#703D92
accent
#46E1A3
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #335B18

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

Preview Lab → · Contrast checker → · Palette generator →

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