#335F1C#335F1C

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

Color values

HEX#335F1C
RGBrgb(51, 95, 28)
HSLhsl(99, 54%, 24%)
HSVhsv(99, 71%, 37%)
CMYKcmyk(46.3%, 0%, 70.5%, 62.7%)
CIE-LABlab(35.93, -28.50, 32.45)
CIE-LCHlch(35.93, 43.19, 131.29°)
OKLaboklab(43.81% -0.079 0.0745)
OKLCHoklch(43.81% 0.109 136.7)
XYZxyz(5.6669, 8.9717, 2.5315)
Luminance0.0897 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F1C #481C5F
analogous
#555F1C #335F1C #1C5F27
triadic
#335F1C #1C335F #5F1C33
tetradic
#335F1C #1C555F #481C5F #5F271C
square
#335F1C #1C555F #481C5F #5F271C
split-complementary
#335F1C #271C5F #5F1C55
monochromatic
#0D1807 #1A300E #335F1C #4C8E2A #66BE38

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335F1C#FFFFFF#000000##FFFFFF
##335F1C1.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)
#625713
Deuteranopia (green-blind)
#5C5322
Tritanopia (blue-blind)
#315B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335f1c;
/* rgb */ color: rgb(51, 95, 28);
/* oklch */ color: oklch(43.8% 0.109 136.7);
Tailwind
colors: {
  custom: {
    50: '#6f8d5c',
    500: '#335f1c',
    950: '#000000',
  },
}
SCSS
$custom: #335f1c;
$custom-light: #6f8d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#335f1c",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 28
  },
  "hsl": {
    "h": 99.403,
    "s": 54.472,
    "l": 24.118
  },
  "oklch": {
    "l": 0.43809,
    "c": 0.10859,
    "h": 136.7
  },
  "luminance": 0.08972
}

Semantic roles & 50–950 ramp

primary
#335F1C
secondary
#784294
accent
#4ADEAB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #335F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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