#335E1B#335E1B

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

Color values

HEX#335E1B
RGBrgb(51, 94, 27)
HSLhsl(99, 55%, 24%)
HSVhsv(99, 71%, 37%)
CMYKcmyk(45.7%, 0%, 71.3%, 63.1%)
CIE-LABlab(35.57, -28.14, 32.53)
CIE-LCHlch(35.57, 43.01, 130.85°)
OKLaboklab(43.51% -0.0781 0.0746)
OKLCHoklch(43.51% 0.108 136.3)
XYZxyz(5.5656, 8.7880, 2.4397)
Luminance0.0879 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E1B #461B5E
analogous
#545E1B #335E1B #1B5E24
triadic
#335E1B #1B335E #5E1B33
tetradic
#335E1B #1B545E #461B5E #5E241B
square
#335E1B #1B545E #461B5E #5E241B
split-complementary
#335E1B #241B5E #5E1B54
monochromatic
#0D1807 #192E0D #335E1B #4D8E29 #67BD36

Accessibility & contrast

On white

7.62
#335E1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335E1B
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E1B#FFFFFF#000000##FFFFFF
##335E1B1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335e1b;
/* rgb */ color: rgb(51, 94, 27);
/* oklch */ color: oklch(43.5% 0.108 136.3);
Tailwind
colors: {
  custom: {
    50: '#6f8c5b',
    500: '#335e1b',
    950: '#000000',
  },
}
SCSS
$custom: #335e1b;
$custom-light: #6f8c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#335e1b",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 27
  },
  "hsl": {
    "h": 98.507,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.43514,
    "c": 0.10795,
    "h": 136.3
  },
  "luminance": 0.08788
}

Semantic roles & 50–950 ramp

primary
#335E1B
secondary
#764194
accent
#49DFA9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #335E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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