#335A16#335A16

#335A16 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.3% C 0.106 H 134.7°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#335A16
RGBrgb(51, 90, 22)
HSLhsl(94, 61%, 22%)
HSVhsv(94, 76%, 35%)
CMYKcmyk(43.3%, 0%, 75.6%, 64.7%)
CIE-LABlab(34.14, -26.70, 33.28)
CIE-LCHlch(34.14, 42.67, 128.75°)
OKLaboklab(42.32% -0.0746 0.0754)
OKLCHoklch(42.32% 0.106 134.7)
XYZxyz(5.1661, 8.0738, 2.0451)
Luminance0.0807 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A16 #3D165A
analogous
#555A16 #335A16 #165A1B
triadic
#335A16 #16335A #5A1633
tetradic
#335A16 #16555A #3D165A #5A1B16
square
#335A16 #16555A #3D165A #5A1B16
split-complementary
#335A16 #1B165A #5A1655
monochromatic
#0E1906 #17290A #335A16 #4F8B22 #6BBC2E

Accessibility & contrast

On white

8.03
#335A16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#335A16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335A16
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A16#FFFFFF#000000##FFFFFF
##335A161.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E520B
Deuteranopia (green-blind)
#584F1C
Tritanopia (blue-blind)
#32564D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #335a16;
/* rgb */ color: rgb(51, 90, 22);
/* oklch */ color: oklch(42.3% 0.106 134.7);
Tailwind
colors: {
  custom: {
    50: '#6e8958',
    500: '#335a16',
    950: '#000000',
  },
}
SCSS
$custom: #335a16;
$custom-light: #6e8958;
$custom-dark: #000000;
JSON
{
  "hex": "#335a16",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 22
  },
  "hsl": {
    "h": 94.412,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.42324,
    "c": 0.10604,
    "h": 134.7
  },
  "luminance": 0.08074
}

Semantic roles & 50–950 ramp

primary
#335A16
secondary
#6C3B91
accent
#44E4A0
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335A16

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

Preview Lab → · Contrast checker → · Palette generator →

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