#335F1B#335F1B

#335F1B is a dark, moderate yellow-green. Relative luminance 0.090; OKLCH L 43.8% C 0.109 H 136.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#335F1B
RGBrgb(51, 95, 27)
HSLhsl(99, 56%, 24%)
HSVhsv(99, 72%, 37%)
CMYKcmyk(46.3%, 0%, 71.6%, 62.7%)
CIE-LABlab(35.92, -28.60, 32.91)
CIE-LCHlch(35.92, 43.60, 131.00°)
OKLaboklab(43.8% -0.0793 0.0753)
OKLCHoklch(43.8% 0.109 136.5)
XYZxyz(5.6551, 8.9670, 2.4695)
Luminance0.0897 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F1B #471B5F
analogous
#555F1B #335F1B #1B5F25
triadic
#335F1B #1B335F #5F1B33
tetradic
#335F1B #1B555F #471B5F #5F251B
square
#335F1B #1B555F #471B5F #5F251B
split-complementary
#335F1B #251B5F #5F1B55
monochromatic
#0D1807 #192F0D #335F1B #4D8F29 #66BE36

Accessibility & contrast

On white

7.52
#335F1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#335F1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335F1B
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F1B#FFFFFF#000000##FFFFFF
##335F1B1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625712
Deuteranopia (green-blind)
#5C5321
Tritanopia (blue-blind)
#315B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335f1b;
/* rgb */ color: rgb(51, 95, 27);
/* oklch */ color: oklch(43.8% 0.109 136.5);
Tailwind
colors: {
  custom: {
    50: '#6f8d5b',
    500: '#335f1b',
    950: '#000000',
  },
}
SCSS
$custom: #335f1b;
$custom-light: #6f8d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#335f1b",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 27
  },
  "hsl": {
    "h": 98.824,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.43799,
    "c": 0.1094,
    "h": 136.5
  },
  "luminance": 0.08967
}

Semantic roles & 50–950 ramp

primary
#335F1B
secondary
#774195
accent
#49DFAA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #335F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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