#335E17#335E17

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

Color values

HEX#335E17
RGBrgb(51, 94, 23)
HSLhsl(96, 61%, 23%)
HSVhsv(96, 76%, 37%)
CMYKcmyk(45.7%, 0%, 75.5%, 63.1%)
CIE-LABlab(35.54, -28.49, 34.29)
CIE-LCHlch(35.54, 44.58, 129.73°)
OKLaboklab(43.48% -0.0793 0.0776)
OKLCHoklch(43.48% 0.111 135.6)
XYZxyz(5.5225, 8.7708, 2.2124)
Luminance0.0877 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E17 #42175E
analogous
#565E17 #335E17 #175E1E
triadic
#335E17 #17335E #5E1733
tetradic
#335E17 #17565E #42175E #5E1E17
square
#335E17 #17565E #42175E #5E1E17
split-complementary
#335E17 #1E175E #5E1756
monochromatic
#0D1906 #182D0B #335E17 #4E8F23 #68C02F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335E17#FFFFFF#000000##FFFFFF
##335E171.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)
#62560B
Deuteranopia (green-blind)
#5C521E
Tritanopia (blue-blind)
#325A50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335e17;
/* rgb */ color: rgb(51, 94, 23);
/* oklch */ color: oklch(43.5% 0.111 135.6);
Tailwind
colors: {
  custom: {
    50: '#6f8c59',
    500: '#335e17',
    950: '#000000',
  },
}
SCSS
$custom: #335e17;
$custom-light: #6f8c59;
$custom-dark: #000000;
JSON
{
  "hex": "#335e17",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 23
  },
  "hsl": {
    "h": 96.338,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.43475,
    "c": 0.11102,
    "h": 135.6
  },
  "luminance": 0.08771
}

Semantic roles & 50–950 ramp

primary
#335E17
secondary
#723C95
accent
#44E4A5
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #335E17

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

Preview Lab → · Contrast checker → · Palette generator →

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