#335B16#335B16

#335B16 is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.6% C 0.107 H 134.9°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#335B16
RGBrgb(51, 91, 22)
HSLhsl(95, 61%, 22%)
HSVhsv(95, 76%, 36%)
CMYKcmyk(44%, 0%, 75.8%, 64.3%)
CIE-LABlab(34.49, -27.18, 33.64)
CIE-LCHlch(34.49, 43.24, 128.94°)
OKLaboklab(42.61% -0.0759 0.0761)
OKLCHoklch(42.61% 0.107 134.9)
XYZxyz(5.2510, 8.2436, 2.0734)
Luminance0.0824 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B16 #3E165B
analogous
#565B16 #335B16 #165B1C
triadic
#335B16 #16335B #5B1633
tetradic
#335B16 #16565B #3E165B #5B1C16
square
#335B16 #16565B #3E165B #5B1C16
split-complementary
#335B16 #1C165B #5B1656
monochromatic
#0E1906 #172A0A #335B16 #4F8C22 #6ABE2E

Accessibility & contrast

On white

7.93
#335B16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#335B16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B16
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B16#FFFFFF#000000##FFFFFF
##335B161.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F530B
Deuteranopia (green-blind)
#59501C
Tritanopia (blue-blind)
#32574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335b16;
/* rgb */ color: rgb(51, 91, 22);
/* oklch */ color: oklch(42.6% 0.107 134.9);
Tailwind
colors: {
  custom: {
    50: '#6f8a58',
    500: '#335b16',
    950: '#000000',
  },
}
SCSS
$custom: #335b16;
$custom-light: #6f8a58;
$custom-dark: #000000;
JSON
{
  "hex": "#335b16",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 22
  },
  "hsl": {
    "h": 94.783,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.4261,
    "c": 0.10747,
    "h": 134.9
  },
  "luminance": 0.08244
}

Semantic roles & 50–950 ramp

primary
#335B16
secondary
#6D3B92
accent
#44E4A1
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335B16

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

Preview Lab → · Contrast checker → · Palette generator →

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