#335B12#335B12

#335B12 is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.6% C 0.110 H 134.3°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#335B12
RGBrgb(51, 91, 18)
HSLhsl(93, 67%, 21%)
HSVhsv(93, 80%, 36%)
CMYKcmyk(44%, 0%, 80.2%, 64.3%)
CIE-LABlab(34.46, -27.48, 35.25)
CIE-LCHlch(34.46, 44.70, 127.94°)
OKLaboklab(42.58% -0.077 0.0789)
OKLCHoklch(42.58% 0.11 134.3)
XYZxyz(5.2154, 8.2294, 1.8858)
Luminance0.0823 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B12 #3A125B
analogous
#585B12 #335B12 #125B16
triadic
#335B12 #12335B #5B1233
tetradic
#335B12 #12585B #3A125B #5B1612
square
#335B12 #12585B #3A125B #5B1612
split-complementary
#335B12 #16125B #5B1258
monochromatic
#0E1A05 #162808 #335B12 #508E1C #6CC126

Accessibility & contrast

On white

7.94
#335B12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#335B12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B12
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B12#FFFFFF#000000##FFFFFF
##335B121.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5304
Deuteranopia (green-blind)
#595019
Tritanopia (blue-blind)
#32574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335b12;
/* rgb */ color: rgb(51, 91, 18);
/* oklch */ color: oklch(42.6% 0.110 134.3);
Tailwind
colors: {
  custom: {
    50: '#6f8a56',
    500: '#335b12',
    950: '#000000',
  },
}
SCSS
$custom: #335b12;
$custom-light: #6f8a56;
$custom-dark: #000000;
JSON
{
  "hex": "#335b12",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 18
  },
  "hsl": {
    "h": 92.877,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.42577,
    "c": 0.11022,
    "h": 134.3
  },
  "luminance": 0.0823
}

Semantic roles & 50–950 ramp

primary
#335B12
secondary
#693593
accent
#3EEA9C
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #335B12

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

Preview Lab → · Contrast checker → · Palette generator →

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