#335E18#335E18

#335E18 is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.5% C 0.110 H 135.8°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#335E18
RGBrgb(51, 94, 24)
HSLhsl(97, 59%, 23%)
HSVhsv(97, 74%, 37%)
CMYKcmyk(45.7%, 0%, 74.5%, 63.1%)
CIE-LABlab(35.55, -28.41, 33.86)
CIE-LCHlch(35.55, 44.20, 130.00°)
OKLaboklab(43.49% -0.079 0.0769)
OKLCHoklch(43.49% 0.11 135.8)
XYZxyz(5.5327, 8.7748, 2.2662)
Luminance0.0877 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E18 #43185E
analogous
#565E18 #335E18 #185E20
triadic
#335E18 #18335E #5E1833
tetradic
#335E18 #18565E #43185E #5E2018
square
#335E18 #18565E #43185E #5E2018
split-complementary
#335E18 #20185E #5E1856
monochromatic
#0D1806 #192D0C #335E18 #4D8F24 #68C031

Accessibility & contrast

On white

7.62
#335E18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335E18
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E18#FFFFFF#000000##FFFFFF
##335E181.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62560D
Deuteranopia (green-blind)
#5C521E
Tritanopia (blue-blind)
#325A50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335e18;
/* rgb */ color: rgb(51, 94, 24);
/* oklch */ color: oklch(43.5% 0.110 135.8);
Tailwind
colors: {
  custom: {
    50: '#6f8c59',
    500: '#335e18',
    950: '#000000',
  },
}
SCSS
$custom: #335e18;
$custom-light: #6f8c59;
$custom-dark: #000000;
JSON
{
  "hex": "#335e18",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 24
  },
  "hsl": {
    "h": 96.857,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.43485,
    "c": 0.11028,
    "h": 135.8
  },
  "luminance": 0.08775
}

Semantic roles & 50–950 ramp

primary
#335E18
secondary
#733D94
accent
#45E3A6
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #335E18

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

Preview Lab → · Contrast checker → · Palette generator →

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