#335F1A#335F1A

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

Color values

HEX#335F1A
RGBrgb(51, 95, 26)
HSLhsl(98, 57%, 24%)
HSVhsv(98, 73%, 37%)
CMYKcmyk(46.3%, 0%, 72.6%, 62.7%)
CIE-LABlab(35.91, -28.69, 33.35)
CIE-LCHlch(35.91, 44.00, 130.71°)
OKLaboklab(43.79% -0.0796 0.0761)
OKLCHoklch(43.79% 0.11 136.3)
XYZxyz(5.6438, 8.9625, 2.4096)
Luminance0.0896 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F1A #461A5F
analogous
#555F1A #335F1A #1A5F23
triadic
#335F1A #1A335F #5F1A33
tetradic
#335F1A #1A555F #461A5F #5F231A
square
#335F1A #1A555F #461A5F #5F231A
split-complementary
#335F1A #231A5F #5F1A55
monochromatic
#0D1807 #192F0D #335F1A #4D8F27 #67BF34

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335F1A#FFFFFF#000000##FFFFFF
##335F1A1.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)
#625710
Deuteranopia (green-blind)
#5D5320
Tritanopia (blue-blind)
#315B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335f1a;
/* rgb */ color: rgb(51, 95, 26);
/* oklch */ color: oklch(43.8% 0.110 136.3);
Tailwind
colors: {
  custom: {
    50: '#6f8d5b',
    500: '#335f1a',
    950: '#000000',
  },
}
SCSS
$custom: #335f1a;
$custom-light: #6f8d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#335f1a",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 26
  },
  "hsl": {
    "h": 98.261,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.43789,
    "c": 0.11019,
    "h": 136.3
  },
  "luminance": 0.08963
}

Semantic roles & 50–950 ramp

primary
#335F1A
secondary
#764095
accent
#48E0A9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #335F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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