#335F17#335F17

#335F17 is a dark, moderate yellow-green. Relative luminance 0.089; OKLCH L 43.8% C 0.112 H 135.8°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#335F17
RGBrgb(51, 95, 23)
HSLhsl(97, 61%, 23%)
HSVhsv(97, 76%, 37%)
CMYKcmyk(46.3%, 0%, 75.8%, 62.7%)
CIE-LABlab(35.89, -28.95, 34.64)
CIE-LCHlch(35.89, 45.15, 129.89°)
OKLaboklab(43.76% -0.0806 0.0784)
OKLCHoklch(43.76% 0.112 135.8)
XYZxyz(5.6120, 8.9498, 2.2422)
Luminance0.0895 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F17 #43175F
analogous
#575F17 #335F17 #175F1F
triadic
#335F17 #17335F #5F1733
tetradic
#335F17 #17575F #43175F #5F1F17
square
#335F17 #17575F #43175F #5F1F17
split-complementary
#335F17 #1F175F #5F1757
monochromatic
#0D1906 #192E0B #335F17 #4D9023 #68C22F

Accessibility & contrast

On white

7.53
#335F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#335F17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335F17
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F17#FFFFFF#000000##FFFFFF
##335F171.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#63570B
Deuteranopia (green-blind)
#5D531E
Tritanopia (blue-blind)
#315B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335f17;
/* rgb */ color: rgb(51, 95, 23);
/* oklch */ color: oklch(43.8% 0.112 135.8);
Tailwind
colors: {
  custom: {
    50: '#6f8d59',
    500: '#335f17',
    950: '#000000',
  },
}
SCSS
$custom: #335f17;
$custom-light: #6f8d59;
$custom-dark: #000000;
JSON
{
  "hex": "#335f17",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 23
  },
  "hsl": {
    "h": 96.667,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.43761,
    "c": 0.11243,
    "h": 135.8
  },
  "luminance": 0.0895
}

Semantic roles & 50–950 ramp

primary
#335F17
secondary
#733C96
accent
#44E4A6
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #335F17

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

Preview Lab → · Contrast checker → · Palette generator →

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