#335F11#335F11

#335F11 is a dark, moderate yellow-green. Relative luminance 0.089; OKLCH L 43.7% C 0.116 H 135.0°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#335F11
RGBrgb(51, 95, 17)
HSLhsl(94, 70%, 22%)
HSVhsv(94, 82%, 37%)
CMYKcmyk(46.3%, 0%, 82.1%, 62.7%)
CIE-LABlab(35.85, -29.40, 36.97)
CIE-LCHlch(35.85, 47.23, 128.49°)
OKLaboklab(43.71% -0.0822 0.0823)
OKLCHoklch(43.71% 0.116 135)
XYZxyz(5.5585, 8.9284, 1.9607)
Luminance0.0893 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F11 #3D115F
analogous
#5A5F11 #335F11 #115F16
triadic
#335F11 #11335F #5F1133
tetradic
#335F11 #115A5F #3D115F #5F1611
square
#335F11 #115A5F #3D115F #5F1611
split-complementary
#335F11 #16115F #5F115A
monochromatic
#0E1A05 #172B08 #335F11 #4F931A #6BC724

Accessibility & contrast

On white

7.54
#335F11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335F11
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F11#FFFFFF#000000##FFFFFF
##335F111.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635701
Deuteranopia (green-blind)
#5D5319
Tritanopia (blue-blind)
#325B50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335f11;
/* rgb */ color: rgb(51, 95, 17);
/* oklch */ color: oklch(43.7% 0.116 135.0);
Tailwind
colors: {
  custom: {
    50: '#6f8d56',
    500: '#335f11',
    950: '#000000',
  },
}
SCSS
$custom: #335f11;
$custom-light: #6f8d56;
$custom-dark: #000000;
JSON
{
  "hex": "#335f11",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 17
  },
  "hsl": {
    "h": 93.846,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43714,
    "c": 0.11634,
    "h": 135
  },
  "luminance": 0.08929
}

Semantic roles & 50–950 ramp

primary
#335F11
secondary
#6C3498
accent
#3BEC9F
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #335F11

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

Preview Lab → · Contrast checker → · Palette generator →

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