#335F16#335F16

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

Color values

HEX#335F16
RGBrgb(51, 95, 22)
HSLhsl(96, 62%, 23%)
HSVhsv(96, 77%, 37%)
CMYKcmyk(46.3%, 0%, 76.8%, 62.7%)
CIE-LABlab(35.88, -29.04, 35.05)
CIE-LCHlch(35.88, 45.52, 129.64°)
OKLaboklab(43.75% -0.0809 0.0791)
OKLCHoklch(43.75% 0.113 135.6)
XYZxyz(5.6021, 8.9458, 2.1904)
Luminance0.0895 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F16 #42165F
analogous
#575F16 #335F16 #165F1D
triadic
#335F16 #16335F #5F1633
tetradic
#335F16 #16575F #42165F #5F1D16
square
#335F16 #16575F #42165F #5F1D16
split-complementary
#335F16 #1D165F #5F1657
monochromatic
#0D1906 #182D0A #335F16 #4E9122 #68C22D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335F16#FFFFFF#000000##FFFFFF
##335F161.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)
#635709
Deuteranopia (green-blind)
#5D531D
Tritanopia (blue-blind)
#325B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335f16;
/* rgb */ color: rgb(51, 95, 22);
/* oklch */ color: oklch(43.8% 0.113 135.6);
Tailwind
colors: {
  custom: {
    50: '#6f8d58',
    500: '#335f16',
    950: '#000000',
  },
}
SCSS
$custom: #335f16;
$custom-light: #6f8d58;
$custom-dark: #000000;
JSON
{
  "hex": "#335f16",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 22
  },
  "hsl": {
    "h": 96.164,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.43752,
    "c": 0.11314,
    "h": 135.6
  },
  "luminance": 0.08946
}

Semantic roles & 50–950 ramp

primary
#335F16
secondary
#723B96
accent
#42E5A5
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #335F16

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

Preview Lab → · Contrast checker → · Palette generator →

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