#335A14#335A14

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

Color values

HEX#335A14
RGBrgb(51, 90, 20)
HSLhsl(93, 64%, 22%)
HSVhsv(93, 78%, 35%)
CMYKcmyk(43.3%, 0%, 77.8%, 64.7%)
CIE-LABlab(34.12, -26.86, 34.11)
CIE-LCHlch(34.12, 43.42, 128.22°)
OKLaboklab(42.31% -0.0752 0.0768)
OKLCHoklch(42.31% 0.107 134.4)
XYZxyz(5.1476, 8.0664, 1.9474)
Luminance0.0807 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A14 #3B145A
analogous
#565A14 #335A14 #145A18
triadic
#335A14 #14335A #5A1433
tetradic
#335A14 #14565A #3B145A #5A1814
square
#335A14 #14565A #3B145A #5A1814
split-complementary
#335A14 #18145A #5A1456
monochromatic
#0E1906 #172809 #335A14 #4F8C1F #6CBE2A

Accessibility & contrast

On white

8.04
#335A14 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335A14
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A14#FFFFFF#000000##FFFFFF
##335A141.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5208
Deuteranopia (green-blind)
#584F1B
Tritanopia (blue-blind)
#32564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #335a14;
/* rgb */ color: rgb(51, 90, 20);
/* oklch */ color: oklch(42.3% 0.107 134.4);
Tailwind
colors: {
  custom: {
    50: '#6f8957',
    500: '#335a14',
    950: '#000000',
  },
}
SCSS
$custom: #335a14;
$custom-light: #6f8957;
$custom-dark: #000000;
JSON
{
  "hex": "#335a14",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 20
  },
  "hsl": {
    "h": 93.429,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42307,
    "c": 0.10748,
    "h": 134.4
  },
  "luminance": 0.08067
}

Semantic roles & 50–950 ramp

primary
#335A14
secondary
#6A3892
accent
#41E79D
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335A14

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

Preview Lab → · Contrast checker → · Palette generator →

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