#335E1C#335E1C

#335E1C is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.5% C 0.107 H 136.5°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#335E1C
RGBrgb(51, 94, 28)
HSLhsl(99, 54%, 24%)
HSVhsv(99, 70%, 37%)
CMYKcmyk(45.7%, 0%, 70.2%, 63.1%)
CIE-LABlab(35.58, -28.04, 32.08)
CIE-LCHlch(35.58, 42.60, 131.16°)
OKLaboklab(43.53% -0.0777 0.0737)
OKLCHoklch(43.53% 0.107 136.5)
XYZxyz(5.5774, 8.7927, 2.5017)
Luminance0.0879 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E1C #471C5E
analogous
#545E1C #335E1C #1C5E26
triadic
#335E1C #1C335E #5E1C33
tetradic
#335E1C #1C545E #471C5E #5E261C
square
#335E1C #1C545E #471C5E #5E261C
split-complementary
#335E1C #261C5E #5E1C54
monochromatic
#0D1807 #192F0E #335E1C #4D8D2A #66BC38

Accessibility & contrast

On white

7.61
#335E1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#335E1C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335E1C
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E1C#FFFFFF#000000##FFFFFF
##335E1C1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615613
Deuteranopia (green-blind)
#5C5222
Tritanopia (blue-blind)
#315A50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335e1c;
/* rgb */ color: rgb(51, 94, 28);
/* oklch */ color: oklch(43.5% 0.107 136.5);
Tailwind
colors: {
  custom: {
    50: '#6f8c5c',
    500: '#335e1c',
    950: '#000000',
  },
}
SCSS
$custom: #335e1c;
$custom-light: #6f8c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#335e1c",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 28
  },
  "hsl": {
    "h": 99.091,
    "s": 54.098,
    "l": 23.922
  },
  "oklch": {
    "l": 0.43525,
    "c": 0.10712,
    "h": 136.5
  },
  "luminance": 0.08793
}

Semantic roles & 50–950 ramp

primary
#335E1C
secondary
#774293
accent
#4ADDAA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #335E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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